Bak.Bat - Backup your project
A script for creating and doubling of backup copies of a project.
This was my version control script before I started using SVN, to create backup copies of my projects on daily basis and also to automatically copy project files to and from my memory stick, while moving from university to work and from work to home (Dropbox didn't exist back then :-)
I keep this script for historical reasons - it did a good job for me.
There are plenty of other tools like Git, Sync, Dropbox etc to help you track and backup project files.
In a default setup you would have a folder named
your memory stick (eg.
F:\Bak_Projects\) and a folder with the same
name on your HDD (eg.
\Bak_Projects\ on each disk.
Bak.Bat to each project's folder under
Bak.Bat in project's folder to see the list of actions.
Double command to work properly you have to create
.\Bak\bak_lng.bat file for each project with the contents
<ProjectName> is the folder name of the current project.
You can overwrite detaults defined in
Bak.Bat by creating
.bat file in
.\Bak folder of each project.
Overwritable variables are:
REM Add bpl and dcu file extension to the default list of backup extensions. set bak_ext=%bak_ext%, bpl, dcu
Bak.BatDisplay list of actions (with choice)
Bak.Bat /dblDouble prject to other disks
Bak.Bat /bakBackup project files to
.\Bak\<date & time>
Bak.Bat /pakBackup and pack project files to
.\Bak\<date & time>.rar(requires RAR.exe to be in %PATH%)
.exefiles of the project
Bak.Batin all subfolders of curent folder.