some-usable-scripts/bash/add-torrents

10 lines
252 B
Plaintext
Raw Normal View History

#!/bin/bash
dir=~/Téléchargements/
torrentsdir=~/torrents/
server=server
find $dir -name "*.torrent" -exec transmission-remote-cli -a "{}" && mv "{}" $torrentsdir \;
rsync -av $torrentsdir $server:$torrentsdir
#ssh $server $(< add-torrents-remote)