If sharename is *, you must place the full path of the directory.

For example

$Conf{BackupFilesExclude} = {
  '*' => [
    '/home/www/*/wp-content/cache',  // wordpress
  ]
};


El 05/01/18 a las 16:16, Augusto Murri escribió:
Okk thank you Bowie,
so a common option can be use * as share name, and put a list of common cms cache path's, is not wrong isn't?

$Conf{BackupFilesExclude} = {
  '*' => [
    'wp-content/cache/',  // wordpress
    'cache/cachefs/',  // prestashop
    'var/cache/'  // pcscart
  ]
};

thanks again

2018-01-05 15:43 GMT+01:00 Bowie Bailey <[email protected] <mailto:[email protected]>>:


    On 1/5/2018 7:55 AM, Augusto Murri wrote:

        Hi all,
        i am tring to configure BackupPc to EXCLUDE some directories
        on my backups.

        I need to exclude many (very big) caches directories from
        backups on different machines

        can you help me?

        this is my configuration but doen't work, navigationg on the
        backups i always have /wp-content/cache/ directory filled of
        GB of files

        $Conf{BackupFilesExclude} = {
          'cscart-cache' => [
            '/*/var/cache/*'
          ],
          'prestashop-cache' => [
            '/*/cache/cachefs/*'
          ],
          'wordpress-cache' => [
            '/*/wp-content/cache/*'
          ]
        };


    Looks like the mistake is that the first part of the exclusion
    isn't a label, it has to either exactly match one of your share
    names, or '*' if the exclusions apply to all shares.  Since I
    don't know your share names, I can't tell you exactly what it
    should look like, but it general, it looks like this:

    $Conf{RsyncShareName} = [
        'sharename1',
        'sharename2',
        'sharename3',
        'sharename4',
    ];

    $Conf{BackupFilesExclude} = {
        'sharename1' => [
            'exclusion1',
            'exclusion2',
        ],
        'sharename2' => [
            'exclusion3',
            'exclusion4',
        ],
        '*' => [
            'exclusion5',
            'exclusion6',
        ],
    };

    So the first two exclusions only apply to sharename1, the next two
    only apply to sharename2, and the last two apply to all other
    shares (sharename3 and sharename4 in this example).

-- 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
    [email protected]
    <mailto:[email protected]>
    List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
    <https://lists.sourceforge.net/lists/listinfo/backuppc-users>
    Wiki: http://backuppc.wiki.sourceforge.net
    <http://backuppc.wiki.sourceforge.net>
    Project: http://backuppc.sourceforge.net/
    <http://backuppc.sourceforge.net/>




------------------------------------------------------------------------------
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
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

------------------------------------------------------------------------------
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
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to