|
|
#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. Thanks Dan |
|
|
|
0
|
|
|
#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.
Code:
#!/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 |
|
|
|
0
|
|
|
#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
Quote:
|
||
|
|
0
|
|
|
#4 | |
|
Quote:
|
||
|
|
0
|
|
|
#5 |
|
Thanks for the nice tips. It could be good enough for getting your valuable and memorable pics and data backup using resync.
|
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 08:51 AM.







Linear Mode
