Backups:Windows: Difference between revisions

From Computer Science Wiki
Jump to navigation Jump to search
Carnold (talk | contribs)
No edit summary
Carnold (talk | contribs)
 
(3 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==


===Create the Backup Set===
===Create the Backup Set===
* Follow the steps to [[Backups:Create|Create a Backup Set]]
* Follow the steps to [[Backups:Create|Create a Backup Set]]


===Set up the rsync client===
=== 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


===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 15: 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.


===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


===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 07: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.