Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-06 08:25:02

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

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

#2 2007-04-06 09:38:41

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

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

#3 2007-04-06 14:40:04

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

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.

Offline

#4 2007-04-06 17:31:04

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

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

Board footer

Powered by FluxBB