Showing posts with label rsync. Show all posts
Showing posts with label rsync. Show all posts

Thursday, September 25, 2008

Remote File Transfer, after Logout with rsync, ssh and disown

rsync -PhaC ./folder/ remote.host:~/folder/ > rsync.log

Enter Your Password

Hit ctrl-z to pause then type 'bg' to send process to background.

Find the pid of the rsync process with:
$ ps | grep rsync | cut -d' ' -f 1 > rsync.pid; cat rsync.pid;

disown `cat rsync.pid`

Now you can logout and the transfer will continue on. To kill the process, simply enter the following:
kill `cat rsync.pid`

To monitor progress, just type:
tail -f rsync.log