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.
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>