Re: @hi, about pattern problem with hdup and tar
Miek Gieben <[email protected]> Thu, 8 Jul 2004 10:05:26 +0200
| Newsgroups | gmane.comp.sysutils.backup.hdup.general |
|---|---|
| Message-ID | <[email protected]> |
[On 08 Jul, @05:56, Miroslav wrote in "[hdup-user] @hi, about pattern ..."] > hi, > > i have trouble using pattern in hdup.conf like this: > dir = /home/*/Maildir (simple way for backup only users mail) > > getting error: > /usr/bin/tar: /home/*/Maildir: Warning: Cannot stat: No such file or directory > > but i am using this pattern direct with tar without any trouble like this: > /usr/bin/tar -cf /backup/mail.tar /home/*/Maildir well the difference here is, that in the second case you have a shell that is expanding the '*' for tar. Hdup doesn't know about globbing characters, at least not in the dir= directive. So the '*' above isn't expanded. Maybe the include keyword comes in handy here? grtz, --Miek