Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
cron jobs for mac
Just found this which might be of use to the mac users here…
A tutorial here might be of use too:)
Last edited by colak (2007-04-06 08:26:58)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: cron jobs for mac
CronniX is pretty cool. I found it a couple weeks ago, after I’d configured crontab -e
via Terminal for my backups. There’s a really simple cron tutorial [pdf] too.
I’m using this to backup my home directory nightly and my localhost directory every 10 hours to my firewire drive (“Scratch”).
0 20 * * * rsync -aqz --delete ~/ /Volumes/Scratch/Backup/
* *10/ * * * rsync -aqz --delete /Library/WebServer/Documents/ /Volumes/Scratch/Server/
I like rsync + cron a lot better than SilverKeeper, CarbonCopyCloner, and SuperDuper, since it’s only a few lines of code versus a full application. I don’t want a full clone, just my home dir and server, so the command line works for me :).
Last edited by jm (2007-04-06 09:48:41)
Offline
Re: cron jobs for mac
jm,
If your version of rsync supports it, use —delete-during, this deletes files as it traverses folders. It’s much quicker in my tests than deleting everything at the start of the job with —delete.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: cron jobs for mac
Rats! It’s not included with my version. It might be on my server though, so I’ll try it out there. Thanks for the tip!
--delete delete files that don't exist on the sending side
--delete-excluded also delete excluded files on the receiving side
--delete-after receiver deletes after transferring, not before
Last edited by jm (2007-04-06 17:31:33)
Offline
Pages: 1