10 lines
252 B
Bash
Executable File
10 lines
252 B
Bash
Executable File
#!/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)
|