* [gentoo-user-de] Differentielles Backup mit tar
@ 2005-12-02 11:25 Volker Katz
2005-12-03 9:38 ` Olaf Niermann
0 siblings, 1 reply; 2+ messages in thread
From: Volker Katz @ 2005-12-02 11:25 UTC (permalink / raw
To: gentoo-user-de
Moin,
ich habe hier ein kleines Backup-Skript, dass mit tar einige Verzeichnisse
sichert.
Nun nutze ich die Option -g, um nicht jedes Mal ein komplettes Backup zu
machen. Doch leider funktioniert das nicht ganz so, wie ich es mir
vorgestellt habe.
Der Aufruf im Skript sieht so aus:
/bin/tar -cpzf $archive -g $timestamp $file
Wenn ich mir nun das Backup und Dateigrößen ansehe, wird deutlich, dass wohl
immer der Unterschied zum Vortag gespeichert wird:
28G volker_2005-11-27_full.tar.gz
19M volker_2005-11-28.tar.gz
16M volker_2005-11-29.tar.gz
2.5M volker_2005-11-30.tar.gz
8.1M volker_2005-12-01.tar.gz
Im Moment erstelle ich das Vollbackup indem ich die Datei in $timestamp
lösche.
Nun möchte ich aber nicht den Unterschied zum Vortag sichern, sondern den
Unterschied zum letzten Vollbackup. Kann tar das auch alleine, oder muß ich
die Timestampdatei immer wieder sichern und überschreiben?
Ich hoffe, ich konnte mich verständlich machen...
Gruß & Danke
Volker
--
gentoo-user-de@gentoo.org mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [gentoo-user-de] Differentielles Backup mit tar
2005-12-02 11:25 [gentoo-user-de] Differentielles Backup mit tar Volker Katz
@ 2005-12-03 9:38 ` Olaf Niermann
0 siblings, 0 replies; 2+ messages in thread
From: Olaf Niermann @ 2005-12-03 9:38 UTC (permalink / raw
To: gentoo-user-de
Hallo Volker,
> ich habe hier ein kleines Backup-Skript, dass mit tar einige
> Verzeichnisse sichert.
> Nun möchte ich aber nicht den Unterschied zum Vortag sichern,
> sondern den Unterschied zum letzten Vollbackup.
Da könnte Dir die tar-Option --newer helfen.
# Full Backup
/bin/date '+%Y-%m-%d' >$timestamp
/bin/tar -cpzf $archive $file
# Differentielles Backup
NDATE=`cat $timestamp`
/bin/tar -cpzf $archive --newer $NDATE $file
Gruß, Olaf
--
gentoo-user-de@gentoo.org mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-03 9:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-02 11:25 [gentoo-user-de] Differentielles Backup mit tar Volker Katz
2005-12-03 9:38 ` Olaf Niermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox