View previous topic :: View next topic |
Author |
Message |
manuels Advocate
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
Posted: Wed Feb 27, 2008 5:46 pm Post subject: Wie funktioniert rsnapshot? |
|
|
Moin zusammen,
also ich habe gestern Abend ein rsnapshot komplett durchlaufen lassen.
Jetzt habe ich nur zur Kontrolle noch einmal rsnapshot gestartet und rsync kopiert _alle_ Dateien nochmal.
Ich dachte, er würde nur die geänderten Dateien kopieren müssen.
Versteht das jemand?
Vielen Dank für Hinweise
Manuel _________________ Build your own live cd with catalyst 2.0! |
|
Back to top |
|
|
Fauli l33t
Joined: 24 Apr 2004 Posts: 760 Location: Moers, Germany
|
Posted: Thu Feb 28, 2008 6:12 pm Post subject: |
|
|
Wahrscheinlich wird rsync mit der Option "--link-dest" aufgerufen. Dann werden zwar alle Verzeichnisse neu angelegt, aber für die unveränderten Dateien nur Hardlinks auf die schon vorhandenen Daten erstellt, welche keinen zusätzlichen Platz belegen (abgesehen vom Directory-Eintrag). _________________ Do your part to beautify the web! Turn off link underlining! |
|
Back to top |
|
|
manuels Advocate
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
Posted: Thu Feb 28, 2008 8:00 pm Post subject: |
|
|
Dann würden aber große Dateien ratzfatz erstellt werden, oder?
Bei mir scheinen die Dateien kopiert zu werden. _________________ Build your own live cd with catalyst 2.0! |
|
Back to top |
|
|
py-ro Veteran
Joined: 24 Sep 2002 Posts: 1734 Location: Velbert
|
Posted: Thu Feb 28, 2008 8:22 pm Post subject: |
|
|
rsnapshot liest aus dem ersten Backup die Datei und die Quelldatei, vergleicht diese und legt dann den Link oder halt die Kopie an.
D.h. die Datei muss zweimal komplett gelesen werden, das dauert.
Außerdem muss das FS links unterstützen, benutzt du z.B. FAT werden immer alle Dateien kopiert.
Py |
|
Back to top |
|
|
manuels Advocate
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
|
Back to top |
|
|
py-ro Veteran
Joined: 24 Sep 2002 Posts: 1734 Location: Velbert
|
Posted: Thu Feb 28, 2008 9:50 pm Post subject: |
|
|
Macht es auch, hatte im Kopf das bei rsnapshot standardmäßig das anders eingestellt ist.
Aber was sagt den rsnapshot -t <interval> ?
Py |
|
Back to top |
|
|
manuels Advocate
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
Posted: Thu Feb 28, 2008 10:12 pm Post subject: |
|
|
Da kommt folgendes:
Code: | echo 12513 > /var/run/rsnapshot.pid
mkdir -m 0755 -p /mnt/backup/.snapshot/daily.0/
/usr/bin/rsync -ax --delete --numeric-ids --relative --delete-excluded \
--progress --exclude-from=/etc/rsnapshot_exclude /home/manuel \
/mnt/backup/.snapshot/daily.0/localhost/
mkdir -m 0755 -p /mnt/backup/.snapshot/daily.0/
/usr/bin/rsync -ax --delete --numeric-ids --relative --delete-excluded \
--progress --exclude-from=/etc/rsnapshot_exclude \
--exclude=mnt/backup/.snapshot /. \
/mnt/backup/.snapshot/daily.0/localhost/
mkdir -m 0755 -p /mnt/backup/.snapshot/daily.0/
/usr/bin/rsync -ax --delete --numeric-ids --relative --delete-excluded \
--progress --exclude-from=/etc/rsnapshot_exclude /usr \
/mnt/backup/.snapshot/daily.0/localhost/
mkdir -m 0755 -p /mnt/backup/.snapshot/daily.0/
/usr/bin/rsync -ax --delete --numeric-ids --relative --delete-excluded \
--progress --exclude-from=/etc/rsnapshot_exclude /var \
/mnt/backup/.snapshot/daily.0/localhost/
mkdir -m 0755 -p /mnt/backup/.snapshot/daily.0/
/usr/bin/rsync -ax --delete --numeric-ids --relative --delete-excluded \
--progress --exclude-from=/etc/rsnapshot_exclude /opt \
/mnt/backup/.snapshot/daily.0/localhost/
mkdir -m 0755 -p /mnt/backup/.snapshot/daily.0/
/usr/bin/rsync -ax --delete --numeric-ids --relative --delete-excluded \
--progress --exclude-from=/etc/rsnapshot_exclude /usr \
/mnt/backup/.snapshot/daily.0/localhost/
mkdir -m 0755 -p /mnt/backup/.snapshot/daily.0/
/usr/bin/rsync -ax --delete --numeric-ids --relative --delete-excluded \
--progress --exclude-from=/etc/rsnapshot_exclude /boot \
/mnt/backup/.snapshot/daily.0/localhost/
touch /mnt/backup/.snapshot/daily.0/
|
_________________ Build your own live cd with catalyst 2.0! |
|
Back to top |
|
|
|