[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tar und exclude hard links



noch einen Nachtrag ...

From: "Daniel Bauer"
ich sichere mit rsnapshot, was auch gut funktioniert. Im Anschluß möchte ich von einem Snapshot mit tar ein Backup auf Band machen. Leider nimmt dieser alle Hard Links mit, somit habe ich jedes mal eine Vollsicherung, kann man das irgendwie ändern? Gibt es eine Option die tar veranlasst keine Hard Links zu sichern?

wenn ich das einzelne Verzeichnis ansehe, erkennt weder tar noch du die Hard Links:

# tar -cSpvf h0.tar --atime-preserve --numeric-owner rsnapshot/hourly.0
# ls -l h0.tar
902248  h0.tar
# du -Hs rsnapshot/hourly.0
908348  rsnapshot/hourly.0

# tar -cSpvf h1.tar --atime-preserve --numeric-owner rsnapshot/hourly.1
# ls -l h1.tar
902340  h1.tar
# du -Hs rsnapshot/hourly.1
908488  rsnapshot/hourly.1

# tar -cSpvf h2.tar --atime-preserve --numeric-owner rsnapshot/hourly.2
# ls -l h2.tar
902248  h2.tar
# du -Hs rsnapshot/hourly.2
908348  rsnapshot/hourly.2

wenn ich es aber auf das komplette rsnapshot Verzeichnis loslasse, sieht es wieder so aus, als würde tar und du erkennen, daß hourly.1 und .2 "kleiner" sind:

# tar -cSpvf rsnap.tar --atime-preserve --numeric-owner rsnapshot
# ls -l rsnap.tar
-rw-r--r-- 1 root root 925890560  7. Okt 15:04 rsnap.tar
# du -Hs rsnapshot/*
908348  rsnapshot/hourly.0
576     rsnapshot/hourly.1
436     rsnapshot/hourly.2

also ist irgendwie der Hard Link anscheinend doch sichtbar, oder?

Merci
Daniel
Reply to: