Article View: aus.computers.linux
Article #55688Re: tar
From: Chris Saunderson
Date: Wed, 14 May 1997 00:00
Date: Wed, 14 May 1997 00:00
56 lines
2409 bytes
2409 bytes
david.woodruff@divadtech.com.au (David Woodruff) writes: > On Mon, 12 May 1997 18:53:08 +0930, luke <luke@chipcity.com.au> wrote: > > >second hdd. I want to tar my whole system to the second hard drive. > >Can anyone tell me how to do it? > > > >Then I want to do a find for the files that have been added daily or > >weekly and tar them as well, > >Anyone know how? > > Ummm, "man tar"??? tar -zcvf to compress, tar -zxvfp to restore? Erm. Looking at my tar manpage, that don't help. Doesn't mention anything about going between disks/filesystems. Something approaching this is probably what you want: [DISCLAIMER: if you haven't read and understood the manpage, it's your problem] >su Password:************* # (cd /; tar clBf - . ) | (cd /drive2/; tar xBf -) # The l flag allegedly does local filesystems only. Dunno whether that means disks mounted on the root fs or not. Bueller? Part II of the question is a straight from the manpage response. Write a little script that does the find using the -newer flag and then touches a file that you then use to feed find next time around. You can use -fprint _file_ to output the files that are picked up in the find to generate a logfile/workfile. Check your man pages a little closer and you'll see lots of cool stuff that you can use. Also consider learning Perl to ease your load. Cheers Saundo -- Chris "Saundo" Saunderson Chris.Saunderson@adelaide.maptek.com.au Technical Support Engineer Telephone: (08) 8379 7333 Maptek Pty Ltd - Adelaide "The problem with troubleshooting is that sometimes trouble shoots back." -- -- Chris "Saundo" Saunderson Chris.Saunderson@adelaide.maptek.com.au Technical Support Engineer Telephone: (08) 8379 7333 Maptek Pty Ltd - Adelaide
Technical Details
Message-ID:
<4uvi4neydf.fsf@schroedinger.adelaide.maptek.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3376E17C.7B8D@chipcity.com.au> <3377b5b1.600012@news.divadtech.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,5723a9ea190ee328 X-Google-Attributes: gid102983,public From: Chris Saunderson <saundo@schroedinger.adelaide.maptek.com.au> Subject: Re: tar Date: 1997/05/14 Message-ID: <4uvi4neydf.fsf@schroedinger.adelaide.maptek.com.au> X-Deja-AN: 241374943 References: <3376E17C.7B8D@chipcity.com.au> <3377b5b1.600012@news.divadtech.com.au> To: luke@chipcity.com.au X-funny-header: Amanda Vanstone. BWHAHAHHAHAHAHAHAHAHA Organization: Camtech (SA) Pty Ltd Customer Newsgroups: aus.computers.linux Originator: saundo@