mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-05 13:20:31 +02:00
exclude pg_internal.init from backup
This commit is contained in:
parent
29380efb14
commit
c237774d4d
11
src/backup.c
11
src/backup.c
@ -2037,7 +2037,16 @@ parse_backup_filelist_filenames(parray *files, const char *root)
|
||||
/* Check files located inside database directories */
|
||||
if (filename && file->dbOid != 0)
|
||||
{
|
||||
if (filename[0] == 't' && isdigit(filename[1]))
|
||||
if (strcmp(filename, "pg_internal.init") == 0)
|
||||
{
|
||||
/* Do not pg_internal.init files
|
||||
* (they contain some cache entries, so it's fine) */
|
||||
pgFileFree(file);
|
||||
parray_remove(files, i);
|
||||
i--;
|
||||
continue;
|
||||
}
|
||||
else if (filename[0] == 't' && isdigit(filename[1]))
|
||||
{
|
||||
elog(VERBOSE, "temp file, filepath %s", relative);
|
||||
/* Do not backup temp files */
|
||||
|
Loading…
Reference in New Issue
Block a user