- Muchas notas - Fran Acién

20220110 - Copy folder with rsync

Copy folder from remote to local:

$ rsync -chavzP --stats user@remote.host:/path/to/copy /path/to/local/storage

For example if you want to copy folder src from remote machine:

$ rsync -chavzP --stats hetzner:/data/zet/web/src .

From remote to local:

rsync -avz /path/to/local/folder username@remote_host:/path/to/remote/folder