Re: Re: [PATCH] Exclude not working?

Miek Gieben <[email protected]> Sat, 29 Jan 2005 14:19:48 +0100
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
[On 26 Jan, @ 17:55, Peter wrote in "[hdup-user] Re: [PATCH] Exclud ..."]
> peter@xp~$ tar -cvf /tmp/test.tar --one-file-system /mnt
> 
> peter@xp~$ tar -tvzf /tmp/test.tar
> drwxr-xr-x root/root         0 2004-11-26 02:28:23 mnt/
> drwx------ root/root         0 2005-01-26 17:17:31 mnt/test/
> -rw------- root/root         0 2005-01-26 17:17:29 mnt/test/file1
> -rw------- root/root         0 2005-01-26 17:17:31 mnt/test/file2
> 
> The same procedure with hdup (with the patch below apllied) will
> backup these files:
> 
> peter@xp~$ tar -tvzf /tmp/storage/xp/2005-01-26/xp.2005-01-26.monthly.tar.gz
> -rw------- root/root         0 2005-01-26 17:17:29 mnt/test/file1
> -rw------- root/root         0 2005-01-26 17:17:31 mnt/test/file2


The difference here is that hdup2 does not include the directory
information in the filelist. Also see README in the hdup tar, for 
why.

> Here is the patch:

Patch is applied.

Thanks!



--
grtz,
  - Miek

http://www.miek.nl                   http://www.nlnetlabs.nl