added some more scripts

This commit is contained in:
Dobromir Popov
2023-08-23 21:19:01 +00:00
parent a3aa17bcc8
commit 6fa44deff8
5 changed files with 45 additions and 2 deletions

13
linux/rsync.md Normal file
View 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/