Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. rsync src_user@src_hostname:src_dir/ trg_user@target_hostname:target_dir/
  2.  
  3. rsync --help
  4.  
  5. man rsync
  6.  
  7. $ ssh-keygen
  8.  
  9. $ ssh-copy-id -i /root/.ssh/id_rsa.pub root@server-ip:
  10.  
  11. #!/bin/bash
  12. ## Rsync script
  13. ###
  14. PATH=/usr/bin:
  15. rsync -auvz root@server-ip:/path/to/directory/ /backup-server/path/to/backup/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement