manintheit.org

manintheit.org


Screen & Rsync

  • Ctrl+a d: Detach screen from this terminal.
  • Ctrl+a r: Reattach a session and if necessary detach it first.
  • screen -ls : Lists existing screen sessions.
  • scren -r : To reattach existing session to foreground.
gns3@gns3:~$ screen -ls
There is a screen on:
4485.pts-5.gns3 (07/16/2017 06:39:04 PM) (Attached)
1 Socket in /var/run/screen/S-gns3.
screen -r <session id>
gns3@gns3:~$screen -r 4485

Rsync

To send a file with rsync over ssh protocol(ssh key); You can apply below command.

gns3@gns3:~$rsync -av --partial -e "ssh -p 10443 -i idraspberry.pem" gns3.7z.sec [email protected]:/home/pi
-a, --archive archive mode.

-v, --verbose increase verbosity.

--partial keep partially transferred files.

-e, --rsh=COMMAND specify the remote shell to use.

--progress show progress during transfer.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.