New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Problems using rsync and launchd


Post Reply New Thread Subscribe

 
Thread Tools
ajeprog

 
Member Since: Dec 13, 2009
Posts: 1
ajeprog is on a distinguished road

ajeprog is offline
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.

Code:
<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>
QUOTE Thanks
ed724

 
ed724's Avatar
 
Member Since: Feb 08, 2005
Posts: 315
ed724 is on a distinguished road

ed724 is offline
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.



http://fairtax.org/
QUOTE Thanks

Post Reply New Thread Subscribe


« 2 drives - 2 OS's | External hard drive Boot? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Scheduling launchd tasks like cronjobs? MattSharp OS X - Operating System 1 08-04-2008 09:44 PM

All times are GMT -4. The time now is 02:10 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?