added some more scripts
This commit is contained in:
13
linux/rsync.md
Normal file
13
linux/rsync.md
Normal file
@ -0,0 +1,13 @@
|
||||
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/
|
Reference in New Issue
Block a user