- POD ERRORS
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.
Wrapper function which encapsulates all work required to compress xlog segments that accumulated during backup of data directory.
In case walarchive (--source option) is compressed, omnipitr-backup-slave needs to uncompress files to temp directory before making archive - so that the archive will be easier to use.
This work is being done in this function.
Make SEGMENT.OFFSET.backup file that will be included in xlog archive.
This file contains vital information like start and end position of WAL reply that is required to get consistent state.
Just like the name suggests - this function periodically (every 5 seconds, hardcoded, as there is not much sense in parametrizing it) checks pg_controldata of PGDATA, and finishes if value in Latest checkpoint location will change.
Normal hot backup contains file named 'backup_label' in PGDATA archive.
Since this is not normal hot backup - PostgreSQL will not create this file, and it has to be created separately by omnipitr-backup-slave.
This file is created in temp directory (it is not created in PGDATA), and is included in tar in such a way that, on uncompressing, it will get to unarchived PGDATA.
Helper function which converts WAL location and timeline number into filename that given location will be in.
Wrapper function which encapsulates all work required to compress data directory.
Creates trigger file that will pause removal of old segments by omnipitr-restore.
Removed trigger file, effectively unpausing removal of old, obsolete log segments in omnipitr-restore.
Destructor for object - removes created pause trigger;
Function which does all the parsing, and transformation of command line arguments.
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.
Hey! The above document had some coding errors, which are explained below:
- Around line 129:
Unknown directive: =head