hello,
I was searching for a way to add default exclude list to all my share
backuped. For this i wrote this little piece of code and just added a
do '/etc/Backuppc/defaultexclude';
in my backuped hosts config at the end. Of course this is not showing in
the cgi frontend.
Here is the code. I just wanted to share if this can help someone. It
seems to work for me (my perl skill is VERY low so be kind):
while ( my ($key,$value) = each(%{$Conf{BackupFilesExclude}}) ) {
push (@{$value}, '**/logs/**' );
push (@{$value}, '**/log/**' );
push (@{$value}, '**/cache/**' );
push (@{$value}, '**/tmp/**' );
push (@{$value}, '**/temp/**' );
push (@{$value}, '**/typo3temp/**' );
}
This of course can be used for default include. I just need to find a
way to prevent duplicate add but i do not know if rsync will be bothered
to have x time the same exclude in his list.
--
Cordialement,
Ghislain
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|