Files
scripts/linux/rsync.md
2023-08-23 21:19:01 +00:00

13 lines
391 B
Markdown

a. On the source machine, generate an SSH key pair:
>ssh-keygen
Now, copy the public key to the destination machine:
>ssh-copy-id popov@192.168.0.11
#set permission locally
#chmod 600 /root/.ssh/id_rsa
apk add rsync
#!/bin/sh
rsync -avz /mnt/storage/Home-new/ popov@192.168.0.11:/mnt/storage/Home-new-copy/
rsync -avz /mnt/apps/DEV/ popov@192.168.0.11::/mnt/storage/DEV/workspace/dbspare/