Re: exclude problem

Miek Gieben <[email protected]>
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
[On 19 May, @11:17, Vasiliy wrote in "[hdup-user] exclude problem ..."]
> Hello. I have hdup 1.6.14.
> My few filesystems:
> 
> Filesystem          1K-blocks     Used    Avail Capacity  Mounted on
> /dev/ad0s1a             99183    50446    40803    55%    /
> /dev/ad0s1f          31374648 26492437  2372240    92%    /usr
> /dev/da0s1e           8617359  7343347   584624    93%    /var
> /dev/ad3s1e          37883534 18318388 16534464    53%    /usr/home/homepages/solaris/mp3/hdd
> sneef:/usr2/mp3      38838312 32024700  4840704    87%    /usr/home/homepages/solaris/mp3/sneef
> sneef:/var2/ftp/mp3  40316280 20637620 17630660    54%    /usr/home/homepages/solaris/mp3/sneef2
> dos-ndf-1:/www      230207220  6272876 223934344     3%    /backup
> 
> My hdup.conf:
> 
> [global]
> archive dir = /backup
> user = root
> compression = gzip
> tar = /usr/local/bin/tar
> exclude = lost+found, /proc
> overwrite = yes
> always backup = yes
> find = /usr/bin/find
> log = on
> one filesystem = on
> 
> [home]
> exclude = /usr/home/homepages/solaris/mp3
> dir = /root, /usr/home
> 
> i want backup without ".mp3"`s ;]
> but, started hdup is backuping all of /usr/home (~70Gb!)

exclude directly uses the --exclude from tar. This is a globbing file pattern
(not a regexp!). Be sure to read the manpage of tar to understand what exclude=
exactly does. 

/me thinks that an exclude = *.mp3 is more to your liking.

grtz Miek
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.