Copy all media to two different locations one local one SMB

Come up with a useful post-processing script? Share it here!
Post Reply
Wirelessness
Newbie
Newbie
Posts: 4
Joined: January 13th, 2012, 7:59 pm

Copy all media to two different locations one local one SMB

Post by Wirelessness »

I'm pretty new at this. Right now I just use mostly defaults and the sabtosickbeard script. I want to copy my media to two different locations so I don't have to stream everything from my Centos server.

I want to write my completed downloads to two (or more) different locations.

For example now I have it /storage/downloads/completed

I want to also save to smb://xxx.xxx.xxx:/downloads/completed

Basically I want to store a local copy on my centos box but also write a duplicate copy of everything to my NAS Server.
jonbauer
Newbie
Newbie
Posts: 21
Joined: December 6th, 2011, 4:32 pm

Re: Copy all media to two different locations one local one

Post by jonbauer »

I want to know this too! Any help would be HUGELY appreciated!

- Jon
jonbauer
Newbie
Newbie
Posts: 21
Joined: December 6th, 2011, 4:32 pm

Re: Copy all media to two different locations one local one

Post by jonbauer »

I THINK I just need a line like this: "copy $1 /mnt/disk1/Media/TV show"

but where can I put that into the sabToSickBeard.py script I use?

Here it is in its original form:

Code: Select all

import sys
import autoProcessTV

if len(sys.argv) < 2:
    print "No folder supplied - is this being called from SABnzbd?"
    sys.exit()
elif len(sys.argv) >= 3:
    autoProcessTV.processEpisode(sys.argv[1], sys.argv[2])
else:
    autoProcessTV.processEpisode(sys.argv[1])
- Thanx!
- Jon
Post Reply