Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Benjamindaines

macrumors 68030
Original poster
Mar 24, 2005
2,841
5
A religiously oppressed state
I'm thinking of setting up a scheduled backup with Rsync and iCal, but I have a few questions.
One, can Rsync be set up to do a "smart backup" where it only copies the files that have been added or updated since the last back up? Or will it have to erase the drive and copy everything over again?

Two, if I run a back up of my entire internal drive it will be bootable correct? Then to restore after a hard drive crash or something I can boot into the command line (Command + S at boot) and copy everything back onto the internal drive? If that is the case what command would I use, just rsync but switch the directories around?

--Thanks.
 
RSync is wonderful because it is "smart", as you say. It only copies over what has changed. That way, after the initial backup, the next ones are quite small most of the time.

If you RSync your entire drive, then as far I know it would be bootable.
 
How do I make rsync run under sudo without having it as me for my password? Is there a way to have my script put in the password for me?

My Script:
Code:
diskutil mount /dev/disk2s3;
sudo rsync -aE --delete "/" "/Volumes/BackUp/";
diskutil unmount /dev/disk2s3
When running under standard user it comes to a lot of the hidden system folders and fails to open them (not enough permissions), but will bring everything over when running under sudo user.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.