View Full Version : Rsync - Ubuntu server 11.1 - BACKUP
Ciao sono nuovo nell'utilizzo di questo strumento per fare il backup.
Ho già installato Gadmin-rsync ma non riesco a capire come impostare il percorso dei computer in rete per fare il backup?
potete aiutarmi? grazie.
personalmente non l'ho provato...
richiede anche ssh-keygen, scp ed ssh
http://www.ghacks.net/2009/12/26/create-rsync-backups-easily-with-the-help-of-gadmin-rsync/
- http://www.thegeekstuff.com/2010/09/rsync-command-examples/
Semplificando l'uso di rsync potrebbe essere:
rsync --progress --stats -ax
--exclude=/robe_da escludere_a_priori
/mnt/origine <--- sarebbe l'originale da esaminare, la tua /
/mnt/backup/root <---- destinazione in cui sincronizzare
Il tuo hd-esterno lo monti su /mnt/backup
la partizione di root /dev/sda6 su /mn/origine
I mount sono tipo: mount /dev/sda6 /mnt/punto_di_mount
Ti posso lasciare degli script che uso sulle mie macchine se ti possono essere di spunto, sperando che non siano troppo "avanzati":
rsync_root ::
#!/bin/sh
# This scripts initializes the root for incremental backups
/usr/bin/apt-get clean
mount -o remount,rw /mnt/backup/
rsync --progress --stats -ax --delete \
--exclude=/tmp/ \
--exclude=var/spool/squid3 \
--exclude=mnt/clusters \
--exclude=mnt/backup \
--exclude=/proc \
--exclude=/sys \
--exclude=*vmdk \
--exclude=*iso \
/ /mnt/backup/garage/root
mount -o remount,ro /mnt/backup/
rsync_root_fs_incremental :
#!/bin/sh
# This script goes for the periodic incremental backup
# of the OS: root partition.
# Beware: garage is not build on LVM
FS_path=/mnt/backup
# Path where the backup filesystem is located:
# this could be used for a mount ro | rw
BAK_path=garage/os
# Relative path to FS_path where the actual backup is
/usr/bin/apt-get clean
mount -o remount,rw $FS_path
rsync --progress --stats -ax --delete \
--link-dest=$FS_path/$BAK_path/latest \
--exclude=/tmp/ \
--exclude=var/spool/squid3 \
--exclude=mnt/clusters \
--exclude=mnt/backup \
--exclude=/proc \
--exclude=/sys \
--exclude=*vmdk \
--exclude=*iso \
/ $FS_path/$BAK_path/root_$(date +%Y%m%d)
rm $FS_path/$BAK_path/latest
ln -s $FS_path/$BAK_path/root_$(date +%Y%m%d) $FS_path/$BAK_path/latest
mount -o remount,ro $FS_path
- http://www.thegeekstuff.com/2010/09/rsync-command-examples/
grazie per l'interessante articolo, solo che non capisco come impostare il percorso di un computer remoto:
tipo se da terminale scrivo,
"sudo ls nomeproprietario@indirizzoIP:/nomePC/cartella/"
mi dice che il percorso è sbagliato, in pratica che percorso devo mettere?
penso poi che sia la stessa cosa per Gadim-rsync
http://www.ghacks.net/wp-content/uploads/2009/12/gadmin_rsync_server.png
non so come completare....
grazie ciao
"ls" visualizza i file di un filesystem
(e lo fa su un filesystem remoto solo se viene montato)
hai provato a inserire i valori nei campi:
remote-server=indirizzoIP o nome pc remoto
remote-path=/cartella/
remote-user=nomeproprietario
password
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.