Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wie funktioniert rsnapshot?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Wed Feb 27, 2008 5:46 pm    Post subject: Wie funktioniert rsnapshot? Reply with quote

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
View user's profile Send private message
Fauli
l33t
l33t


Joined: 24 Apr 2004
Posts: 760
Location: Moers, Germany

PostPosted: Thu Feb 28, 2008 6:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Thu Feb 28, 2008 8:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1734
Location: Velbert

PostPosted: Thu Feb 28, 2008 8:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Thu Feb 28, 2008 9:17 pm    Post subject: Reply with quote

ich dachte rsync vergleicht standardmäßig nur die modification dates.
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1734
Location: Velbert

PostPosted: Thu Feb 28, 2008 9:50 pm    Post subject: Reply with quote

Macht es auch, hatte im Kopf das bei rsnapshot standardmäßig das anders eingestellt ist. :oops:

Aber was sagt den rsnapshot -t <interval> ?

Py
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Thu Feb 28, 2008 10:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum