Page 1 of 1

Copy all media to two different locations one local one SMB

Posted: January 17th, 2012, 11:35 am
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.

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

Posted: January 17th, 2012, 1:03 pm
by jonbauer
I want to know this too! Any help would be HUGELY appreciated!

- Jon

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

Posted: January 17th, 2012, 1:14 pm
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