Saturday, June 11, 2011

Resume scp transfers

I use this handy script as a replacement for scp. It supports resuming of partially transferred files and avoids transfer of files that already exists in the destination path. This script uses rsync so make sure it is available on your system.

#!/bin/sh
rsync --compress --compress-level=9 --links --no-motd --partial --perms --progress --recursive --times --verbose --rsh=ssh $@

No comments: