Skip navigation.
Home

FileWave Server Automated Backup

Backing up your FileWave server is always a good idea. Back in '97 a friend of mine spilled a pot of coffee on our server rack; you never know when bad things can happen to your hardware. Now, it's bad enough to lose the hardware, but think of all the hours represented by those perfected, irreplacible FileWave filesets! In order to prevent this disastrous loss, we have created a script to automatically back up your FileWave Server's database and data files:

FileWave Server Backup Script for version 3.x

FileWave Server Backup Script for version 4.x

FileWave Server Backup Script for version 5.x


Here's what to do:

1. Open the script in a UNIX text editor (vi, TextWrangler, BBEdit, etc.)
2. Edit the DBPATH and FW_FILES_PATH variables. Currently it is set to my user's folder, so you will definitely want this changed. An ideal place to backup would be something like:

DBPATH=/Volumes/BACKUP_HD/FileWaveBackup/fwxserver-DB$(date "+%Y.%m.%d-%H.%M.%S")

and

FW_FILES_PATH=/Volumes/BACKUP_HD/FileWaveBackup/fwxserver

The script will create the directories if they don't yet exist.

3. Move the script to the

/etc/periodic/weekly

folder on your FileWave server. (or daily, if you like--note that this process hogs the processor a bit, however)

This way, the script will be run by the cron tab automatically. If you want to test the script, open the terminal, enter su mode, and drag this script in. The first time it is run, it will be copying your entire fwxserver folder, so be ready to wait.

Some more details:
the $(date ...) business on the DBPATH timestamps the database backup file. After the files are copied, the script zips the folder into an archive for your convenience.