diff --git a/src/dir.c b/src/dir.c index 37f41ddd..b12b3d74 100644 --- a/src/dir.c +++ b/src/dir.c @@ -630,6 +630,14 @@ dir_check_file(const char *root, pgFile *file) } else { + /* + * snapfs files: + * RELFILENODE.BLOCKNO.snapmap.SNAPID + * RELFILENODE.BLOCKNO.snap.SNAPID + */ + if (strstr(file->name, "snap") != NULL) + return true; + len = strlen(file->name); /* reloid.cfm */ if (len > 3 && strcmp(file->name + len - 3, "cfm") == 0) diff --git a/tests/snapfs.py b/tests/snapfs.py index 31de79b5..0bb24420 100644 --- a/tests/snapfs.py +++ b/tests/snapfs.py @@ -42,7 +42,7 @@ class SnapFSTest(ProbackupTest, unittest.TestCase): node.safe_psql( 'postgres', - 'select pg_remove_snashot(1)') + 'select pg_remove_snapshot(1)') self.backup_node( backup_dir, 'node', node)