Continue after a broken SCP connection

Problem:

You transfer a file to a remote computer via scp:

scp my_favourite_file.tar.gz user@192.168.16.2:~

But before the transfer is completed the connection is broken.
How can I continue the transfer from the point it broke?

Solution:


rsync -P -e ssh my_favourite_file.tar.gz user@192.168.16.2:~

Advertisements

How to clear the CUPS print queue

To cancel a print job in the queue just use cancel. To see all the available jobs in the queue just use lpstat.

$ lpstat -o
HP-Officejet-7610-2-128 user2     240640   mié 09 mar 2016 11:07:14 CET
HP-Officejet-Pro-8620-137 jose             55296   dom 03 jul 2016 13:29:49 CEST
$ cancel -a HP-Officejet-7610-2-128
$ cancel -a HP-Officejet-Pro-8620-137