Skip to content

Shell script I use to download remote files from a seedbox to my local PC

Notifications You must be signed in to change notification settings

Logvin/synctorrents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

synctorrents

This is a bash script written to assist in moving content from one linux based machine to another. This solution utilizes the “Atomic Transfers” needed to ensure that destination utilities (Sonarr, Radarr, etc) do not move partially transferred files too early.

Sample Scenario

I have a seedbox running in the cloud, and a Plex server running separately with Sonarr/Radarr/etc on it. When new files are downloaded, I want the script to strip out everything but the video file. If the file is in a RAR, extract it first. Once it has staged the files, it will use RSync to push them to my remote server where Sonarr/Radarr can grab and file away.

Prerequisites

  1. Install Rsync Daemon on the destination server.
  2. Create the ExtractAndTransfer file on the originating server, typically as ExtractAndTransfer.sh, and ensure that it is executable with chmod +x ExtractAndTransfer.sh
  3. Create a file for your Rsync Password on the originating server, typically named rsync_pass and located with the ExtrctAndTransfer.sh file. This file should contain only the password, nothing else. Ensure you chmod 600 rsync_pass if this is a shared server.
  4. Go through the ExtractAndTransfer.sh variables to ensure that your path names and variable names match your environment (IE: rsync_pass="/your/location/rsync_pass" should be updated to the correct path)

If you have run into any issues, please file an issue in Github.

About

Shell script I use to download remote files from a seedbox to my local PC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages