Backups:Windows: Difference between revisions

From Computer Science Wiki
Jump to navigation Jump to search
Carnold (talk | contribs)
Carnold (talk | contribs)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
===How to Set Up Backups for a Windows Workstation===
==How to Set Up Backups==
'''1. Follow the steps to''' [[Backups:Create|Create a Backup Set]]


'''2. Set up the rsync client'''
===Create the Backup Set===
* Follow the steps to [[Backups:Create|Create a Backup Set]]
 
=== Windows ===
----
====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'''
====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 17:
* 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'''
====Setting 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'''
====Setting 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.  In Windows, you can right click on the shortcut and choose "Run As Administrator" to backup all files.


=== Known Issues===
==== 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.
* 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.

Latest revision as of 08:36, 21 May 2021

How to Set Up Backups

Create the Backup Set

Windows


Set up the rsync client

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.

Setting 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

Setting 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. In Windows, you can right click on the shortcut and choose "Run As Administrator" to backup all files.

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.