Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ein paar Fragen zum Thema Backup
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
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Sat Nov 22, 2008 4:38 pm    Post subject: Ein paar Fragen zum Thema Backup Reply with quote

Hallo Zusammen,

ich suche eine Möglichkeit meine komplette Festplatte mit Ausnahme eines Verzeichnisses zu sichern.

Bevor jetzt gleich die Diskussionen über Sinn und Unsinn diese Aktion losbrechen, will ich mal kurz erklären, worum es geht.

Ich habe einen HTPC mit gentoo 2008.0 aufgesetzt.
Nachdem ich nun nach das System so habe wie ich mir das vorstelle, will ich natürlich ein Backup davon machen.

Der Punkt, "Alles, mit Ausnahme eines Verzeichnisses" hat folgende Bewandtnis, dass in diesem Verzeichnis die Aufnahmen liegen und diese nicht unbedingt besonders schützenswert sind, außerdem liegen da im Moment schon so um die 500 GB(!).


So, ich hoffe mal, dass ich mein Vorhaben so einigermaßen verständlich dargelegt habe.

Gibt es dafür einen Software oder ein Script o.Ä.?
Genial währe natürlich wenn, das ganze auch inkrementell ginge...
Back to top
View user's profile Send private message
Mr. Anderson
l33t
l33t


Joined: 22 Apr 2004
Posts: 762

PostPosted: Sat Nov 22, 2008 5:06 pm    Post subject: Reply with quote

Ich hab das zwar noch nie selbst gemacht, aber nach meinem Wissensstand sollte das mit rsync doch möglich sein (inkrementell, mit blacklist).
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Sat Nov 22, 2008 6:22 pm    Post subject: Reply with quote

dar-backup ist super:

time dar -g bin -g boot -g etc -g home -g lib -g media -g opt -g root -g sbin -g usr -g var -P var/tmp/ -P usr/portage/ -P var/log/ -P usr/src/ -P root/backup/ -y -R / -s 1500M -c /filme/tmp/$file -v -X "backup.dar.*.dar"

-g wird gesichert
-P wird ignoriert
dabei kann das Verzeichnis von -P auch in -g sein.

-R ist das Root-Verzeichnis
-s die Dateigröße


Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Sat Nov 22, 2008 7:18 pm    Post subject: Reply with quote

Finswimmer wrote:
dar-backup ist super:....


Nein, das ist weit untertieben!! :lol: Dar ist absolute Spitzenklasse! :D :D :D

1000 thx @ Finswimmer für den Tipp. :wink:

Ich habe mir mal KDar installiert, damit kann man das dann ganz bequem unter KDE anpassen.

Das beste ist aber, dass man die Anpassungen als Shellscript exportieren kann.

Dann kann man dann ganz bequem, z.B. via SSH, ein backup machen.

Hier mal mein Beispiel:

Code:
#!/bin/bash

# Run this script to create an archive using the following dar command.

dar -v -c "/mnt/sda5/BACKUP/22-11-2008" -R "/" -s 4613734400 -p -D -y -m 150 -Y "*.avi" -Y "*.bz2" -Y "*.gif" -Y "*.gz" -Y "*.jpg" -Y "*.mov" -Y "*.mpg" -Y "*.pbm" -Y "*.pdf" -Y "*.png" -Y "*.pnm" -Y "*.Z" -Y "*.zip" -P "mnt/sda5/BACKUP" -P "mnt/data/video" -P "proc" -P "video" -P "video0"


Kurz zur Erklärung:

Die Dateien (Aufnahmen), die NICHT gesichert werden sollen, liegen in: /mnt/data/video, /video und /video0 sin Symlinks auf das Flmverzeichnis

@ Mr. Anderson

Mit rsync bin ich nicht klar gekommen. :cry:

--> Ich habe mich aber auch zugegebenermasen, nach dem Tipp von Finswimmer, nicht weiter damit befasst. :oops:

Code:
vdr02 ~ # rsync -navzH  --exclude=/video/ --exclude=/video0/ --exclude=/mnt/data/video/  /mnt/data/BACKUP/
sending incremental file list
drwxr-xr-x          29 2008/11/22 19:56:36 .
-rw-r--r--  3647519330 2008/11/22 20:06:37 22-11-2008.1.dar

sent 57 bytes  received 12 bytes  138.00 bytes/sec
total size is 3647519330  speedup is 52862598.99 (DRY RUN)
vdr02 ~ #
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2616
Location: Konradsreuth (Germany)

PostPosted: Sat Nov 22, 2008 7:30 pm    Post subject: Reply with quote

Also es geht auf jeden Fall auch mit rsync --exclude bzw. rsync --exclude-from.
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Sat Nov 22, 2008 7:38 pm    Post subject: Reply with quote

Dar hat den generellen Vorteil, dass du es splitten und komprimieren kannst.
Rsync ist vom Handling eigentlich noch einfacher...
Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
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