Backing up your project...

Chris H.'s Ultima / ACS-style game development system!

Moderators: Ice Cream Jonsey, joltcountry

Chris H
Posts: 272
Joined: Sun Dec 02, 2007 4:07 pm
Location: California, USA

Backing up your project...

Post by Chris H »

Since ACK has no "undo" feature, it's good to make frequent backups of whatever you are creating, just in case.

This particular method has been working well for me, so I thought I'd share it. (Requires Windows.)

1. Create a new folder, ACK\GAMES\backups

2. Create a batch file in that folder, called BACKUP.BAT. Paste in this code:

Code: Select all

@echo off
if exist backup.txt goto continue
echo GAMENAME>backup.txt
notepad backup.txt
echo Press a key when you are done editing the list.
pause>nul
:continue
echo Creating backup...
cd ..
set hh=%time:~0,2%
if "%time:~0,1%"==" " set hh=0%hh:~1,1%
set yymmdd_hhmmss=%date:~12,2%%date:~4,2%%date:~7,2%_%hh%%time:~3,2%%time:~6,2%
md backups\%yymmdd_hhmmss%
for /f %%a in (backups\backup.txt) do if exist %%a\%%a.mst xcopy /i %%a backups\%yymmdd_hhmmss%\%%a
3. Run the batch file. The first time you run, it will open a backup.txt file in Notepad, change "GAMENAME" to the name of the game you are working on. Add additional games if needed, one per line.

4. Save the text file, close Notepad, then press a key as prompted in the batch file, and it will create a timestamped folder in your "backups" folder, and save all the specified games in there.

5. Make a shortcut to that batch file, and just run that whenever the mood strikes you to do a backup!