CmdID

CmdID / Commands

pg_archivecleanup

Remove old WAL archive files in PostgreSQL. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Clean an archive directory up to a given WAL file

pg_archivecleanup path/to/archive path/to/walfileIdentify

Simulate removing files without actually doing it

pg_archivecleanup --dry-run path/to/archive path/to/walfileIdentify

Strip a file extension before deciding deletion

pg_archivecleanup --strip-extension extension path/to/archive path/to/walfileIdentify

Remove backup history files too

pg_archivecleanup --clean-backup-history path/to/archive path/to/walfileIdentify

Enable debug logging output

pg_archivecleanup --debug path/to/archive path/to/walfileIdentify