↑ Return to Older Projects

Sonar Backup

Description

A simple utility to manage backup and restore of all your Cakewalk/Sonar audio recording projects to a USB hard disk. Zips all files in the project directory structure to save space. It’s better than normal Sonar “bundle files” because it uses the last modified date so that only projects which have been modified are backed up or restored.

Simply run Backup_To_USB.vbs at the end of each recording session and your modified projects will saved as zip files on your external disk.
Keep your projects safe by keeping a date stamped, off-line archive of your work! Uses open-source 7-ZIP to create backup zip files so it’s
Free

This utility can also be used to keep a Cakewalk/Sonar audio recording project synchronized between two PC’s. Record in your studio on your ‘recording’ PC then backup to a USB hard disk. Later, use Restore_From_USB.vbs to restore the project to your ‘mixing’ PC. Make changes, backup, and then restore the changes to your studio ‘recording’ PC. The utilities ‘last modified’ check only moves projects that have been modified and stops you from overwriting newer files with older backups.


Usage

This utility assumes that you’ve got your Cakewalk/Sonar project directories setup a specific way:

  1. You must create directory to group together the Cakewalk/Sonar projects that you want to backup/restore. I suggest a using a top level directory that represents either the client or the specific CD you are working on. I’d suggest this even if you don’t use my backup/restore utility!
    Select "Per Project" Audio Folder

    Select “Per Project” Audio Folder

  2. You must set Sonar for ‘Per Project Audio’. This keeps all the wav files organized by ‘project’ (which in my mind says by ‘song’). If you don’t check this box, then all your recorded wav files end up jumbled together on the disk making it darn near impossible to find’em. Again, I’d make this suggestion even if you’re not using my backup/restore utility!
  3. Finally unpack the contents of the SonarBackup.zip file (below) to your Client/CD directory. The end result should look something like this
    Backup unpacked into audio directory

    Backup unpacked into audio directory

    .

After you’ve set up your Sonar directories and unpacked the zip file into your Client/CD directory, go get the latest copy of the 7-Zip command line executable. Go here and download the “7-Zip Command Line Version”. You need to place 7za.exe in a directory contained in the PATH environment variable on your PC. I suggest something like C:WINNTSystem32

Now, you’ll need to make a couple of edits to the .vbs files to customize them for your environment. Use NotePad to edit each file and at the top of the file, change the BackupDisk variable to be the drive letter that your USB disk shows up with on that system. For example, the below tells the vbscript to use the F drive. Note – do NOT put a “” on the end!

Const BackupDisk = "F:"

Now, double-click Backup_to_USB.vbs and the script should begin zipping up your projects and putting them into a top level directory on your USB disk matching the name of the Client/CD directory. Be patent, it’ll run for a while. After it’s complete, check the resulting file Logfile.txt to see exactly what Backup_to_USB did.

Now, run Backup_to_USB.vbs again. You should find that it does NOTHING. That’s because nothing has changed in any of your Sonar projects. If you had pulled up Sonar and modified a project, you would have found that only that one project got zipped and moved to your USB disk.

Restoring is a bit different. The first thing to note is that Restore_From_USB should NEVER overwrite a same or newer version of a Sonar Project. If the USB disk does contain a newer version of the project/song, then the older version will have it’s directory renamed with and appended date/time stamp BEFORE the restore is done. This way you can aways go back to an older version. Also note that it should be safe to run Restore_From_USB any time as it will only restore NEWER versions. Once your PC is up to date, running Restore_From_USB will not do anything.

By now, you should see how the combination of Backup_To_USB and Restore_From_USB can be used to keep a client/CD directory in-sync between two different PC’s. Work on the CD at the studio, work on it at home and keep both PC’s up to date. If there’s ever any question of what did or didn’t get moved, check the Logfile.txt on the PC. There’s a logfile.txt on the PC as well as on the USB disk. The one on the USB disk is handy if you’re syncing the CD between two PC’s.


Download
Cakewalk / Sonar backup utility SonarBackup.zip. last updated 10/26/2007