Put Rclone copy in background

Im using putty to copy files from a local device to remote google drive.
I use the following command:
rclone copy -v /home/googledrive secret:

The problem? Ive a lot of internet cutouts in my house, so putty loses connection, and rclone seems to stop.
Any advice?

Use a termial multipexer like (assuming your host is on Linux) screen or tmux. The advantage: If your connection is lost, the command runs on and you can even reattach it in a later ssh session.
See https://wiki.ubuntuusers.de/Screen/ for handling screen.

Have a nice day!

1 Like

Thank you, seems like a good alternative

You can nohup it if you want. That will keep it running once the shell closes.

nohup rclone copy -v /home/googledrive secret > some.log

1 Like