|Dec 2, 2012, 03:55 AM||#1|
Backing up using rsync
Hi, I was wanting to create like a batch file for Apple Mac for rsync but not sure how you do this.
I just want the file to sit on my desktop and click it every time to make a backup.
These are the commands I wish to use.
rsync -a -v /Users/administrator/Pictures /Volumes/Photos\ Disk\ 1
rsync -a -v /Users/administrator/Pictures /Volumes/Photos\ Disk\ 2
Also I am using the -a rather than -r as it preserves the time modified stamp, whereas -r will switch it to the time it was transferred to my knowledge.
With the -a option if my computer died and I had to reimage would I still be able to access everything off the external HDD that is being used as the backup?
Any assistance would be great, i've been googling but havent really come up with much.
|Dec 2, 2012, 07:42 AM||#2|
All you would need to do to execute those lines is to save them to a file with the addition of a shebang (#!) and the interpreter you wish to use.
#!/bin/bash rsync -a -v /Users/administrator/Pictures /Volumes/Photos\ Disk\ 1 rsync -a -v /Users/administrator/Pictures /Volumes/Photos\ Disk\ 2
The -a flag is a combination of many options including -r, the reason that time is preserved is the -t flag. You can read all about rsync in the manual in terminal just type: man rsync
|Dec 3, 2012, 02:58 AM||#3|
Thanks mate, all good now, just one question I still have a query on, If I am using the -a option as it copies all the permissions across, if my HDD fails for some reason and I need to reimage, will I be able to access the files off the backed copy on the external HDD
|Dec 3, 2012, 10:45 AM||#4|
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Superduper and Rsync backups||dimme||Mac Applications and Mac App Store||15||Aug 12, 2014 12:47 PM|
|rsync basics||Kilamite||Mac Applications and Mac App Store||1||Apr 21, 2013 10:17 AM|
|Using mdfind to accelerate rsync||haravikk||Mac Programming||2||Apr 20, 2013 02:06 PM|
|Can rSync clone a TM backup?||gwelmarten||OS X||2||Jan 27, 2013 08:06 AM|
|Applescript rsync and property||Polansky||Mac Programming||1||Jan 14, 2013 07:54 AM|
All times are GMT -5. The time now is 08:23 PM.