| 
     
      
      
      From: Edward J. <e.j...@gm...> - 2006-03-09 17:28:39
       
   | 
Does anyone have any working examples of using --exclude with rsync? I've
tried the following syntax already:
   '--exclude', '/var/tmp/',
   '--exclude', '/var/tmp',
Here's the appropriate section from the per-pc config.pl with the latest
attempt at the bottom:
$Conf{RsyncArgs} =3D [
        #
        # Do not edit these!
        #
            '--numeric-ids',
            '--perms',
            '--owner',
            '--group',
            '--devices',
            '--links',
            '--times',
            '--block-size=3D2048',
            '--recursive',
        #
        # If you are using a patched client rsync that supports the
        # --checksum-seed option (see http://backuppc.sourceforge.net),
        # then uncomment this to enabled rsync checksum cachcing
        #
        #'--checksum-seed=3D32761',
        #
        # Add additional arguments here
        #
        '--one-file-system',
        '--exclude', '/var/tmp',
];
 | 
| 
     
      
      
      From: Ron A. <ron...@gm...> - 2006-06-27 15:15:52
       
   | 
I just started with BackupPC.  I am using rsync to back up my Linux
machines, and it is working.  However, I want to exclude some large,
nonessential files and directories from the backup.  I put a
$Conf{BackupFilesExclude}<http://backuppc.sourceforge.net/faq/BackupPC.html#item_%24conf%7bbackupfilesexclude%7d>
line
in the config file for the Linux client in question, but it does not seem to
be having any effect (BackupPC continues to back up the "Excluded"
directories).  The examples of that command in the docs come up in the
context of tar backups, which I am not doing.  Are you supposed to use some
other config option in order to exclude files and directories with rsync?
 | 
| 
     
      
      
      From: Trasher <tr...@x-...> - 2006-06-27 15:47:15
       
   | 
Hello,
As for me I just use the following config.pl for my localhost using rsync :
$Conf{BackupFilesOnly} = ['/etc', '/boot', '/var', '/home'];
$Conf{BackupFilesExclude} = ['/var/cache', '/var/temp'];
$Conf{XferMethod} = 'rsync';
$Conf{RsyncShareName} = '/';
$Conf{ArchiveComp} = 'bzip2';
[...]
I don't remember if you must exclude the complete path or can use wildards.
Hope that helps
Ron Abramson a écrit :
> I just started with BackupPC.  I am using rsync to back up my Linux
> machines, and it is working.  However, I want to exclude some large,
> nonessential files and directories from the backup.  I put a
> $Conf{BackupFilesExclude}
> <http://backuppc.sourceforge.net/faq/BackupPC.html#item_%24conf%7bbackupfilesexclude%7d> line
> in the config file for the Linux client in question, but it does not
> seem to be having any effect (BackupPC continues to back up the
> "Excluded" directories).  The examples of that command in the docs
> come up in the context of tar backups, which I am not doing.  Are you
> supposed to use some other config option in order to exclude files and
> directories with rsync?
> ------------------------------------------------------------------------
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> BackupPC-users mailing list
> Bac...@li...
> https://lists.sourceforge.net/lists/listinfo/backuppc-users
> http://backuppc.sourceforge.net/
>   
-- 
Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=116935&t=82>
 | 
| 
     
      
      
      From: Dan D N. <da...@mo...> - 2006-03-09 17:33:45
       
   | 
Just use the $Conf option. Assuming /var is on a seperate partition:
$Conf{BackupFilesExclude} = {
        '/var' => [
                '/tmp',
        ],
}
If it is on the / partition:
$Conf{BackupFilesExclude} = {
        '/' => [
                '/var/tmp',
        ],
}
If you really want to do it the hard way, '--exclude=/var/tmp'.
Dan
Edward Janowiak writes:
 > Does anyone have any working examples of using --exclude with rsync? I've
 > tried the following syntax already:
 > 
 >    '--exclude', '/var/tmp/',
 >    '--exclude', '/var/tmp',
 > 
 > Here's the appropriate section from the per-pc config.pl with the latest
 > attempt at the bottom:
 > 
 > $Conf{RsyncArgs} = [
 >         #
 >         # Do not edit these!
 >         #
 >             '--numeric-ids',
 >             '--perms',
 >             '--owner',
 >             '--group',
 >             '--devices',
 >             '--links',
 >             '--times',
 >             '--block-size=2048',
 >             '--recursive',
 > 
 >         #
 >         # If you are using a patched client rsync that supports the
 >         # --checksum-seed option (see http://backuppc.sourceforge.net),
 >         # then uncomment this to enabled rsync checksum cachcing
 >         #
 >         #'--checksum-seed=32761',
 > 
 >         #
 >         # Add additional arguments here
 >         #
 >         '--one-file-system',
 >         '--exclude', '/var/tmp',
 > ];
 |