Pozarynicoeta
08-26-2011, 02:11 AM
I have written a python script that you can run on your seedbox and it will copy the completed files to another location (in most cases a remote location).
This is useful if you are running a seedbox offshore but want the files to automatically push to your home machine once downloaded.
Highlights of using this script:
- Mirror completed downloads to a target directory or machine.
- Continue to seed torrent even after deleting files from target.
- Seedbox initiates the connection, no polling the seedbox for changes!
- Files "remember" they have been synced, so they will never resync once deleted from target.
This can be run all on a single machine, across a local network, or over the internet (which is what I first designed it for).
The script uses a proper "push" technique (requires port open on home firewall) which doesn't poll the server for changes, saving bandwidth when idle.
If running this script local or on a single machine you have the advantage of being able to delete downloaded files from the target (mirrored) directory and continue to seed them from your client's download directory.
I have included instructions in the comments at the top of the script, but it's pretty straight forward to use.
$ ./seedbox-sync.py --progress /opt/deluge-complete/ [email protected]:~/downloads/
Where the /opt/deluge-complete/ directory is the directory where your Deluge (or other) torrent client saves completed downloads to and home.dyndns.com is your target home machine where the downloads will be pushed.
Hope you find this useful. Let me know if you need help or run into problems.
84104
This is useful if you are running a seedbox offshore but want the files to automatically push to your home machine once downloaded.
Highlights of using this script:
- Mirror completed downloads to a target directory or machine.
- Continue to seed torrent even after deleting files from target.
- Seedbox initiates the connection, no polling the seedbox for changes!
- Files "remember" they have been synced, so they will never resync once deleted from target.
This can be run all on a single machine, across a local network, or over the internet (which is what I first designed it for).
The script uses a proper "push" technique (requires port open on home firewall) which doesn't poll the server for changes, saving bandwidth when idle.
If running this script local or on a single machine you have the advantage of being able to delete downloaded files from the target (mirrored) directory and continue to seed them from your client's download directory.
I have included instructions in the comments at the top of the script, but it's pretty straight forward to use.
$ ./seedbox-sync.py --progress /opt/deluge-complete/ [email protected]:~/downloads/
Where the /opt/deluge-complete/ directory is the directory where your Deluge (or other) torrent client saves completed downloads to and home.dyndns.com is your target home machine where the downloads will be pushed.
Hope you find this useful. Let me know if you need help or run into problems.
84104