Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sichern einer kompletten partition
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)
View previous topic :: View next topic  
Author Message
AntonWert
Apprentice
Apprentice


Joined: 06 Mar 2005
Posts: 177

PostPosted: Thu May 05, 2005 5:41 am    Post subject: sichern einer kompletten partition Reply with quote

Ich möchte als Art Backup alle daten meines Rechners auf eine DVD sichern. Da der Rechner selbst kein solches Laufwerk besitzt dachte ich an tar um alles in eine Datei zu "packen" und dann per ftp o.ä. wegzukopieren.

Nur die frage ist nun wie kann ich verhindern dass tar das File das ich gerade erzeuge (muss ja auf die selbe / Partition die ich auch sichern will) in sich selbst sichert?

Und wie kann ich evtl. /usr/portage/distfiles ausspaaren um das File etwas kleiner zu halten (ich möchte diese Daten aber ungern vorher löschen)?
Back to top
View user's profile Send private message
limes
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2004
Posts: 129

PostPosted: Thu May 05, 2005 5:55 am    Post subject: Reply with quote

AntonWert wrote:
wie kann ich verhindern dass tar das File das ich gerade erzeuge (muss ja auf die selbe / Partition die ich auch sichern will) in sich selbst sichert?
Code:
tar -cvpf backup.tar bin/ boot/ etc/
etc...
sprich du gibst die gewünschten Verzeichnisse an.

AntonWert wrote:
Und wie kann ich evtl. /usr/portage/distfiles ausspaaren
das flag --exclude sollte dir helfen.

man tar verrät dir vielleicht auch ne elegantere Lösung
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Thu May 05, 2005 7:10 am    Post subject: Reply with quote

Das ganze geht natürlich auch direkt über "ssh" (Dann hast du den Zwischenschritt "Auf lokaler Platte speichern" gespart)
Code:

ssh DeinRechner "tar -c /* --exclude dev --exclude /usr/portage | gzip -9" > MeinBackup.tar.gz

(Noch nicht getestet aber sollte funktionieren).

Mfg

Sino
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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