Koozali.org: home of the SME Server

Flexbackup howto exclude directories!!!

cyberlair

Flexbackup howto exclude directories!!!
« on: October 21, 2004, 03:05:38 AM »
Hi I have been trying to figure out how to exclude directories from flexbackup. :-(

I would like to backup an ibay which is about 15GB but my tape drive will only write 10GB of data. So I need to exclude several directories from this backup that are not needed. I have added these directories into the custom-template 10Exclude_expr00 file.
I run the command flexbackup -dir /home/e-smith/files/ibays/ibayname It backs up the ibay and I think it excludes the directories inside the ibay but then continues to backup other ibays? So I added the ibay names in the 10Exclude_expr00 file but I think there still being backed up. How do I backup only the 1 ibay and exlude whatever I want from the ibay??

I would also like to know how to change the default backup which is /boot / .

Thanks

Henk

Flexbackup howto exclude directories!!!
« Reply #1 on: October 21, 2004, 07:54:23 AM »
I've excluded bays using a custom template.

File: 10Exclude_expr00  

{# Exclude files that match these *regular expressions* (not shell wildcards)
# from the backups (no affect on 'dump' archives). You can list more than one,
# just keep incrementing the index in the brackets for each.  Also, strip off
# leading directories (the filesystem specs above or the "-fs" flag).
# Comment these out to exclude nothing.}
$exclude_expr[0] = 'news/articles';
$exclude_expr[1] = '.*~$';  {#'# single quote so emacs font-lock is happy}
$exclude_expr[2] = '.*/ibayname1/.*';
$exclude_expr[3] = '.*/ibayname2/.*';