File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ # pg_archivecleanup
2
+
3
+ > Remove old WAL archive files in PostgreSQL.
4
+ > More information: < https://www.postgresql.org/docs/current/pgarchivecleanup.html > .
5
+
6
+ - Clean an archive directory up to a given WAL file:
7
+
8
+ ` pg_archivecleanup {{path/to/archive}} {{path/to/walfile}} `
9
+
10
+ - Perform a dry run (list files that would be removed without actually doing it):
11
+
12
+ ` pg_archivecleanup {{[-n|--dry-run]}} {{path/to/archive}} {{path/to/walfile}} `
13
+
14
+ - Strip a file extension before deciding deletion:
15
+
16
+ ` pg_archivecleanup {{[-x|--strip-extension]}} {{extension}} {{path/to/archive}} {{path/to/walfile}} `
17
+
18
+ - Remove backup history files too:
19
+
20
+ ` pg_archivecleanup {{[-b|--clean-backup-history]}} {{path/to/archive}} {{path/to/walfile}} `
21
+
22
+ - Enable debug logging output:
23
+
24
+ ` pg_archivecleanup {{[-d|--debug]}} {{path/to/archive}} {{path/to/walfile}} `
You can’t perform that action at this time.
0 commit comments