melawy-archiso-config/rsync_to_home_on_server.sh

11 lines
249 B
Bash
Executable File

#!/bin/bash
echo "Sending"
rsync -avP --delete-after --progress "./sf/" "/var/www/www/transmission/downloads/"
for i in $(find "./sf/" -name "*.torrent")
do
rsync -avP --delete-after --progress "$i" "/var/www/www/transmission/torrents/"
done