Easy way to backup a BTB project

I've written a batch file that uses 7-zip to compress a project folder:
proj_backup.7z
It doesn't include the XPacks because they are huge. Instead it makes a list of XPacks required by the project, so if you need to restore the backup, you can consult the list to see what .zip files you need.

The above files were written with 7-zip in mind, but it seems that it also works with winRAR if you edit the batch file and set the zpath variable to the location of WinRAR.exe instead of 7zip.exe

The readme contains instructions. You just need to tell it where your projects/BTB folders are, along with the location of 7zip or winRAR. It also comes with an option to add the current date to the backup's filename, so you can have one backup for each day.

Here is a summary of what the batch file does:

set proj_name (name of project folder)
set btb_path (path to BTB installation folder)
set zpath (path to 7zip/winRAR executable)

set add_date (0 or 1)

if add_date is 1 {
    add the project folder to proj_name_date.7z
        do not include thumbs.db or any .zip files
}
else {
    do the same as above, but without the date in the filename
}

get a list all zip files in the project's XPacks folder, and put filenames in proj_name_XPacks.txt

if add_date is 1 {
    add proj_name_XPacks.txt to proj_name_date.7z
}
else {
    do the same as above, but without the date in the filename
}

delete proj_name_XPacks.txt (once it's in the .7z file the original is no longer needed)

If you ever make your own XPacks, it's also a good idea to back up the XPack's folder before making changes. Those folders are located in BobsTrackBuilder\XPacker\XPacks.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License