Skip to content

Instantly share code, notes, and snippets.

@vitorpacheco
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save vitorpacheco/3baa5788cb6ac45d47d0 to your computer and use it in GitHub Desktop.

Select an option

Save vitorpacheco/3baa5788cb6ac45d47d0 to your computer and use it in GitHub Desktop.
desktop.ini
Thumbs.db
thumbs.db
*.plist
.mediaartlocal
#!/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