scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit ac8d0d1cde058f3d2157ac03b8af46f57e0c8cad
parent 0a496c6f3c2f95ba7e651cb1d33b8ca0dcfd73d4
Author: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Date:   Wed, 27 Nov 2013 11:05:39 +0000

Make it a bit more customizable

Diffstat:
destiny-get | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/destiny-get b/destiny-get @@ -1,7 +1,13 @@ #!/bin/sh +host=sin@amnezia.2f30.org +# remote directory +rdir=torrents +# local directory +ldir=~/torrents + listing=$(mktemp) -ssh amnezia "ls torrents" > $listing +ssh $host "ls $rdir" > $listing idx=0 while read f; do echo "$idx: $f" @@ -39,6 +45,6 @@ while read f; do done < $listing escapedfile=$(echo ${f// /\\ }) -rsync --partial --progress -av -e ssh amnezia:"torrents/$escapedfile" ~/torrents +rsync --partial --progress -av -e ssh $host:"$rdir/$escapedfile" "$ldir" rm $listing