Wraps all work necessary to make local .tar files (optionally compressed) with content of PGDATA
Wraps all work necessary to make local .tar files (optionally compressed) with xlogs required to start PostgreSQL from backup.
In PostgreSQL < 8.4 pg_stop_backup() finishes before .backup "wal segment" is archived.
So we need to wait till it appears in backup xlog destination before we can remove symlink.
Wrapper function which encapsulates all work required to compress xlog segments that accumulated during backup of data directory.
Wrapper function which encapsulates all work required to compress data directory.
Runs pg_stop_backup() PostgreSQL function, which is crucial in backup process.
This happens after data directory compression, but before compression of xlogs.
This function also removes temporary destination for xlogs (dst-backup for omnipitr-archive).
Executes pg_start_backup() postgresql function, and (before it) creates temporary destination for xlogs (dst-backup for omnipitr-archive).
Destructor for object - removes created destination for omnipitr-archive, and issues pg_stop_backup() to database.
Defines which options are legal for this program.
Function called back from OmniPITR::Program::read_args(), with parsed args as hashref.
Is responsible for putting arguments to correct places, initializing logs, and so on.
Does all necessary validation of given command line arguments.
One exception is for compression programs paths - technically, it could be validated in here, but benefit would be pretty limited, and code to do so relatively complex, as compression program path might, but doesn't have to be actual file path - it might be just program name (without path), which is the default.