Re: [BackupPC-users] clarification of BackupFilesExclude expressions
Paul Fox writes: > i'm resending this question, since i don't believe i saw a > response. is anyone else successfully using BackupFilesExclude > with the tar method? > > (i'd simply add the "--exclude" args to the tarcmd itself, except > i see from the docs that there's trickery involved in escaping > wildcard characters.) > > i wrote: > > > > i'd like to be able to flag any file or directory that i want > > > > backuppc to skip by adding a "._nobackup_" suffix to its name. > > > > > > > > will this do the trick? (backup method is tar) > > > > > > > > $Conf{BackupFilesExclude} = { '/proc'. '*._nobackup_' }; > > craig wrote: > > > > > > You need a comma instead of a period. Otherwise it should work. Actually, you need [] instead of {}, in addition to a comma instead of a period: $Conf{BackupFilesExclude} = [ '/proc', '*._nobackup_' ]; Look at the full tar command at the top of the XferLOG file. Craig --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] clarification of BackupFilesExclude expressions
i'm resending this question, since i don't believe i saw a response. is anyone else successfully using BackupFilesExclude with the tar method? (i'd simply add the "--exclude" args to the tarcmd itself, except i see from the docs that there's trickery involved in escaping wildcard characters.) i wrote: > > > i'd like to be able to flag any file or directory that i want > > > backuppc to skip by adding a "._nobackup_" suffix to its name. > > > > > > will this do the trick? (backup method is tar) > > > > > > $Conf{BackupFilesExclude} = { '/proc'. '*._nobackup_' }; craig wrote: > > > > You need a comma instead of a period. Otherwise it should work. > i wrote: > i'm a little confused. this doesn't seem to be working. > > if i look at the XferLOG (or at the running backup tar process on > a client system), the tar command for the backup doesn't include > a --exclude argument. where does the contents of > $Conf{BackupFilesExclude} get transformed and applied to the tar > arguments? the docs imply that they should be part of $fileList, but > in my case this appears to simply be ".": (wrapped for clarity) > Running: /usr/bin/ssh -x -q -n -l root woodruff /bin/tar > --one-file-system -c -v -f - -C / --totals > --newer=2005-12-04\ 00:38:48 . > =- paul fox, [EMAIL PROTECTED] (arlington, ma, where it's 23.2 degrees) --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] clarification of BackupFilesExclude expressions
i wrote: > > > i'd like to be able to flag any file or directory that i want > > > backuppc to skip by adding a "._nobackup_" suffix to its name. > > > > > > will this do the trick? (backup method is tar) > > > > > > $Conf{BackupFilesExclude} = { '/proc'. '*._nobackup_' }; > > > > You need a comma instead of a period. Otherwise it should work. > > i'm a little confused. this doesn't seem to be working. > > if i look at the XferLOG (or at the running backup tar process on > a client system), the tar command for the backup doesn't include > a --exclude argument. where does the contents of > $Conf{BackupFilesExclude} get transformed and applied to the tar > arguments? the docs imply that they should be part of $fileList, but > in my case this appears to simply be ".": (wrapped for clarity) > Running: /usr/bin/ssh -x -q -n -l root woodruff /bin/tar > --one-file-system -c -v -f - -C / --totals > --newer=2005-12-04\ 00:38:48 . does anyone use BackupFilesExclude with tar? i guess i'll just hardcode my excluded list into the TarClientCmd string if i don't hear that this "should work". the relevant config lines: $Conf{BackupFilesExclude} = { '/proc', '*._nobackup_' }; and: $Conf{TarClientCmd} = '$sshPath -x -q -n -l root $host' . ' $tarPath --one-file-system -c -v -f - -C $shareName+' . ' --totals'; $Conf{TarFullArgs} = '$fileList+'; $Conf{TarIncrArgs} = '--newer=$incrDate+ $fileList+'; paul =- paul fox, [EMAIL PROTECTED] (arlington, ma, where it's 23.0 degrees) --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] clarification of BackupFilesExclude expressions
> > i'd like to be able to flag any file or directory that i want > > backuppc to skip by adding a "._nobackup_" suffix to its name. > > > > will this do the trick? (backup method is tar) > > > > $Conf{BackupFilesExclude} = { '/proc'. '*._nobackup_' }; > > You need a comma instead of a period. Otherwise it should work. i'm a little confused. this doesn't seem to be working. if i look at the XferLOG (or at the running backup tar process on a client system), the tar command for the backup doesn't include a --exclude argument. where does the contents of $Conf{BackupFilesExclude} get transformed and applied to the tar arguments? the docs imply that they should be part of $fileList, but in my case this appears to simply be ".": (wrapped for clarity) Running: /usr/bin/ssh -x -q -n -l root woodruff /bin/tar --one-file-system -c -v -f - -C / --totals --newer=2005-12-04\ 00:38:48 . paul =- paul fox, [EMAIL PROTECTED] (arlington, ma, where it's 35.2 degrees) --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] clarification of BackupFilesExclude expressions
> > > > i'd like to be able to flag any file or directory that i want > > backuppc to skip by adding a "._nobackup_" suffix to its name. > > > > will this do the trick? (backup method is tar) > > > > $Conf{BackupFilesExclude} = { '/proc'. '*._nobackup_' }; > > You need a comma instead of a period. Otherwise it should work. oops. that was a typo. yes, thanks. > > i'd also kind of like to be able to tell backuppc to skip ".o" > > object files, but there are places where i don't want to do that, > > like under /lib/modules. if i exclude "*.o", can i force inclusion > > of all of /lib/modules by putting it into $Conf{BackupFilesOnly} ? > > the docs are a little ambiguous on this for the tar method -- > > i.e., for smb only one of BackupFilesOnly and BackupFilesExclude > > is used. but what about for tar, and in what order are they > > processed? > > The behavior depends upon the XferMethod, ah, okay. > which is tar in your > case. $Conf{BackupFilesOnly} is a set of directories to backup. > Each entry of $Conf{BackupFilesExclude} is sent to tar with the > --exclude option. This provides a set of regular expressions that > are applied to any file to see if it matches, and therefore should > be skipped. Therefore, $Conf{BackupFilesExclude} applies equally > to every directory in $Conf{BackupFilesOnly}. So I don't think > you can accomplish what you want with tar. > > The only alternative I can think of is to split the top-level > directories into seperate "shares" (ie: put them in $Conf{TarShareName} > instead of $Conf{BackupFilesOnly}), and then use share-specific > settings in $Conf{BackupFilesExclude}. The causes a different > transfer (ie: tar) to be done for each "share". okay, i'll consider that. > > Rsync allows richer exclude/include options, and by adding the > right --include and --exclude options to the RsyncClientCmd you > should be able to include just .o files below /lib/modules and > exclude all the others. excellent. thanks. =- paul fox, [EMAIL PROTECTED] (arlington, ma, where it's 10.0 degrees) --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] clarification of BackupFilesExclude expressions
Paul Fox writes: > hi -- i recently realized that there are some pretty big files on > my system that change frequently, and which don't need to be > backed up -- mail index files, for example. > > i'd like to be able to flag any file or directory that i want > backuppc to skip by adding a "._nobackup_" suffix to its name. > > will this do the trick? (backup method is tar) > > $Conf{BackupFilesExclude} = { '/proc'. '*._nobackup_' }; You need a comma instead of a period. Otherwise it should work. > i'd also kind of like to be able to tell backuppc to skip ".o" > object files, but there are places where i don't want to do that, > like under /lib/modules. if i exclude "*.o", can i force inclusion > of all of /lib/modules by putting it into $Conf{BackupFilesOnly} ? > the docs are a little ambiguous on this for the tar method -- > i.e., for smb only one of BackupFilesOnly and BackupFilesExclude > is used. but what about for tar, and in what order are they > processed? The behavior depends upon the XferMethod, which is tar in your case. $Conf{BackupFilesOnly} is a set of directories to backup. Each entry of $Conf{BackupFilesExclude} is sent to tar with the --exclude option. This provides a set of regular expressions that are applied to any file to see if it matches, and therefore should be skipped. Therefore, $Conf{BackupFilesExclude} applies equally to every directory in $Conf{BackupFilesOnly}. So I don't think you can accomplish what you want with tar. The only alternative I can think of is to split the top-level directories into seperate "shares" (ie: put them in $Conf{TarShareName} instead of $Conf{BackupFilesOnly}), and then use share-specific settings in $Conf{BackupFilesExclude}. The causes a different transfer (ie: tar) to be done for each "share". Rsync allows richer exclude/include options, and by adding the right --include and --exclude options to the RsyncClientCmd you should be able to include just .o files below /lib/modules and exclude all the others. Craig --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
[BackupPC-users] clarification of BackupFilesExclude expressions
hi -- i recently realized that there are some pretty big files on my system that change frequently, and which don't need to be backed up -- mail index files, for example. i'd like to be able to flag any file or directory that i want backuppc to skip by adding a "._nobackup_" suffix to its name. will this do the trick? (backup method is tar) $Conf{BackupFilesExclude} = { '/proc'. '*._nobackup_' }; i'd also kind of like to be able to tell backuppc to skip ".o" object files, but there are places where i don't want to do that, like under /lib/modules. if i exclude "*.o", can i force inclusion of all of /lib/modules by putting it into $Conf{BackupFilesOnly} ? the docs are a little ambiguous on this for the tar method -- i.e., for smb only one of BackupFilesOnly and BackupFilesExclude is used. but what about for tar, and in what order are they processed? thanks, paul =- paul fox, [EMAIL PROTECTED] (arlington, ma, where it's 34.0 degrees) --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/