Advertisement
Guest User

Untitled

a guest
Aug 1st, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Creare un file chiamato upload.
  2. Contenuto di upload:
  3.  
  4. open -u user,pass -p 21 192.168.0.100
  5. mirror -c -e -R /directorysorgente /directorydestinazione
  6. open -u user,pass -p 21 192.168.0.101
  7. mirror -c -e -R /directorysorgente /directorydestinazione
  8. exit
  9.  
  10. Dove 192.168.0.100 e 192.168.0.101 sono i server con ftp attivo.
  11. Creare il file backup.sh.
  12. Contenuto di backup.sh:
  13.  
  14. #!/bin/bash
  15. # Script per backup
  16. lftp -f /pathdelfileupload
  17. echo -e "Backup Eseguito"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement