|
|
UNIX: rsync daily backup upon changes to a location?
|
|
|
|
Mac Elite
Join Date: Apr 2002
Location: Miami Beach
Status:
Offline
|
|
I've hacked my OS X to natively write to NTFS by modifying /etc/fstab. I've setup a shared NTFS drive to hold a library of 3D models, materials, etc to be shared between bootcamp and OS X. Current thought is to have an additional NTFS backup drive so I can backup the modifications in windows as well as OS X, instead of having an HFS+ backup and not being able to access it in Vista after a possible drive failure.
Anyways, I'd like to setup a script in OS X to do daily backups if changes had been made in Vista. I think that this command will do the copy,
Code:
rsync -rtvu --modify-window=1 --progress /media/SOURCE/ /media/TARGET/
but what script could I use to do the modification check?
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
rsync -a is great for your incremental backups (the a stands for "archive"), if you want to schedule this as a cronjob you won't want to include the --progress in there if you want to be emailed on failures.
I'm not sure about your question though? Rsync is an incremental backup tool, it will copy files that have been modified.
|
|
|
|
|
|
|
|
|
Moderator
Join Date: May 2001
Location: Hilbert space
Status:
Offline
|
|
I would also suggest you have a look at rdiff-backup, a command line tool based upon rsync that does incremental backups. I've used it when my parents' backup server still ran FreeBSD.
|
I don't suffer from insanity, I enjoy every minute of it.
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Interesting... what advantages does rdiff-backup have over rsync? The two look very similar...
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Apr 2002
Location: Miami Beach
Status:
Offline
|
|
Originally Posted by besson3c
I'm not sure about your question though? Rsync is an incremental backup tool, it will copy files that have been modified.
I was looking for a script of sorts to automate it. I'll setup Automator to run the shell script, but I'll look into OreoCookie's option first.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Originally Posted by rozwado1
I was looking for a script of sorts to automate it. I'll setup Automator to run the shell script, but I'll look into OreoCookie's option first.
Why not cron or anacron? Automator seems like a silly way to automate it, it adds a whole other unnecessary layer.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Apr 2002
Location: Miami Beach
Status:
Offline
|
|
Originally Posted by besson3c
Why not cron or anacron? Automator seems like a silly way to automate it, it adds a whole other unnecessary layer.
Ok, anacron was what I was looking for. Haven't messed around with that for a few years...
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Best of luck, let us know how it goes!
Anacron is available in Macports, FWIW...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|