Thread: Problems using rsync and launchd
12-13-2009, 03:32 PM #1
Problems using rsync and launchd
- Member Since
- Dec 13, 2009
I have a computer at work that I would like to backup. I only need to backup a couple of folders, and I won't be connected to any external drives except for an 8GB usb stick. I have a 13" Macbook Pro.
I have had reasonable success with this using rsync and launchd. But there are a few quirks. For instance, the following launch agent spawns TWO rsync processes that run continuously and eat up around 30% of my CPU. Does anybody know why there are two processes, why they run continuously, or why they eat up so much power when they are copying nothing?
It seems to be copying all the files over and over again every ten minutes, despite the fact that they haven't changed. My entire reason for using rsync was to get avoid this.
Also, I don't want to use chronosync, time machine, or any other third party software. I'm not that kind of guy.
Any help at all would be appreciated.
<plist version="1.0"> <dict> <key>Label</key> <string>USB backup</string> <key>ProgramArguments</key> <array> <string>/usr/bin/rsync</string> <string>-a</string> <string>/Users/alan/Documents/school/</string> <string>/Volumes/ALAN8G/backUp/school</string> </array> <key>RunAtLoad</key> <true/> <key>StartInterval</key> <integer>600</integer> </dict> </plist>
12-14-2009, 05:49 PM #2
Looks like you need something in there to check for differences, then copy if yes, and close down the process when complete. Use a cron job to spawn the process versus running at boot.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By vasu in forum OS X - Operating SystemReplies: 2Last Post: 12-13-2011, 10:32 AM
By DeviousDan in forum OS X - Operating SystemReplies: 0Last Post: 02-09-2009, 09:47 PM
By Pankaj in forum OS X - Development and DarwinReplies: 0Last Post: 02-19-2008, 02:05 AM
By dr_springfield in forum OS X - Development and DarwinReplies: 0Last Post: 05-10-2005, 02:40 PM