Download and install cwRsync
We STRONGLY recommend installing the program in the default location.
Click the start button, and choose "run". In the run dialog box, type "cmd" and hit enter. The command prompt window (DOS prompt) will open.
In this command prompt, type:
cd "c:\program files\cwrsync\bin"
and hit enter. Then type:
ssh-keygen -t rsa -N ''
and hit enter.
(Note that the line ends with TWO single quote characters, one after another)
You will be asked to "enter file in which to save the key" - just hit enter to accept the default that is given.
Now, upload the newly created key to your BlueTwist filesystem with this command:
rsync -av "/cygdrive/c/documents and settings/administrator/.ssh/id_rsa.pub" 1234@vault.bluetwist.co.nz:.ssh/authorized_keys
(Insert your own user ID in place of "1234")
When you run this rsync command, you will be asked to confirm the first connection - enter "yes", and when prompted for your password, enter the password that was given to you in your welcome email.
Choosing what files/folders to backup
Now you need to decide what to back up. In this example we will backup your documents, in c:\Documents and Settings\Administrator\My Documents
Open the rsync script by going to the start menu, choosing Programs, then choosing cwRsync, then choosing "1. Batch Example". When you select this, the script will open in a text editor.
Leave the file exactly as it is - the settings in place are very important. You are simply going to add one or more rsync commands to the end of it, one for each folder or file you want to back up.
In this example we are adding a single line to the end of the file:
rsync -av --chmod u+rwx -e "ssh -i c:\docume~1\administrator\.ssh\id_rsa" "/cygdrive/c/Documents and Settings/administrator/My Documents" 1234@vault.bluetwist.co.nz:
You can see how the source directory:C:\Documents and Settings\administratoris entered as /cygdrive/c/Documents and Settings/administrator this transformation is required for all Windows source folders.
The above code should all be on 1 line in your text editor
You can add as many rsync lines to the end of this script as you like - one for each folder you wish to back up.
Once the rsync lines have been added to the script, you should save the file and exit the editor.
Scheduling the Backup
All that is left now is to schedule the backup, which is done through Task Scheduler, which is included in Windows.
Open Task Scheduler by choosing: Start Menu, Programs, Accessories, System Tools, Scheduled Tasks.
The Scheduled Tasks explorer will open. Double click the item named "Add Scheduled Task".
In the first Window, simply click "Next".
In the second Window, you are asked to "click the program you want windows to run". Do not choose a program from the list. Instead, click the "browse" button.
Choose the program c:\program files\cwrsync\cwrsync.cmd
In the third window, you are asked to "type a name for this task" - you can name it whatever you like. Perhaps "BlueTwist Automated Backup".
You are also asked, in this third window, how often to perform the task. In this example we will choose to perform the backup weekly.
In the fourth window, you are asked to choose a start time. We suggest sometime between 10pm and 6am. You should not perform these backups during the business day, as the network traffic they consume could affect your work.
In the fifth window, you are asked to "Enter the name and password of a user" - this is the Windows login that the backup will run under, and it is important that you choose the same Windows login that you used to create your RSA key, above. The username is entered in the form computername\username ... for instance: server01\administrator The password should be entered as well.
In the sixth and final window, click "finish".
We fully support Linux, to obtain assistance please Contact Us