Backups:Windows: Difference between revisions

From Computer Science Wiki
Jump to navigation Jump to search
Line 1: Line 1:
===How to Set Up Backups for a Windows Workstation===
===How to Set Up Backups for a Windows Workstation===
1. Follow the steps to [[Backups:Create|Create a Backup Set]]
'''1. Follow the steps to''' [[Backups:Create|Create a Backup Set]]


2. Set up the rsync client
'''2. Set up the rsync client'''
* Download the client: [[Media:csbackups.zip]]
* Download the client: [[Media:csbackups.zip]]
* Unzip the client to c:\csbackups
* Unzip the client to c:\csbackups


3. Configure the rsync client
'''3. Configure the rsync client'''
* Open the dobackup.bat file in a text editor.
* Open the dobackup.bat file in a text editor.
* Set the following fields based on the backup set created in step 1: RSYNC_PASSWORD, RSYNC_USER, RSYNC_DIR
* Set the following fields based on the backup set created in step 1: RSYNC_PASSWORD, RSYNC_USER, RSYNC_DIR
Line 13: Line 13:
* Depending on the type of backup you are doing either open windows_excludes.txt or windows_includes.txt file in the editor and custom to your liking.
* Depending on the type of backup you are doing either open windows_excludes.txt or windows_includes.txt file in the editor and custom to your liking.


4. To set the backup to run automatically
'''4. To set the backup to run automatically'''
* Open the addat.bat file in a text editor
* Open the addat.bat file in a text editor
* Change the time to when you want the back up to run (this uses a 24 hour system so use 14:00 as 2:00pm)
* Change the time to when you want the back up to run (this uses a 24 hour system so use 14:00 as 2:00pm)
* By default, it will run everyday.  You can change which days of the week you want it to run by modifying the "m,t,w,th,f,s,su" part
* By default, it will run everyday.  You can change which days of the week you want it to run by modifying the "m,t,w,th,f,s,su" part


5. To set the backup to run on demand
'''5. To set the backup to run on demand'''
* Create a shortcut to c:\csbackups\dobackup.bat on the desktop or where ever you want the icon.
* Create a shortcut to c:\csbackups\dobackup.bat on the desktop or where ever you want the icon.
* This will run the backup as the logged in user which may not have access to back up all files on the machine.
* This will run the backup as the logged in user which may not have access to back up all files on the machine.

Revision as of 12:07, 13 November 2008

How to Set Up Backups for a Windows Workstation

1. Follow the steps to Create a Backup Set

2. Set up the rsync client

3. Configure the rsync client

  • Open the dobackup.bat file in a text editor.
  • Set the following fields based on the backup set created in step 1: RSYNC_PASSWORD, RSYNC_USER, RSYNC_DIR
  • There are two ways to do the backup: exclusive and inclusive. Exclusive backs up everything except what you specify and inclusive backs up only what you specify. An exclusive backup is the default. If you want do an exclusive backup, then you can go ahead and save the dobackup.bat file and skip the next step.
  • To do an inclusive backup, change REM the first bin\rsync... line and un-REM the second bin\rsync... line and save the dobackup.bat file.
  • Depending on the type of backup you are doing either open windows_excludes.txt or windows_includes.txt file in the editor and custom to your liking.

4. To set the backup to run automatically

  • Open the addat.bat file in a text editor
  • Change the time to when you want the back up to run (this uses a 24 hour system so use 14:00 as 2:00pm)
  • By default, it will run everyday. You can change which days of the week you want it to run by modifying the "m,t,w,th,f,s,su" part

5. To set the backup to run on demand

  • Create a shortcut to c:\csbackups\dobackup.bat on the desktop or where ever you want the icon.
  • This will run the backup as the logged in user which may not have access to back up all files on the machine.

Known Issues

  • Rsync uses cygwin. If you have cygwin already installed rsync may conflict and not run. Switch the dobackup.bat file to use your cygwin's version of rsync.