Skip to content

Instantly share code, notes, and snippets.

@marhan
Created December 29, 2018 10:26
Show Gist options
  • Save marhan/1e955603c3affa96edeb0bcda4ec549f to your computer and use it in GitHub Desktop.
Save marhan/1e955603c3affa96edeb0bcda4ec549f to your computer and use it in GitHub Desktop.
Shell script for backup data from one volume to another.
#!/bin/bash
rsync -avzi \
--delete --delete-excluded --force-delete --progress \
--exclude-from /Volumes/MyData/backup-excluded.txt \
/Volumes/MyData/ /Volumes/Backup/MyData/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment