Copy Files With SCP And Rsync

Copy Files and directories in linux

cp


scp

$ scp -r ./sayboy sayboy@sayboy.com:/tmp
$ scp -r sayboy@sayboy.com:/tmp/sayboy .

$ rsync sayboy.txt sayboy@sayboy.com:/tmp
$ rsync sayboy@sayboy.com:/tmp/sayboy.txt .

$ rsync -avz root@sayboy.com:/opt/pkg /opt/pkg

rsync

Rsync with the function of renewal transmission.

Licensed under CC BY-NC-SA 4.0
comments powered by Disqus