Last active
August 29, 2015 14:23
-
-
Save vitorpacheco/3baa5788cb6ac45d47d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| desktop.ini | |
| Thumbs.db | |
| thumbs.db | |
| *.plist | |
| .mediaartlocal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| from="/media/HDD2" | |
| to="/media/vitor/My Passport/Files" | |
| exclude=".sync-my-passport-exclude-list" | |
| # Sync movies | |
| echo "---" | |
| echo "Synchronizing Movies..." | |
| echo "" | |
| rsync -aAXv --exclude-from $exclude "$from/Filmes/" "$to/Movies/" | |
| # Sync tv shows | |
| echo "" | |
| echo "---" | |
| echo "Synchronizing TV Shows..." | |
| echo "" | |
| rsync -aAXv --exclude-from $exclude "$from/Séries/" "$to/TV Shows/" | |
| # Sync music | |
| echo "" | |
| echo "---" | |
| echo "Synchronizing Music..." | |
| echo "" | |
| rsync -aAXv --exclude-from $exclude --delete-after "$from/Músicas/" "$to/Music/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment