Auto Backup/Sync specific folders to USB drive?
Hi there, i'm loking for something like Time Machine to auto backup specific folder to USB SSD, i would like for it automaticly backup when USB is connected is there a software for that?
Hi there, i'm loking for something like Time Machine to auto backup specific folder to USB SSD, i would like for it automaticly backup when USB is connected is there a software for that?
So where is Docs/Music/Photos it also copies preference files
Sorry wrong post 🙂
Just out of curiosity, why do you want "something like Time Machine?" Time machine does what you appear to want.....
If the "specific folder" was changed, it would be backed up.
Barry
... i would like for it automaticly backup when USB is connected is there a software for that?
You can use launchd.
First, use this script to perform the backup:
(change "~/Documents/" to the Folder to backup
and "/Volumes/MYUSB" to your USB name)
#!/bin/bash
sleep 10
if [[ -d "/Volumes/MYUSB" ]] ; then
/usr/bin/rsync -a "~/Documents/" "/Volumes/MYUSB"
fi
Then put this plist file in ~/Library/LaunchAgents/ and Log oot and back in (or reboot)
(change /Users/Tony/Desktop/backupMyUSB.sh to the name and location of the script that you created above)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.tony.backupMyUSB</string>
<key>ProgramArguments</key>
<array>
<string>/Users/Tony/Desktop/backupMyUSB.sh</string>
</array>
<key>StartOnMount</key>
<true/>
</dict>
</plist>
Auto Backup/Sync specific folders to USB drive?