Re: excluding files w/ tar
From: Winston Smith (violinuxist_at_yahoo.co.uk)
Date: 06/02/05
- Previous message: Tony Godshall: "Re: Problems Mounting Digital Camera"
- In reply to: Cameron Matheson: "excluding files w/ tar"
- Next in thread: Winston Smith: "Re: excluding files w/ tar"
- Reply: Winston Smith: "Re: excluding files w/ tar"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 02 Jun 2005 11:08:15 -0400 To: Cameron Matheson <cmatheson3@yahoo.com>
On Wed, Jun 01, 2005 at 11:00:18AM -0700, Cameron Matheson wrote:
> Hi everyone,
>
> i'm trying to back up an old suse box so that i can
> clear it off and install debian. anyway, i want to
> tar up basically everything (except for the obvious
> stuff like proc, /tmp/, /dev, etc.) so i've made an
> excludes file:
>
> $ cat /tmp/excludes
> /tmp/*
> /dev/*
> *oldstuff*
> /proc
> /var/tmp/*
> /home/suse
>
> then i'm using this command to tar it up:
> $ tar cv -X /tmp/excludes -p --atime-preserve * -- |
> netcat 10.1.22.39 80
>
> but all the directories in my excludes file are still
> being backed up! where am i going wrong?
I think the match is done against the file as it named by tar, which,
in the absence of this option of tar:
-P, --absolute-names
don't strip leading `/'s from file names
would be, for example, "./tmp/", not "/tmp/".
Try putting ./tmp/* instead of /tmp/* and so on in /tmp/excludes, or, if you
never make mistakes, use -P (dangerous when extracting).
Winston
-- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Tony Godshall: "Re: Problems Mounting Digital Camera"
- In reply to: Cameron Matheson: "excluding files w/ tar"
- Next in thread: Winston Smith: "Re: excluding files w/ tar"
- Reply: Winston Smith: "Re: excluding files w/ tar"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|