Regularly backing up your email files is a good practice to keep as it helps prevent the loss of important data in the event of a hardware crash, hard drive corruption, system failures, etc. If you do not have a professional backup solution in place, you can set up a scheduled task in Windows to fully back up the SmarterMail installation on a regular basis. The backup can be stored on a separate hard drive or a dedicated folder of an existing drive. RoboCopy is a command-line directory replication command used as a backup solution for smaller companies. NOTE: The source folders are mirrored with the destination folders, so any folders or files that exist in the destination but no longer exist in the source will be removed. As a result, you must use an empty directory to store the backup, as all existing files in the destination directory will be deleted.
This solution has been tested on Windows Server 2000, Windows Server 2003 and Windows XP. It should also work on Windows 7 or Windows Server 2008.
Follow these steps to configure Windows to regularly back up SmarterMail:
- Download the Windows Resource Kit Tools package and install it. The package can be downloaded from http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en.
(The resource kit does not support 64-bit systems).
- Create a batch file in C:\ called backupsmartermail.bat.
- Edit it with notepad and enter the following, replacing DEST:\FOLDER\ with the destination drive and folder of the backup:
cd "C:\Program Files\Windows Resource Kits\Tools\"
echo Backing up config files...
robocopy "C:\program files\smartertools\smartermail\service" "DEST:\FOLDER\service" *.xml /ZB
echo Backing up mailboxes...
robocopy "C:\SmarterMail" "DEST:\FOLDER\mail" /MIR /R:6 /W:10 /ZB
4. Save the file.
5. Add a scheduled task to Windows to execute the .bat file on a regular basis.
NOTE: Professional backup solutions will typically be more resilient to failures and file locking, but for those without the budget to buy one of those solutions, this is better than doing no backups at all. Use of this method of backup is not supported by SmarterTools. Please exercise caution when setting up the backup and confirm that the backup is running correctly by executing a trial run.