How does `scp` differ from `rsync`?

后端 未结 7 2059
失恋的感觉
失恋的感觉 2020-12-04 04:58

An article about setting up Ghost blogging says to use scp to copy from my local machine to a remote server:

scp -r ghost-0.3 root@*your-server-         


        
7条回答
  •  余生分开走
    2020-12-04 05:02

    rysnc can be useful to run on slow and unreliable connections. So if your download aborts in the middle of a large file rysnc will be able to continue from where it left off when invoked again.

    Use rsync -vP username@host:/path/to/file .

    The -P option preserves partially downloaded files and also shows progress.

    As usual check man rsync

提交回复
热议问题