On 4/7/2017 2:55 AM, Sorin Srbu wrote: >> -----Original Message----- >> From: Markus Koeberl [mailto:markus.koeb...@tugraz.at] >> Sent: den 7 april 2017 08:37 >> To: backuppc-users@lists.sourceforge.net >> Cc: Sorin Srbu <sorin.s...@orgfarm.uu.se> >> Subject: Re: [BackupPC-users] Excluding folders from backup >> >> On Friday 07 April 2017 07:29:30 Sorin Srbu wrote: >>> Hello all, >>> >>> I'm at a loss here. I just can't get this to work. >>> >>> Situation: >>> I have set to backup my homefolder /home/sorin on a CentOS 7.3 x64 box, >> but >>> I want to exclude the folders /home/sorin/Videos and >> /home/sorin/ownCloud. >>> To achieve this I have /home/sorin set in the field RsyncShareName. >>> >>> In the field BackupFilesExclude I have the two folders > /home/sorin/Videos >>> and /home/sorin/ownCloud. >>> >>> The override checkbox is ticked on both RsyncShareName and >>> BackupFilesExclude. >>> >>> The field BackupFilesOnly is empty, as this would override anything in >>> BackupFilesExclude as per the documentation. >>> >>> Rsync is used for this client. >>> BackupPC v3.3.1 is used on the BPC-server, which runs CentOS 7.3.1611 > x64. >>> >>> Now, is there any particular reason why the folders /home/sorin/ownCloud >> and >>> /home/sorin/Videos _still_ gets backed up, despite my specifically > adding >>> exceptions/exclusions for them? >>> >>> I don't understand this... :-/ >>> What am I missing here? >>> >>> If more information is needed, please ask! >>> >>> Thanks in advance for any hints. >> >> If you set RsyncShareName to /home/sorin you need to define a key >> /home/sorin for BackupFilesExclude and add /Videos and /ownCloud to this >> key >> >> It should look like this in your config file: >> $Conf{RsyncShareName} = [ >> '/home/sorin' >> ]; >> $Conf{BackupFilesExclude} = { >> '/home/sorin' => [ >> '/Videos', >> '/ownCloud' >> ] >> }; > > This is how my config file looks like: > > $Conf{BackupFilesExclude} = { > '/home/sorin/ownCloud' => [], > '/home/sorin/Videos' => [] > }; > $Conf{RsyncShareName} = [ > '/home/sorin', > ]; > > > Doh! Now I get it! Thank you! > You first have to add a "root" and then the folders you want excluded. > Seeing it now, it's rather obvious.
AND the "root" must either match one of your share names or * to match all of your shares. -- Bowie ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/