Rsync and pick up where left off with a single file

Sometimes you want to copy a single large file and have them restart where it left off if the transfer fails. Instead of using scp, you can use rsync for this. The below example would copy the file “/data/” on server to your current directory. A single “dot” represents the current directory in shell scripts.