Client-side laptop data backup for Windows/OSX/Linux
On the windows machine \\carew, D: drive, d$, there's a folder called \batch. In there are nearly all my scripts
I use/used. For the laptop backup, look in \\carew\d$\batch\cygwin-rsync\. There are three files that used for
the WinSynCMS process.
1. WinSynCMS.exe. This is the main GUI, the one the desktop icon points to.
2. WinSynCMS-syncing.exe. This is the script that runs the rsync command. This exe is used when the schedules
backups take place and also when a user run the 'manual backup' from within the GUI.
3. Sync_now.exe. This is the program that sits in the system tray, a blue filing cabinet icon. This has a menu
that allows users to:
Start a backup
See the log files
Run WinSCP to retrieve files
See when the next scheduled backup takes place
See any error messages
check their public/private ssh key is working
View the help file
Start the WinSynCMS GUI
This icon changes to one with an exclamation mark in it if there's a problem with the network/backups i.e. a path
to some files you want to backup isn't available when the scheduled backup takes place. In this case, the path
in question is displayed to the user when they hover over the icon.
The code is written in Autoit (www.autoit.com). The code files end in .au3. For the three exe's, the au3 files
are:
WinSynCMS15.au3
WinsynCMS-syncing4.au3
Sync_now7.au3
There's also a help file:
WinSynCMS-help.chm
In addition to all of this, I've made two more small exe's, Uninstall_cleanup.exe(au3) and
install_sch_chk.exe(au3). These are used when the program is installed and removed. The install file simply
looks to see if the user had previously created a scheduled task to run an automatic backup. If they did, it
adds a startup shortcut to the users Start Menu -> Programs -> Startup folder. It also start Sync_now.exe. The
uninstall file very simply removes any shortcut in the users startup folder. These two files are not needed to
make winSynCMS work, they are just used as part of the install/uninstall procedure.
The complete package is made into a Windows installer using Inno. The code for this can also be made available
if need be, it's only a small txt file (\\carew\d$\batch\cygwin-rsync\inno setup files\winsync2.iss)