- Create Automator Folder Action.
- Add Folder to watch.
- In Picker, enter
CMD + SHIFT + G
and type/Volumes/
- Click Choose.
- Add Run Script to Automation.
- Use /bin/bash or /bin/zsh.
- Example rsyncs:
#!/usr/bin/env bash
rsync -av -P --ignore-existing /Users/Dustin/Library/Lima/Desktop/ /Volumes/Seagate\ Backup/Desktop
rsync -av -P --ignore-existing /Users/Dustin/Library/Lima/Documents/ /Volumes/Seagate\ Backup/Documents
rsync -av -P --ignore-existing /Users/Dustin/Library/Lima/Pictures/ /Volumes/Seagate\ Backup/Pictures
Lima
is the folder for my NAS and Seagate\ Backup
is for my external hard drive.
-P
shows the files being synced.
--ignore-existing
does not sync files that already exist.