🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #12086

Re: Backup auf Disk

#12086
From: Christian
Date: Mon, 13 Aug 2001 11:06
51 lines
3091 bytes
Hallo,

"Juerg Oehler" <juerg.oehler@mails.ch> schrieb im Newsbeitrag
news:3B34287F.5C01C5DD@mails.ch...
>tschau thomas,
>
> darf ich auch noch eine l�sung zum problem beisteuern. das ist nun mal unix.
> viele wege f�hren nach rom.
[...]
> find dir1 dir2 dirn -mount -print | cpio -ovBO /data/backup.yyyymmdd
>
> etwas komplexer w�re diese variante:
> find dir1 dir2 dirn -mount -print | egrep -v
>
> '(.err)|(.bak)|(.old)|(/tmp/)|(/cache/)|(^./var/spool/lp/(requests|temp))|
> (^./va r/spool/uucp/(.Log|.Old))'
>
> | cpio -ovBO /data/backup.yyyymmdd
> der egrep ber�cksichtigt meine aufr�um nachl�ssigkeiten, er filtert den
> schrott
> heraus.

ich habe gerade diese tips fuer ein backup angeschaut. die sind ja voll von
pipes & regExp & anderen schraegen sachen, die mir allesamt noch ziemlich fremd
sind. ich mache ja auch backups von meinem system, und nun frage ich mich, ob
mir hierbei was verlorengeht, denn das sieht ganz anderes aus, als Deine
scriptausschnitte:

/bin/tar czf /data/Storage/Backup/bin`date -I`.tar.gz /bin/
/bin/tar czf /data/Storage/Backup/boot`date -I`.tar.gz /boot/
/bin/tar czf /data/Storage/Backup/dev`date -I`.tar.gz /dev/
/bin/tar czf /data/Storage/Backup/etc`date -I`.tar.gz /etc/
/bin/tar czf /data/Storage/Backup/home`date -I`.tar.gz /home/
/bin/tar czf /data/Storage/Backup/lib`date -I`.tar.gz /lib/
/bin/tar czf /data/Storage/Backup/toor`date -I`.tar.gz /root/
/bin/tar czf /data/Storage/Backup/sbin`date -I`.tar.gz /sbin/
/bin/tar czf
/data/Storage/Backup/usr`date -I`.tar.gz --exclude=/usr/local/games/ut --exclude
=/usr/src --exclude=/usr/local/src /usr/
/bin/tar czf
/data/Storage/Backup/var`date -I`.tar.gz --exclude=/var/spool/squid --exclude=/v
ar/tmp /var/

(ich weiss, das geht bestimmt noch kuerzer, aber noch ist's ja ganz
uebersichtlich.)

wo liegt der grosse unterschied, warum sollte ich mir find / egrep / cpio
aneignen, wo sind die vorteile/nachteile der jeweiligen methode?

Danke,
Christian.
Technical Details
Message-ID: <a9g8l9.jhg.ln@192.168.0.10>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
References: <9gdco3$fp1$1@rex.ip-plus.net> <3B34287F.5C01C5DD@mails.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII
X-Google-Thread: f4b73,aa9f462fe1cb8d86
X-Google-Attributes: gidf4b73,public
X-Google-ArrivalTime: 2001-08-13 06:01:03 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
From: "Christian" <evilninja@t-online.de>
Newsgroups: ch.comp.os.linux
Subject: Re: Backup auf Disk
Date: Mon, 13 Aug 2001 13:06:14 +0200
Organization: T-Online
Lines: 53
Message-ID: <a9g8l9.jhg.ln@192.168.0.10>
References: <9gdco3$fp1$1@rex.ip-plus.net> <3B34287F.5C01C5DD@mails.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 997707603 04 12316 XpoIScZbSHYb54 010813 13:00:03
X-Complaints-To: abuse@t-online.com
X-Sender: 510068624532-0001@t-dialin.net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200