Re: need regex help
2006-08-24 14:31:53
Jeff,
You can use testgtar script contributed by Amanda user to test regex patterns.
http://wiki.zmanda.com/index.php/Main_Page#Useful_Amanda_tools
Thanks,
Paddy
On 8/24/06, Jeff Portwine <jdport AT michigandrill DOT com> wrote:
Please forgive me if this comes across twice, I sent the same question
yesterday but it seems that it never made it to the list.. at least I didn't
receive my own message if it did.
------------
I want amanda to back up multiple home directories, but I don't want to back
up everything in /home.
I tried using syntax like this:
myserver /dev/sdc1 {
server-user-tar
include "./home/(user1|user2|user3|user4)*"
}
Amcheck didn't have any problems with it but when the backup actually ran, I
got the following messages in the dump report:
FAILURE AND STRANGE DUMP SUMMARY:
frank.veritime.com /dev/sdc1 lev 0 STRANGE
FAILED AND STRANGE DUMP DETAILS:
/-- myserver /dev/sdc1 lev 0 STRANGE
sendbackup: start [myserver:/dev/sdc1 level 0]
sendbackup: info BACKUP=/bin/gtar
sendbackup: info RECOVER_CMD=/bin/gtar -f... -
sendbackup: info end
? gtar: ./home/(user1|user2|user3|user4)*: Warning: Cannot
stat: No such file or directory
| Total bytes written: 10240 (10kB, ?B/s)
sendbackup: size 10
sendbackup: end
\--------
Did I do the regex incorrectly, or is there a better way to accomplish this?
Thanks,
Jeff
--
Amanda documentation: http://wiki.zmanda.com
Amanda forums: http://forums.zmanda.com
|
|
|