Created
April 28, 2013 21:06
-
-
Save arielkirkwood/5478422 to your computer and use it in GitHub Desktop.
Shell script for Transmission that copies downloaded files to a separate directory (for processing, or syncing via Dropbox or BitTorrent Sync)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# by @neonelectro on github (Ariel Kirkwood) | |
DEST_DIR="" # put a file path for the copied files in the quotes | |
NOW=$(date +%Y-%m-%d\ %H:%M:%S) | |
cd # put the file path to your downloads folder after cd (and the space) | |
echo "$NOW Copying $TR_TORRENT_NAME to $DEST_DIR" >> $DEST_DIR/copying.log | |
echo "====================================================" >> $DEST_DIR/copying.log | |
cp -Rv "$TR_TORRENT_NAME" "$DEST_DIR" >> $DEST_DIR/copying.log | |
echo >> $DEST_DIR/copying.log #line break between logs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment