Wenn ich im rescue-modus die komplette Partition mit tar sichern und per ssh an einen backupserver überspielen will dann müsste ich wie folgt vorgehen:
- rechner im rescue-modus booten
- mount /dev/hda1 /quelle
tar -czpf - /quelle | ssh user@backup_server "cat > /backup/hda1.tar.gz"
so, nun wenn ich das tar-archiv auf die Quellpartition zurückspielen will mit
ssh user@server "cat /backup/hda1.tar.gzâ? | tar -xpz -C /
dann sieht das neu eingespielte Verzeichnis anstatt
/bin
/boot/
/dev
etc.
so aus
/quelle/bin
/quelle/boot
/quelle/dev
etc.
Wie bringe ich tar dazu den Verzeichnisbaum erst unterhalb von /quelle bzw. ohne /quelle zu sichern, oder gibt es eine Möglichkeit das archiv erst unterhalb von /quelle zu entpacken?
Vielen Dank im Voraus für Eure Hilfe
jack
Sicherung mit tar / Restore Problem
Re: Sicherung mit tar / Restore Problem
Code: Select all
cd /quelle && tar -czpf - . | ssh ...PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
