1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-09-11 08:50:42 +03:00

Allow arbitrary directories and/or files to be excluded from a backup.

Misuse of this feature can lead to inconsistent backups so read the --exclude documentation carefully before using.
This commit is contained in:
David Steele
2018-08-27 15:51:05 -04:00
parent 77dca5b968
commit bef58a7974
16 changed files with 404 additions and 87 deletions

View File

@@ -299,6 +299,8 @@ use constant CFGOPT_BACKUP_STANDBY => 'backup-s
push @EXPORT, qw(CFGOPT_BACKUP_STANDBY);
use constant CFGOPT_CHECKSUM_PAGE => 'checksum-page';
push @EXPORT, qw(CFGOPT_CHECKSUM_PAGE);
use constant CFGOPT_EXCLUDE => 'exclude';
push @EXPORT, qw(CFGOPT_EXCLUDE);
use constant CFGOPT_MANIFEST_SAVE_THRESHOLD => 'manifest-save-threshold';
push @EXPORT, qw(CFGOPT_MANIFEST_SAVE_THRESHOLD);
use constant CFGOPT_RESUME => 'resume';
@@ -2018,6 +2020,17 @@ my %hConfigDefine =
}
},
&CFGOPT_EXCLUDE =>
{
&CFGDEF_SECTION => CFGDEF_SECTION_GLOBAL,
&CFGDEF_TYPE => CFGDEF_TYPE_LIST,
&CFGDEF_REQUIRED => false,
&CFGDEF_COMMAND =>
{
&CFGCMD_BACKUP => {},
},
},
&CFGOPT_MANIFEST_SAVE_THRESHOLD =>
{
&CFGDEF_SECTION => CFGDEF_SECTION_GLOBAL,