Toripony wrote:Good thinking on your part to back up your work/additions, especially if you plan on modeling or routebuilding... disasters do occur. When I am routebuilding, a program called FileGee backs up my progress every 10 minutes.
REM Railworks complete backup
REM Chacal 2013
REM Edit the two following lines to suit your own installation
SET rw="C:\Program Files (x86)\Steam\steamapps\common\railworks"
Set backup=K:\
XCOPY %rw% %backup% /Y /S
PAUSE
@ECHO OFF
REM Backup of WIP Railworks scenario
REM This will copy all files from the source folder to a new destination folder
REM The name of the destination folder is the current date and time
REM Change variables Source and Destination in the two lines below to suit your project
SET Source=I:\Steam\steamapps\common\railworks\Content\Routes\00000032-0000-0000-0000-000000000000\Scenarios\57474de9-8eef-4fd8-9896-a76b1464693d
SET Destination=K:\Backup\Railworks\WIP\Scenarios
REM We use current date and time for versioning
REM Note that the output of date and time is locale-dependent
REM You will have to adjust the parsing to fit the output of your DATE and TIME commands.
REM To do this, open a command window (Start / Run / cmd)
REM Type DATE. Whatever comes after "The current date is: " is your localized date format.
REM Type TIME. Whatever comes after "The current time is: " is your localized time format.
REM Then adjust the following SET lines to set variables correctly for year, month, etc.
rem Parse the date (e.g., 2013-01-01)
rem Example: the line below takes the first 4 characters of "2013-01-01" and puts them in "cur_year".
set cur_year=%date:~0,4%
set cur_m0=%date:~5,2%
set cur_da=%date:~8,2%
rem Parse the time (e.g., 16:20:08,69)
set cur_hh=%time:~0,2%
if %cur_hh% lss 10 (set cur_hh=0%time:~1,1%)
set cur_mm=%time:~3,2%
set cur_ss=%time:~6,2%
set cur_ms=%time:~9,2%
rem Set the timestamp format
set timestamp=%cur_year%-%cur_mo%-%cur_da%_%cur_hh%h%cur_mm%
rem Example: 2013-01-01_16h37
ECHO %timestamp%
CD %Destination%
MD %timestamp%
CD %timestamp%
XCOPY %Source% /S
PAUSE
rem Clear environment variables
set cur_year=
set cur_mo=
set cur_da=
set cur_hh=
set cur_mm=
set cur_ss=
set cur_ms=
set timestamp=
Set Source=
Set Destination=
va2sg wrote:QSL on all the info ;-)
Thanks!
PapaXpress wrote:Is Machinist's batch file still around here? I still use that for copying back my 3rd party DLC and it can be easily altered to do a simple backup.
Users browsing this forum: Googlebot and 1 guest