391 B
391 B
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/