Skip to content

Instantly share code, notes, and snippets.

Created December 15, 2012 01:27
Show Gist options
  • Save anonymous/4290325 to your computer and use it in GitHub Desktop.
Save anonymous/4290325 to your computer and use it in GitHub Desktop.
SabNZBd script to duplicate TV show downloads from a processing folder (for Sickbeard) in to a "latest episodes" folder. I was getting permissions errors when viewed across samba shares so I've rechowned it and rechmodded it for good measure.
#!/bin/bash
cp -r "$1" "/home/david/usenet/tv/$3"
chown -R david "/home/david/usenet/tv/$3"
chmod -R 777 "/home/david/usenet/tv/$3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment