You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-12-21 23:47:33 +02:00
v0.80: DBI Support, Stability, and Convenience Features
* Fixed an issue that caused the formatted timestamp for both the oldest and newest backups to be reported as the current time by the info command. Only text output was affected -- json output reported the correct epoch values. Reported by Michael Renner. * Fixed protocol issue that was preventing ssh errors (especially on connection) from being logged. * Now using Perl DBI and DBD::Pg for connections to PostgreSQL rather than psql. The cmd-psql and cmd-psql-option settings have been removed and replaced with db-port and db-socket-path. * Add stop-auto option to allow failed backups to automatically be stopped when a new backup starts. * Add db-timeout option to limit the amount of time pgBackRest will wait for pg_start_backup() and pg_stop_backup() to return. * Remove pg_control file at the beginning of the restore and copy it back at the very end. This prevents the possibility that a partial restore can be started by PostgreSQL. * The repository is now created and updated with consistent directory and file modes. By default umask is set to 0000 but this can be disabled with the neutral-umask setting. * Added checks to be sure the db-path setting is consistent with db-port by comparing the data_directory as reported by the cluster against the db-path setting and the version as reported by the cluster against the value read from pg_control. The db-socket-path setting is checked to be sure it is an absolute path. * Experimental support for PostgreSQL 9.5 alpha1. This may break when the control version or WAL magic changes in future versions but will be updated in each pgBackRest release to keep pace. All regression tests pass except for --target-resume tests (this functionality has changed in 9.5) and there is no testing yet for .partial WAL segments. * Major refactoring of the protocol layer to support future development. * Added vagrant test configurations for Ubuntu 14.04 and CentOS 7. * Split most of README.md out into USERGUIDE.md and CHANGELOG.md because it was becoming unwieldy. Changed most references to "database" in the user guide to "database cluster" for clarity.
This commit is contained in:
202
CHANGELOG.md
Normal file
202
CHANGELOG.md
Normal file
@@ -0,0 +1,202 @@
|
||||
# pgBackRest - Change Log
|
||||
|
||||
## v0.80: DBI Support, Stability, and Convenience Features
|
||||
__Released August 9, 2015__
|
||||
|
||||
* Fixed an issue that caused the formatted timestamp for both the oldest and newest backups to be reported as the current time by the `info` command. Only `text` output was affected -- `json` output reported the correct epoch values. _Reported by Michael Renner_.
|
||||
|
||||
* Fixed protocol issue that was preventing ssh errors (especially on connection) from being logged.
|
||||
|
||||
* Now using Perl `DBI` and `DBD::Pg` for connections to PostgreSQL rather than `psql`. The `cmd-psql` and `cmd-psql-option` settings have been removed and replaced with `db-port` and `db-socket-path`. Follow the instructions in [Installation](USERGUIDE.md#installation) to install `DBD::Pg` on your operating system.
|
||||
|
||||
* Add [stop-auto](USERGUIDE.md#stop-auto-key) option to allow failed backups to automatically be stopped when a new backup starts.
|
||||
|
||||
* Add [db-timeout](USERGUIDE.md#db-timeout-key) option to limit the amount of time pgBackRest will wait for pg_start_backup() and pg_stop_backup() to return.
|
||||
|
||||
* Remove `pg_control` file at the beginning of the restore and copy it back at the very end. This prevents the possibility that a partial restore can be started by PostgreSQL.
|
||||
|
||||
* The repository is now created and updated with consistent directory and file modes. By default `umask` is set to `0000` but this can be disabled with the `neutral-umask` setting.
|
||||
|
||||
* Added checks to be sure the `db-path` setting is consistent with `db-port` by comparing the `data_directory` as reported by the cluster against the `db-path` setting and the version as reported by the cluster against the value read from `pg_control`. The `db-socket-path` setting is checked to be sure it is an absolute path.
|
||||
|
||||
* Experimental support for PostgreSQL 9.5 alpha1. This may break when the control version or WAL magic changes in future versions but will be updated in each pgBackRest release to keep pace. All regression tests pass except for `--target-resume` tests (this functionality has changed in 9.5) and there is no testing yet for `.partial` WAL segments.
|
||||
|
||||
* Major refactoring of the protocol layer to support future development.
|
||||
|
||||
* Added vagrant test configurations for Ubuntu 14.04 and CentOS 7.
|
||||
|
||||
* Split most of `README.md` out into `USERGUIDE.md` and `CHANGELOG.md` because it was becoming unwieldy. Changed most references to "database" in the user guide to "database cluster" for clarity.
|
||||
|
||||
## v0.78: Remove CPAN Dependencies, Stability Improvements
|
||||
__Released July 13, 2015__
|
||||
|
||||
* Removed dependency on CPAN packages for multi-threaded operation. While it might not be a bad idea to update the `threads` and `Thread::Queue` packages, it is no longer necessary.
|
||||
|
||||
* Added vagrant test configurations for Ubuntu 12.04 and CentOS 6.
|
||||
|
||||
* Modified wait backoff to use a Fibonacci rather than geometric sequence. This will make wait time grow less aggressively while still giving reasonable values.
|
||||
|
||||
* More options for regression tests and improved code to run in a variety of environments.
|
||||
|
||||
## v0.77: CentOS/RHEL 6 Support and Protocol Improvements
|
||||
__Released June 30, 2015__
|
||||
|
||||
* Removed `pg_backrest_remote` and added the functionality to `pg_backrest` as the `remote` command.
|
||||
|
||||
* Added file and directory syncs to the `File` object for additional safety during backup/restore and archiving. _Suggested by Andres Freund_.
|
||||
|
||||
* Support for Perl 5.10.1 and OpenSSH 5.3 which are default for CentOS/RHEL 6. _Reported by Eric Radman._
|
||||
|
||||
* Improved error message when backup is run without `archive_command` set and without `--no-archive-check` specified. _Reported by Eric Radman_.
|
||||
|
||||
* Moved version number out of the `VERSION` file to `Version.pm` to better support packaging. _Suggested by Michael Renner_.
|
||||
|
||||
* Replaced `IPC::System::Simple` and `Net::OpenSSH` with `IPC::Open3` to eliminate CPAN dependency for multiple operating systems.
|
||||
|
||||
## v0.75: New Repository Format, Info Command and Experimental 9.5 Support
|
||||
__Released June 14, 2015__
|
||||
|
||||
* **IMPORTANT NOTE**: This flag day release breaks compatibility with older versions of pgBackRest. The manifest format, on-disk structure, and the binary names have all changed. You must create a new repository to hold backups for this version of pgBackRest and keep your older repository for a time in case you need to do a restore. The `pg_backrest.conf` file has not changed but you'll need to change any references to `pg_backrest.pl` in cron (or elsewhere) to `pg_backrest` (without the `.pl` extension).
|
||||
|
||||
* Add `info` command.
|
||||
|
||||
* More efficient file ordering for `backup`. Files are copied in descending size order so a single thread does not end up copying a large file at the end. This had already been implemented for `restore`.
|
||||
|
||||
* Logging now uses unbuffered output. This should make log files that are being written by multiple threads less chaotic. _Suggested by Michael Renner_.
|
||||
|
||||
* Experimental support for PostgreSQL 9.5. This may break when the control version or WAL magic changes but will be updated in each release.
|
||||
|
||||
## v0.70: Stability Improvements for Archiving, Improved Logging and Help
|
||||
__Released June 1, 2015__
|
||||
|
||||
* Fixed an issue where `archive-copy` would fail on an incr/diff backup when `hardlink=n`. In this case the `pg_xlog` path does not already exist and must be created. _Reported by Michael Renner_
|
||||
|
||||
* Allow duplicate WAL segments to be archived when the checksum matches. This is necessary for some recovery scenarios.
|
||||
|
||||
* Allow comments/disabling in `pg_backrest.conf` using the `#` character. Only `#` characters in the forst character of the line are honored. _Suggested by Michael Renner_.
|
||||
|
||||
* Better logging before `pg_start_backup()` to make it clear when the backup is waiting on a checkpoint. _Suggested by Michael Renner_.
|
||||
|
||||
* Various command behavior, help and logging fixes. _Reported by Michael Renner_.
|
||||
|
||||
* Fixed an issue in async archiving where `archive-push` was not properly returning 0 when `archive-max-mb` was reached and moved the async check after transfer to avoid having to remove the stop file twice. Also added unit tests for this case and improved error messages to make it clearer to the user what went wrong. _Reported by Michael Renner_.
|
||||
|
||||
* Fixed a locking issue that could allow multiple operations of the same type against a single stanza. This appeared to be benign in terms of data integrity but caused spurious errors while archiving and could lead to errors in backup/restore. _Reported by Michael Renner_.
|
||||
|
||||
* Replaced `JSON` module with `JSON::PP` which ships with core Perl.
|
||||
|
||||
## v0.65: Improved Resume and Restore Logging, Compact Restores
|
||||
__Released May 11, 2015__
|
||||
|
||||
* Better resume support. Resumed files are checked to be sure they have not been modified and the manifest is saved more often to preserve checksums as the backup progresses. More unit tests to verify each resume case.
|
||||
|
||||
* Resume is now optional. Use the `resume` setting or `--no-resume` from the command line to disable.
|
||||
|
||||
* More info messages during restore. Previously, most of the restore messages were debug level so not a lot was output in the log.
|
||||
|
||||
* Fixed an issue where an absolute path was not written into recovery.conf when the restore was run with a relative path.
|
||||
|
||||
* Added `tablespace` setting to allow tablespaces to be restored into the `pg_tblspc` path. This produces compact restores that are convenient for development, staging, etc. Currently these restores cannot be backed up as pgBackRest expects only links in the `pg_tblspc` path.
|
||||
|
||||
## v0.61: Bug Fix for Uncompressed Remote Destination
|
||||
__Released April 21, 2015__
|
||||
|
||||
* Fixed a buffering error that could occur on large, highly-compressible files when copying to an uncompressed remote destination. The error was detected in the decompression code and resulted in a failed backup rather than corruption so it should not affect successful backups made with previous versions.
|
||||
|
||||
## v0.60: Better Version Support and WAL Improvements
|
||||
__Released April 19, 2015__
|
||||
|
||||
* Pushing duplicate WAL now generates an error. This worked before only if checksums were disabled.
|
||||
|
||||
* Database System IDs are used to make sure that all WAL in an archive matches up. This should help prevent misconfigurations that send WAL from multiple clusters to the same archive.
|
||||
|
||||
* Regression tests working back to PostgreSQL 8.3.
|
||||
|
||||
* Improved threading model by starting threads early and terminating them late.
|
||||
|
||||
## v0.50: Restore and Much More
|
||||
__Released March 25, 2015__
|
||||
|
||||
* Added restore functionality.
|
||||
|
||||
* All options can now be set on the command-line making `pg_backrest.conf` optional.
|
||||
|
||||
* De/compression is now performed without threads and checksum/size is calculated in stream. That means file checksums are no longer optional.
|
||||
|
||||
* Added option `--no-start-stop` to allow backups when Postgres is shut down. If `postmaster.pid` is present then `--force` is required to make the backup run (though if Postgres is running an inconsistent backup will likely be created). This option was added primarily for the purpose of unit testing, but there may be applications in the real world as well.
|
||||
|
||||
* Fixed broken checksums and now they work with normal and resumed backups. Finally realized that checksums and checksum deltas should be functionally separated and this simplified a number of things. Issue #28 has been created for checksum deltas.
|
||||
|
||||
* Fixed an issue where a backup could be resumed from an aborted backup that didn't have the same type and prior backup.
|
||||
|
||||
* Removed dependency on `Moose`. It wasn't being used extensively and makes for longer startup times.
|
||||
|
||||
* Checksum for `backup.manifest` to detect a corrupted/modified manifest.
|
||||
|
||||
* Link `latest` always points to the last backup. This has been added for convenience and to make restores simpler.
|
||||
|
||||
* More comprehensive unit tests in all areas.
|
||||
|
||||
## v0.30: Core Restructuring and Unit Tests
|
||||
__Released October 5, 2014__
|
||||
|
||||
* Complete rewrite of `BackRest::File` module to use a custom protocol for remote operations and Perl native GZIP and SHA operations. Compression is performed in threads rather than forked processes.
|
||||
|
||||
* Fairly comprehensive unit tests for all the basic operations. More work to be done here for sure, but then there is always more work to be done on unit tests.
|
||||
|
||||
* Removed dependency on `Storable` and replaced with a custom ini file implementation.
|
||||
|
||||
* Added much needed documentation
|
||||
|
||||
* Numerous other changes that can only be identified with a diff.
|
||||
|
||||
## v0.19: Improved Error Reporting/Handling
|
||||
__Released May 13, 2014__
|
||||
|
||||
* Working on improving error handling in the `File` object. This is not complete, but works well enough to find a few errors that have been causing us problems (notably, find is occasionally failing building the archive async manifest when system is under load).
|
||||
|
||||
* Found and squashed a nasty bug where `file_copy()` was defaulted to ignore errors. There was also an issue in `file_exists()` that was causing the test to fail when the file actually did exist. Together they could have resulted in a corrupt backup with no errors, though it is very unlikely.
|
||||
|
||||
## v0.18: Return Soft Error When Archive Missing
|
||||
__Released April 13, 2014__
|
||||
|
||||
* The `archive-get` command returns a 1 when the archive file is missing to differentiate from hard errors (ssh connection failure, file copy error, etc.) This lets PostgreSQL know that that the archive stream has terminated normally. However, this does not take into account possible holes in the archive stream.
|
||||
|
||||
## v0.17: Warn When Archive Directories Cannot Be Deleted
|
||||
__Released April 3, 2014__
|
||||
|
||||
* If an archive directory which should be empty could not be deleted backrest was throwing an error. There's a good fix for that coming, but for the time being it has been changed to a warning so processing can continue. This was impacting backups as sometimes the final archive file would not get pushed if the first archive file had been in a different directory (plus some bad luck).
|
||||
|
||||
## v0.16: RequestTTY=yes for SSH Sessions
|
||||
__Released April 1, 2014__
|
||||
|
||||
* Added `RequestTTY=yes` to ssh sessions. Hoping this will prevent random lockups.
|
||||
|
||||
## v0.15: Added archive-get
|
||||
__Released March 29, 2014__
|
||||
|
||||
* Added `archive-get` functionality to aid in restores.
|
||||
|
||||
* Added option to force a checkpoint when starting the backup, `start-fast=y`.
|
||||
|
||||
## v0.11: Minor Fixes
|
||||
__Released March 26, 2014__
|
||||
|
||||
* Removed `master_stderr_discard` option on database SSH connections. There have been occasional lockups and they could be related to issues originally seen in the file code.
|
||||
|
||||
* Changed lock file conflicts on `backup` and `expire` commands to `ERROR`. They were set to `DEBUG` due to a copy-and-paste from the archive locks.
|
||||
|
||||
## v0.10: Backup and Archiving are Functional
|
||||
__Released March 5, 2014__
|
||||
|
||||
* No restore functionality, but the backup directories are consistent PostgreSQL data directories. You'll need to either uncompress the files or turn off compression in the backup. Uncompressed backups on a ZFS (or similar) filesystem are a good option because backups can be restored locally via a snapshot to create logical backups or do spot data recovery.
|
||||
|
||||
* Archiving is single-threaded. This has not posed an issue on our multi-terabyte databases with heavy write volume. Recommend a large WAL volume or to use the async option with a large volume nearby.
|
||||
|
||||
* Backups are multi-threaded, but the `Net::OpenSSH` library does not appear to be 100% thread-safe so it will very occasionally lock up on a thread. There is an overall process timeout that resolves this issue by killing the process. Yes, very ugly.
|
||||
|
||||
* Checksums are lost on any resumed backup. Only the final backup will record checksum on multiple resumes. Checksums from previous backups are correctly recorded and a full backup will reset everything.
|
||||
|
||||
* The `backup.manifest` is being written as `Storable` because `Config::IniFile` does not seem to handle large files well. Would definitely like to save these as human-readable text.
|
||||
|
||||
* Absolutely no documentation (outside the code). Well, excepting these release notes.
|
||||
961
README.md
961
README.md
@@ -24,967 +24,40 @@ Instead of relying on traditional backup tools like tar and rsync, pgBackRest im
|
||||
|
||||
pgBackRest uses the gitflow model of development. This means that the master branch contains only the release history, i.e. each commit represents a single release and release tags are always from the master branch. The dev branch contains a single commit for each feature or fix and more accurately depicts the development history. Actual development is done on feature (dev_*) branches and squashed into dev after regression tests have passed. In this model dev is considered stable and can be released at any time. As such, the dev branch does not have any special version modifiers.
|
||||
|
||||
## Install
|
||||
## Getting Started
|
||||
|
||||
pgBackRest is written entirely in Perl and uses some non-standard modules that must be installed from CPAN. All examples below are for PostgreSQL 9.3 but should be easily adaptable to any recent version.
|
||||
pgBackRest strives to be easy to configure and operate:
|
||||
|
||||
### Ubuntu 12.04 Setup
|
||||
* [Installation instructions](USERGUIDE.md#installation) for major operating systems.
|
||||
|
||||
* Starting from a clean install, update the OS:
|
||||
```
|
||||
apt-get update
|
||||
apt-get upgrade (reboot if required)
|
||||
```
|
||||
* Install ssh, git and cpanminus:
|
||||
```
|
||||
apt-get install ssh
|
||||
apt-get install git
|
||||
```
|
||||
* Install Postgres (instructions from http://www.postgresql.org/download/linux/ubuntu/)
|
||||
* [Sample configurations](USERGUIDE.md#examples) that cover most basic use cases.
|
||||
|
||||
Create the file /etc/apt/sources.list.d/pgdg.list, and add a line for the repository:
|
||||
```
|
||||
deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main
|
||||
```
|
||||
* Then run the following:
|
||||
```
|
||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
||||
sudo apt-get update
|
||||
* [Command guide](USERGUIDE.md#commands) for command-line operations.
|
||||
|
||||
apt-get install postgresql-9.3
|
||||
```
|
||||
* Install PostgreSQL development libraries and additional Perl modules for regression tests (optional):
|
||||
```
|
||||
apt-get install libdbd-pg-perl
|
||||
```
|
||||
* [Settings documentation](USERGUIDE.md#setttings) for creating complex configurations and more detail on options.
|
||||
|
||||
### CentOS 6 Setup
|
||||
## Contributing
|
||||
|
||||
* Install Perl and required modules:
|
||||
```
|
||||
yum install perl
|
||||
yum install perl-Time-HiRes
|
||||
yum install perl-Compress-Raw-Zlib
|
||||
yum install perl-IO-String
|
||||
yum install perl-parent
|
||||
yum install perl-JSON
|
||||
yum install perl-Digest-SHA
|
||||
```
|
||||
* Install the versions of PostgreSQL that you want to test:
|
||||
Contributions to pgBackRest are always welcome!
|
||||
|
||||
Install package definitions (for each version you need):
|
||||
```
|
||||
sudo rpm -ivh http://yum.postgresql.org/8.4/redhat/rhel-6-x86_64/pgdg-centos-8.4-3.noarch.rpm
|
||||
sudo rpm -ivh http://yum.postgresql.org/9.0/redhat/rhel-6-x86_64/pgdg-centos90-9.0-5.noarch.rpm
|
||||
sudo rpm -ivh http://yum.postgresql.org/9.1/redhat/rhel-6-x86_64/pgdg-centos91-9.1-4.noarch.rpm
|
||||
sudo rpm -ivh http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm
|
||||
sudo rpm -ivh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
|
||||
sudo rpm -ivh http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-1.noarch.rpm
|
||||
```
|
||||
Code fixes or new features can be submitted via pull requests. Ideas for new features and improvements to existing functionality or documentation can be [submitted as issues](http://github.com/pgmasters/backrest/issues).
|
||||
|
||||
Install packages (for each version you need):
|
||||
```
|
||||
yum install postgresqlXX-server
|
||||
```
|
||||
CAVEAT: Installing 8.4 with the 9.X series appears to break libpq.
|
||||
Bug reports should be [submitted as issues](http://github.com/pgmasters/backrest/issues). Please provide as much information as possible to aid in determining the cause of the problem.
|
||||
|
||||
* Install PostgreSQL development libraries and additional Perl modules for regression tests (optional):
|
||||
```
|
||||
yum install perl-DBD-Pg
|
||||
```
|
||||
You will always receive credit in the [change log](https://github.com/pgmasters/backrest/blob/master/CHANGELOG.md) for your contributions.
|
||||
|
||||
### Software Installation
|
||||
## Support
|
||||
|
||||
pgBackRest can be installed by downloading the most recent release:
|
||||
pgBackRest is completely free and open source under the [MIT](https://github.com/pgmasters/backrest/blob/master/LICENSE) license. You may use it for personal or commercial purposes without any restrictions whatsoever. Bug reports are taken very seriously and will be addressed as quickly as possible.
|
||||
|
||||
https://github.com/pgmasters/backrest/releases
|
||||
Creating a robust disaster recovery policy with proper replication and backup strategies can be a very complex and daunting task. You may find that you need help during the architecture phase and ongoing support to ensure that your enterprise continues running smoothly.
|
||||
|
||||
pgBackRest can be installed anywhere but it's best (though not required) to install it in the same location on all systems.
|
||||
[Crunchy Data](http://www.crunchydatasolutions.com) provides packaged versions of pgBackRest for major operating systems and expert full life-cycle commercial support for pgBackRest and all things PostgreSQL. [Crunchy Data](http://www.crunchydatasolutions.com) is committed to providing open source solutions with no vendor lock-in so cross-compatibility with the community version of pgBackRest is always strictly maintained.
|
||||
|
||||
### Regression Test Setup
|
||||
|
||||
* Create the backrest user
|
||||
|
||||
The backrest user must be created on the same system and in the same group as the user you will use for testing (which can be any user you prefer). For example:
|
||||
```
|
||||
adduser -g <test-user-group> backrest
|
||||
```
|
||||
* Setup password-less SSH login between the test user and the backrest user
|
||||
|
||||
The test user should be able to `ssh backrest@127.0.0.1` and the backrest user should be able to `ssh <testuser>@127.0.0.1` without requiring any passwords. This article (http://archive.oreilly.com/pub/h/66) has details on how to accomplish this. Do the logons both ways at the command line before running regression tests.
|
||||
|
||||
* Give group read and execute permissions to `~/backrest/test`:
|
||||
|
||||
Usually this can be accomplished by running the following as the test user:
|
||||
```
|
||||
chmod 750 ~
|
||||
```
|
||||
* Running regression:
|
||||
|
||||
Running the full regression suite is generally not necessary. Run the following first:
|
||||
```
|
||||
./test.pl --module=backup --module-test=full --db-version=all --thread-max=<# threads>
|
||||
```
|
||||
This will run full backup/restore regression with a variety of options on all installed versions of PostgreSQL. If you are only interested in one version then modify the `db-version` setting to X.X (e.g. 9.4). `--thread-max` can be omitted if you are running single-threaded.
|
||||
|
||||
If there are errors in this test then run full regression to help isolate problems:
|
||||
```
|
||||
./test.pl --db-version=all --thread-max=<# threads>
|
||||
```
|
||||
Report regression test failures at https://github.com/pgmasters/backrest/issues.
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
pgBackRest can be used entirely with command-line parameters but a configuration file is more practical for installations that are complex or set a lot of options. The default location for the configuration file is `/etc/pg_backrest.conf`.
|
||||
|
||||
### Examples
|
||||
|
||||
#### Confguring Postgres for Archiving
|
||||
|
||||
Modify the following settings in `postgresql.conf`:
|
||||
```
|
||||
wal_level = archive
|
||||
archive_mode = on
|
||||
archive_command = '/path/to/backrest/bin/pg_backrest --stanza=db archive-push %p'
|
||||
```
|
||||
Replace the path with the actual location where pgBackRest was installed. The stanza parameter should be changed to the actual stanza name for your database.
|
||||
|
||||
|
||||
#### Minimal Configuration
|
||||
|
||||
The absolute minimum required to run pgBackRest (if all defaults are accepted) is the database path.
|
||||
|
||||
`/etc/pg_backrest.conf`:
|
||||
```
|
||||
[main]
|
||||
db-path=/data/db
|
||||
```
|
||||
The `db-path` option could also be provided on the command line, but it's best to use a configuration file as options tend to pile up quickly.
|
||||
|
||||
#### Simple Single Host Configuration
|
||||
|
||||
This configuration is appropriate for a small installation where backups are being made locally or to a remote file system that is mounted locally. A number of additional options are set:
|
||||
|
||||
- `cmd-psql` - Custom location and parameters for psql.
|
||||
- `cmd-psql-option` - Options for psql can be set per stanza.
|
||||
- `compress` - Disable compression (handy if the file system is already compressed).
|
||||
- `repo-path` - Path to the pgBackRest repository where backups and WAL archive are stored.
|
||||
- `log-level-file` - Set the file log level to debug (Lots of extra info if something is not working as expected).
|
||||
- `hardlink` - Create hardlinks between backups (but never between full backups).
|
||||
- `thread-max` - Use 2 threads for backup/restore operations.
|
||||
|
||||
`/etc/pg_backrest.conf`:
|
||||
```
|
||||
[global:command]
|
||||
cmd-psql=/usr/local/bin/psql -X %option%
|
||||
|
||||
[global:general]
|
||||
compress=n
|
||||
repo-path=/path/to/db/repo
|
||||
|
||||
[global:log]
|
||||
log-level-file=debug
|
||||
|
||||
[global:backup]
|
||||
hardlink=y
|
||||
thread-max=2
|
||||
|
||||
[main]
|
||||
db-path=/data/db
|
||||
|
||||
[main:command]
|
||||
cmd-psql-option=--port=5433
|
||||
```
|
||||
|
||||
|
||||
#### Simple Multiple Host Configuration
|
||||
|
||||
This configuration is appropriate for a small installation where backups are being made remotely. Make sure that postgres@db-host has trusted ssh to backrest@backup-host and vice versa. This configuration assumes that you have pg_backrest in the same path on both servers.
|
||||
|
||||
`/etc/pg_backrest.conf` on the db host:
|
||||
```
|
||||
[global:general]
|
||||
repo-path=/path/to/db/repo
|
||||
repo-remote-path=/path/to/backup/repo
|
||||
|
||||
[global:backup]
|
||||
backup-host=backup.mydomain.com
|
||||
backup-user=backrest
|
||||
|
||||
[global:archive]
|
||||
archive-async=y
|
||||
|
||||
[main]
|
||||
db-path=/data/db
|
||||
```
|
||||
`/etc/pg_backrest.conf` on the backup host:
|
||||
```
|
||||
[global:general]
|
||||
repo-path=/path/to/backup/repo
|
||||
|
||||
[main]
|
||||
db-host=db.mydomain.com
|
||||
db-path=/data/db
|
||||
db-user=postgres
|
||||
```
|
||||
|
||||
|
||||
### Options
|
||||
|
||||
#### `command` section
|
||||
|
||||
The `command` section defines the location of external commands that are used by pgBackRest.
|
||||
|
||||
##### `cmd-psql` key
|
||||
|
||||
Defines the full path to `psql`. `psql` is used to call `pg_start_backup()` and `pg_stop_backup()`.
|
||||
|
||||
If additional per stanza parameters need to be passed to `psql` (such as `--port` or `--cluster`) then add `%option%` to the command line and use `command-option::psql` to set options.
|
||||
```
|
||||
required: n
|
||||
default: /usr/bin/psql -X
|
||||
example: cmd-psql=/usr/bin/psql -X %option%
|
||||
```
|
||||
|
||||
##### `cmd-psql-option` key
|
||||
|
||||
Allows per stanza command line parameters to be passed to `psql`.
|
||||
```
|
||||
required: n
|
||||
example: cmd-psql-option --port=5433
|
||||
```
|
||||
|
||||
##### `cmd-remote` key
|
||||
|
||||
Defines the location of `pg_backrest_remote.pl`.
|
||||
|
||||
Required only if the path to `pg_backrest_remote.pl` is different on the local and remote systems. If not defined, the remote path will be assumed to be the same as the local path.
|
||||
```
|
||||
required: n
|
||||
default: same as local
|
||||
example: cmd-remote=/usr/lib/backrest/bin/pg_backrest_remote.pl
|
||||
```
|
||||
|
||||
#### `log` section
|
||||
|
||||
The `log` section defines logging-related settings. The following log levels are supported:
|
||||
|
||||
- `off` - No logging at all (not recommended)
|
||||
- `error` - Log only errors
|
||||
- `warn` - Log warnings and errors
|
||||
- `info` - Log info, warnings, and errors
|
||||
- `debug` - Log debug, info, warnings, and errors
|
||||
- `trace` - Log trace (very verbose debugging), debug, info, warnings, and errors
|
||||
|
||||
|
||||
##### `log-level-file` key
|
||||
|
||||
Sets file log level.
|
||||
```
|
||||
required: n
|
||||
default: info
|
||||
example: log-level-file=debug
|
||||
```
|
||||
|
||||
##### `log-level-console` key
|
||||
|
||||
Sets console log level.
|
||||
```
|
||||
required: n
|
||||
default: warn
|
||||
example: log-level-console=error
|
||||
```
|
||||
|
||||
#### `general` section
|
||||
|
||||
The `general` section defines settings that are shared between multiple operations.
|
||||
|
||||
##### `buffer-size` key
|
||||
|
||||
Set the buffer size used for copy, compress, and uncompress functions. A maximum of 3 buffers will be in use at a time per thread. An additional maximum of 256K per thread may be used for zlib buffers.
|
||||
```
|
||||
required: n
|
||||
default: 4194304
|
||||
allow: 16384 - 8388608
|
||||
example: buffer-size=32768
|
||||
```
|
||||
|
||||
##### `compress` key
|
||||
|
||||
Enable gzip compression. Backup files are compatible with command-line gzip tools.
|
||||
```
|
||||
required: n
|
||||
default: y
|
||||
example: compress=n
|
||||
```
|
||||
|
||||
##### `compress-level` key
|
||||
|
||||
Sets the zlib level to be used for file compression when `compress=y`.
|
||||
```
|
||||
required: n
|
||||
default: 6
|
||||
allow: 0-9
|
||||
example: compress-level=9
|
||||
```
|
||||
|
||||
##### `compress-level-network` key
|
||||
|
||||
Sets the zlib level to be used for protocol compression when `compress=n` and the database is not on the same host as the backup. Protocol compression is used to reduce network traffic but can be disabled by setting `compress-level-network=0`. When `compress=y` the `compress-level-network` setting is ignored and `compress-level` is used instead so that the file is only compressed once. SSH compression is always disabled.
|
||||
```
|
||||
required: n
|
||||
default: 3
|
||||
allow: 0-9
|
||||
example: compress-level-network=1
|
||||
```
|
||||
|
||||
##### `repo-path` key
|
||||
|
||||
Path to the backrest repository where WAL segments, backups, logs, etc are stored.
|
||||
```
|
||||
required: n
|
||||
default: /var/lib/backup
|
||||
example: repo-path=/data/db/backrest
|
||||
```
|
||||
|
||||
##### `repo-remote-path` key
|
||||
|
||||
Path to the remote backrest repository where WAL segments, backups, logs, etc are stored.
|
||||
```
|
||||
required: n
|
||||
example: repo-remote-path=/backup/backrest
|
||||
```
|
||||
|
||||
#### `backup` section
|
||||
|
||||
The `backup` section defines settings related to backup.
|
||||
|
||||
##### `backup-host` key
|
||||
|
||||
Sets the backup host when backup up remotely via SSH. Make sure that trusted SSH authentication is configured between the db host and the backup host.
|
||||
|
||||
When backing up to a locally mounted network filesystem this setting is not required.
|
||||
```
|
||||
required: n
|
||||
example: backup-host=backup.domain.com
|
||||
```
|
||||
|
||||
##### `backup-user` key
|
||||
|
||||
Sets user account on the backup host.
|
||||
```
|
||||
required: n
|
||||
example: backup-user=backrest
|
||||
```
|
||||
|
||||
##### `start-fast` key
|
||||
|
||||
Forces a checkpoint (by passing `true` to the `fast` parameter of `pg_start_backup()`) so the backup begins immediately. Otherwise the backup will start after the next regular checkpoint.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
example: start-fast=y
|
||||
```
|
||||
|
||||
##### `hardlink` key
|
||||
|
||||
Enable hard-linking of files in differential and incremental backups to their full backups. This gives the appearance that each backup is a full backup. Be careful, though, because modifying files that are hard-linked can affect all the backups in the set.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
example: hardlink=y
|
||||
```
|
||||
|
||||
##### `manifest-save-threshold` key
|
||||
|
||||
Defines how often the manifest will be saved during a backup (in bytes). Saving the manifest is important because it stores the checksums and allows the resume function to work efficiently. The actual threshold used is 1% of the backup size or `manifest-save-threshold`, whichever is greater.
|
||||
```
|
||||
required: n
|
||||
default: 1073741824
|
||||
example: manifest-save-threshold=5368709120
|
||||
```
|
||||
|
||||
##### `resume` key
|
||||
|
||||
Defines whether the resume feature is enabled. Resume can greatly reduce the amount of time required to run a backup after a previous backup of the same type has failed. It adds complexity, however, so it may be desirable to disable in environments that do not require the feature.
|
||||
```
|
||||
required: n
|
||||
default: y
|
||||
example: resume=false
|
||||
```
|
||||
|
||||
##### `thread-max` key
|
||||
|
||||
Defines the number of threads to use for backup or restore. Each thread will perform compression and transfer to make the backup run faster, but don't set `thread-max` so high that it impacts database performance during backup.
|
||||
```
|
||||
required: n
|
||||
default: 1
|
||||
example: thread-max=4
|
||||
```
|
||||
|
||||
##### `thread-timeout` key
|
||||
|
||||
Maximum amount of time (in seconds) that a backup thread should run. This limits the amount of time that a thread might be stuck due to unforeseen issues during the backup. Has no affect when `thread-max=1`.
|
||||
```
|
||||
required: n
|
||||
example: thread-timeout=3600
|
||||
```
|
||||
|
||||
##### `archive-check` key
|
||||
|
||||
Checks that all WAL segments required to make the backup consistent are present in the WAL archive. It's a good idea to leave this as the default unless you are using another method for archiving.
|
||||
```
|
||||
required: n
|
||||
default: y
|
||||
example: archive-check=n
|
||||
```
|
||||
|
||||
##### `archive-copy` key
|
||||
|
||||
Store WAL segments required to make the backup consistent in the backup's pg_xlog path. This slightly paranoid option protects against corruption or premature expiration in the WAL segment archive. PITR won't be possible without the WAL segment archive and this option also consumes more space.
|
||||
|
||||
Even though WAL segments will be restored with the backup, PostgreSQL will ignore them if a `recovery.conf` file exists and instead use `archive_command` to fetch WAL segments. Specifying `type=none` when restoring will not create `recovery.conf` and force PostgreSQL to use the WAL segments in pg_xlog. This will get the database to a consistent state.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
example: archive-copy=y
|
||||
```
|
||||
|
||||
#### `archive` section
|
||||
|
||||
The `archive` section defines parameters when doing async archiving. This means that the archive files will be stored locally, then a background process will pick them and move them to the backup.
|
||||
|
||||
##### `archive-async` key
|
||||
|
||||
Archive WAL segments asynchronously. WAL segments will be copied to the local repo, then a process will be forked to compress the segment and transfer it to the remote repo if configured. Control will be returned to PostgreSQL as soon as the WAL segment is copied locally.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
example: archive-async=y
|
||||
```
|
||||
|
||||
##### `archive-max-mb` key
|
||||
|
||||
Limits the amount of archive log that will be written locally when `archive-async=y`. After the limit is reached, the following will happen:
|
||||
|
||||
- pgBackRest will notify Postgres that the archive was successfully backed up, then DROP IT.
|
||||
- An error will be logged to the console and also to the Postgres log.
|
||||
- A stop file will be written in the lock directory and no more archive files will be backed up until it is removed.
|
||||
|
||||
If this occurs then the archive log stream will be interrupted and PITR will not be possible past that point. A new backup will be required to regain full restore capability.
|
||||
|
||||
The purpose of this feature is to prevent the log volume from filling up at which point Postgres will stop completely. Better to lose the backup than have the database go down.
|
||||
|
||||
To start normal archiving again you'll need to remove the stop file which will be located at `${repo-path}/lock/${stanza}-archive.stop` where `${repo-path}` is the path set in the `general` section, and `${stanza}` is the backup stanza.
|
||||
```
|
||||
required: n
|
||||
example: archive-max-mb=1024
|
||||
```
|
||||
|
||||
#### `restore` section
|
||||
|
||||
The `restore` section defines settings used for restoring backups.
|
||||
|
||||
##### `tablespace` key
|
||||
|
||||
Defines whether tablespaces will be be restored into their original (or remapped) locations or stored directly under the `pg_tblspc` path. Disabling this setting produces compact restores that are convenient for development, staging, etc. Currently these restores cannot be backed up as pgBackRest expects only links in the `pg_tblspc` path. If no tablespaces are present this this setting has no effect.
|
||||
```
|
||||
required: n
|
||||
default: y
|
||||
example: tablespace=n
|
||||
```
|
||||
|
||||
#### `expire` section
|
||||
|
||||
The `expire` section defines how long backups will be retained. Expiration only occurs when the number of complete backups exceeds the allowed retention. In other words, if full-retention is set to 2, then there must be 3 complete backups before the oldest will be expired. Make sure you always have enough space for retention + 1 backups.
|
||||
|
||||
##### `retention-full` key
|
||||
|
||||
Number of full backups to keep. When a full backup expires, all differential and incremental backups associated with the full backup will also expire. When not defined then all full backups will be kept.
|
||||
```
|
||||
required: n
|
||||
example: retention-full=2
|
||||
```
|
||||
|
||||
##### `retention-diff` key
|
||||
|
||||
Number of differential backups to keep. When a differential backup expires, all incremental backups associated with the differential backup will also expire. When not defined all differential backups will be kept.
|
||||
```
|
||||
required: n
|
||||
example: retention-diff=3
|
||||
```
|
||||
|
||||
##### `retention-archive-type` key
|
||||
|
||||
Type of backup to use for archive retention (full or differential). If set to full, then pgBackRest will keep archive logs for the number of full backups defined by `retention-archive`. If set to differential, then pgBackRest will keep archive logs for the number of differential backups defined by `retention-archive`.
|
||||
|
||||
If not defined then archive logs will be kept indefinitely. In general it is not useful to keep archive logs that are older than the oldest backup, but there may be reasons for doing so.
|
||||
```
|
||||
required: n
|
||||
default: full
|
||||
example: retention-archive-type=diff
|
||||
```
|
||||
|
||||
##### `retention-archive` key
|
||||
|
||||
Number of backups worth of archive log to keep. If this is set less than your backup retention then be sure you set `archive-copy=y` or you won't be able to restore some older backups.
|
||||
|
||||
For example, if `retention-archive=2` and `retention-full=4`, then any backups older than the most recent two full backups will not have WAL segments in the archive to make them consistent. To solve this, set `archive-copy=y` and use `type=none` when restoring. This issue will be addressed in a future release but for now be careful with this setting.
|
||||
```
|
||||
required: n
|
||||
example: retention-archive=2
|
||||
```
|
||||
|
||||
#### `stanza` section
|
||||
|
||||
A stanza defines a backup for a specific database. The stanza section must define the base database path and host/user if the database is remote. Also, any global configuration sections can be overridden to define stanza-specific settings.
|
||||
|
||||
##### `db-host` key
|
||||
|
||||
Define the database host. Used for backups where the database host is different from the backup host.
|
||||
```
|
||||
required: n
|
||||
example: db-host=db.domain.com
|
||||
```
|
||||
|
||||
##### `db-user` key
|
||||
|
||||
Defines user account on the db host when `db-host` is defined.
|
||||
```
|
||||
required: n
|
||||
example: db-user=postgres
|
||||
```
|
||||
|
||||
##### `db-path` key
|
||||
|
||||
Path to the db data directory (data_directory setting in postgresql.conf).
|
||||
```
|
||||
required: y
|
||||
example: db-path=/data/db
|
||||
```
|
||||
|
||||
## Operation
|
||||
|
||||
### General Options
|
||||
|
||||
These options are either global or used by all commands.
|
||||
|
||||
#### `config` option
|
||||
|
||||
By default pgBackRest expects the its configuration file to be located at `/etc/pg_backrest.conf`. Use this option to specify another location.
|
||||
```
|
||||
required: n
|
||||
default: /etc/pg_backrest.conf
|
||||
example: config=/var/lib/backrest/pg_backrest.conf
|
||||
```
|
||||
|
||||
#### `stanza` option
|
||||
|
||||
Defines the stanza for the command. A stanza is the configuration for a database that defines where it is located, how it will be backed up, archiving options, etc. Most db servers will only have one Postgres cluster and therefore one stanza, whereas backup servers will have a stanza for every database that needs to be backed up.
|
||||
|
||||
Examples of how to configure a stanza can be found in the `configuration examples` section.
|
||||
```
|
||||
required: y
|
||||
example: stanza=main
|
||||
```
|
||||
|
||||
#### `help` option
|
||||
|
||||
Displays the pgBackRest help.
|
||||
```
|
||||
required: n
|
||||
```
|
||||
|
||||
#### `version` option
|
||||
|
||||
Displays the pgBackRest version.
|
||||
```
|
||||
required: n
|
||||
```
|
||||
|
||||
### Commands
|
||||
|
||||
#### `backup` command
|
||||
|
||||
Perform a database backup. pgBackRest does not have a built-in scheduler so it's best to run it from cron or some other scheduling mechanism.
|
||||
|
||||
##### `type` option
|
||||
|
||||
The following backup types are supported:
|
||||
|
||||
- `full` - all database files will be copied and there will be no dependencies on previous backups.
|
||||
- `incr` - incremental from the last successful backup.
|
||||
- `diff` - like an incremental backup but always based on the last full backup.
|
||||
|
||||
```
|
||||
required: n
|
||||
default: incr
|
||||
example: --type=full
|
||||
```
|
||||
|
||||
##### `no-start-stop` option
|
||||
|
||||
This option prevents pgBackRest from running `pg_start_backup()` and `pg_stop_backup()` on the database. In order for this to work PostgreSQL should be shut down and pgBackRest will generate an error if it is not.
|
||||
|
||||
The purpose of this option is to allow cold backups. The `pg_xlog` directory is copied as-is and `archive-check` is automatically disabled for the backup.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
```
|
||||
|
||||
##### `force` option
|
||||
|
||||
When used with `--no-start-stop` a backup will be run even if pgBackRest thinks that PostgreSQL is running. **This option should be used with extreme care as it will likely result in a bad backup.**
|
||||
|
||||
There are some scenarios where a backup might still be desirable under these conditions. For example, if a server crashes and the database volume can only be mounted read-only, it would be a good idea to take a backup even if `postmaster.pid` is present. In this case it would be better to revert to the prior backup and replay WAL, but possibly there is a very important transaction in a WAL segment that did not get archived.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
```
|
||||
|
||||
##### Example: Full Backup
|
||||
|
||||
```
|
||||
/path/to/pg_backrest --stanza=db --type=full backup
|
||||
```
|
||||
Run a `full` backup on the `db` stanza. `--type` can also be set to `incr` or `diff` for incremental or differential backups. However, if no `full` backup exists then a `full` backup will be forced even if `incr` or `diff` is requested.
|
||||
|
||||
#### `archive-push` command
|
||||
|
||||
Archive a WAL segment to the repository.
|
||||
|
||||
##### Example
|
||||
|
||||
```
|
||||
/path/to/pg_backrest --stanza=db archive-push %p
|
||||
```
|
||||
Accepts a WAL segment from PostgreSQL and archives it in the repository defined by `repo-path`. `%p` is how PostgreSQL specifies the location of the WAL segment to be archived.
|
||||
|
||||
#### `archive-get` command
|
||||
|
||||
Get a WAL segment from the repository.
|
||||
|
||||
##### Example
|
||||
|
||||
```
|
||||
/path/to/pg_backrest --stanza=db archive-get %f %p
|
||||
```
|
||||
Retrieves a WAL segment from the repository. This command is used in `recovery.conf` to restore a backup, perform PITR, or as an alternative to streaming for keeping a replica up to date. `%f` is how PostgreSQL specifies the WAL segment it needs and `%p` is the location where it should be copied.
|
||||
|
||||
#### `expire` command
|
||||
|
||||
pgBackRest does backup rotation, but is not concerned with when the backups were created. So if two full backups are configured for retention, pgBackRest will keep two full backups no matter whether they occur, two hours apart or two weeks apart.
|
||||
|
||||
##### Example
|
||||
|
||||
```
|
||||
/path/to/pg_backrest --stanza=db expire
|
||||
```
|
||||
Expire (rotate) any backups that exceed the defined retention. Expiration is run automatically after every successful backup, so there is no need to run this command separately unless you have reduced retention, usually to free up some space.
|
||||
|
||||
#### `restore` command
|
||||
|
||||
Perform a database restore. This command is generally run manually, but there are instances where it might be automated.
|
||||
|
||||
##### `set` option
|
||||
|
||||
The backup set to be restored. `latest` will restore the latest backup, otherwise provide the name of the backup to restore.
|
||||
```
|
||||
required: n
|
||||
default: latest
|
||||
example: --set=20150131-153358F_20150131-153401I
|
||||
```
|
||||
|
||||
##### `delta` option
|
||||
|
||||
By default the PostgreSQL data and tablespace directories are expected to be present but empty. This option performs a delta restore using checksums.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
```
|
||||
|
||||
##### `force` option
|
||||
|
||||
By itself this option forces the PostgreSQL data and tablespace paths to be completely overwritten. In combination with `--delta` a timestamp/size delta will be performed instead of using checksums.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
```
|
||||
|
||||
##### `type` option
|
||||
|
||||
The following recovery types are supported:
|
||||
|
||||
- `default` - recover to the end of the archive stream.
|
||||
- `name` - recover the restore point specified in `--target`.
|
||||
- `xid` - recover to the transaction id specified in `--target`.
|
||||
- `time` - recover to the time specified in `--target`.
|
||||
- `preserve` - preserve the existing `recovery.conf` file.
|
||||
- `none` - no `recovery.conf` file is written so PostgreSQL will attempt to achieve consistency using WAL segments present in `pg_xlog`. Provide the required WAL segments or use the `archive-copy` setting to include them with the backup.
|
||||
|
||||
```
|
||||
required: n
|
||||
default: default
|
||||
example: --type=xid
|
||||
```
|
||||
|
||||
##### `target` option
|
||||
|
||||
Defines the recovery target when `--type` is `name`, `xid`, or `time`.
|
||||
```
|
||||
required: y
|
||||
example: "--target=2015-01-30 14:15:11 EST"
|
||||
```
|
||||
|
||||
##### `target-exclusive` option
|
||||
|
||||
Defines whether recovery to the target would be exclusive (the default is inclusive) and is only valid when `--type` is `time` or `xid`. For example, using `--target-exclusive` would exclude the contents of transaction `1007` when `--type=xid` and `--target=1007`. See `recovery_target_inclusive` option in the PostgreSQL docs for more information.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
```
|
||||
|
||||
##### `target-resume` option
|
||||
|
||||
Specifies whether recovery should resume when the recovery target is reached. See `pause_at_recovery_target` in the PostgreSQL docs for more information.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
```
|
||||
|
||||
##### `target-timeline` option
|
||||
|
||||
Recovers along the specified timeline. See `recovery_target_timeline` in the PostgreSQL docs for more information.
|
||||
```
|
||||
required: n
|
||||
example: --target-timeline=3
|
||||
```
|
||||
|
||||
##### `recovery-setting` option
|
||||
|
||||
Recovery settings in recovery.conf options can be specified with this option. See http://www.postgresql.org/docs/X.X/static/recovery-config.html for details on recovery.conf options (replace X.X with your database version). This option can be used multiple times.
|
||||
|
||||
Note: `restore_command` will be automatically generated but can be overridden with this option. Be careful about specifying your own `restore_command` as pgBackRest is designed to handle this for you. Target Recovery options (recovery_target_name, recovery_target_time, etc.) are generated automatically by pgBackRest and should not be set with this option.
|
||||
|
||||
Recovery settings can also be set in the `restore:recovery-setting` section of pg_backrest.conf. For example:
|
||||
```
|
||||
[restore:recovery-setting]
|
||||
primary_conn_info=db.mydomain.com
|
||||
standby_mode=on
|
||||
```
|
||||
Since pgBackRest does not start PostgreSQL after writing the `recovery.conf` file, it is always possible to edit/check `recovery.conf` before manually restarting.
|
||||
```
|
||||
required: n
|
||||
example: --recovery-setting primary_conninfo=db.mydomain.com
|
||||
```
|
||||
|
||||
##### `tablespace-map` option
|
||||
|
||||
Moves a tablespace to a new location during the restore. This is useful when tablespace locations are not the same on a replica, or an upgraded system has different mount points.
|
||||
|
||||
Since PostgreSQL 9.2 tablespace locations are not stored in pg_tablespace so moving tablespaces can be done with impunity. However, moving a tablespace to the `data_directory` is not recommended and may cause problems. For more information on moving tablespaces http://www.databasesoup.com/2013/11/moving-tablespaces.html is a good resource.
|
||||
```
|
||||
required: n
|
||||
example: --tablespace-map ts_01=/db/ts_01
|
||||
```
|
||||
|
||||
##### Example: Restore Latest
|
||||
|
||||
```
|
||||
/path/to/pg_backrest --stanza=db --type=name --target=release restore
|
||||
```
|
||||
Restores the latest database backup and then recovers to the `release` restore point.
|
||||
|
||||
#### `info` command
|
||||
|
||||
Retrieve information about backups for a single stanza or for all stanzas. Text output is the default and gives a human-readable summary of backups for the stanza(s) requested. This format is subject to change with any release.
|
||||
|
||||
For machine-readable output use `--output=json`. The JSON output contains far more information than the text output, however **this feature is currently experimental so the format may change between versions**.
|
||||
|
||||
##### `output` option
|
||||
|
||||
The following output types are supported:
|
||||
|
||||
- `text` - Human-readable summary of backup information.
|
||||
- `json` - Exhaustive machine-readable backup information in JSON format.
|
||||
|
||||
```
|
||||
required: n
|
||||
default: text
|
||||
example: --output=json
|
||||
```
|
||||
|
||||
##### Example: Backup information
|
||||
|
||||
```
|
||||
/path/to/pg_backrest --stanza=db --output=json info
|
||||
```
|
||||
|
||||
Get information about backups in the `db` stanza.
|
||||
|
||||
## Release Notes
|
||||
|
||||
### v0.78: Remove CPAN dependencies, stability improvements
|
||||
|
||||
* Removed dependency on CPAN packages for multi-threaded operation. While it might not be a bad idea to update the threads and Thread::Queue packages, it is no longer necessary.
|
||||
|
||||
* Added vagrant test configurations for Ubuntu 12.04 and CentOS 6.
|
||||
|
||||
* Modified wait backoffs to use a Fibonacci sequence rather than geometric. This will make then grow less aggressively while still giving reasonable wait times.
|
||||
|
||||
* More options for regression tests and improved code to run in a variety of environments.
|
||||
|
||||
### v0.77: CentOS/RHEL 6 support and protocol improvements
|
||||
|
||||
* Removed pg_backrest_remote and added the functionality to pg_backrest as remote command.
|
||||
|
||||
* Added file and directory syncs to the File object for additional safety during backup/restore and archiving. Suggested by Andres Freund.
|
||||
|
||||
* Support for Perl 5.10.1 and OpenSSH 5.3 which are default for CentOS/RHEL 6. Found by Eric Radman.
|
||||
|
||||
* Improved error message when backup is run without archive_command set and without --no-archive-check specified. Found by Eric Radman.
|
||||
|
||||
* Moved version number out of the VERSION file to Version.pm to better support packaging. Suggested by Michael Renner.
|
||||
|
||||
* Replaced IPC::System::Simple and Net::OpenSSH with IPC::Open3 to eliminate CPAN dependency for multiple distros.
|
||||
|
||||
### v0.75: New repository format, info command and experimental 9.5 support
|
||||
|
||||
* IMPORTANT NOTE: This flag day release breaks compatibility with older versions of pgBackRest. The manifest format, on-disk structure, and the binary names have all changed. You must create a new repository to hold backups for this version of pgBackRest and keep your older repository for a time in case you need to do a restore. The `pg_backrest.conf` file has not changed but you'll need to change any references to `pg_backrest.pl` in cron (or elsewhere) to `pg_backrest` (without the `.pl` extension).
|
||||
|
||||
* Add info command.
|
||||
|
||||
* More efficient file ordering for backup. Files are copied in descending size order so a single thread does not end up copying a large file at the end. This had already been implemented for restore.
|
||||
|
||||
* Logging now uses unbuffered output. This should make log files that are being written by multiple threads less chaotic. Suggested by Michael Renner.
|
||||
|
||||
* Experimental support for PostgreSQL 9.5. This may break when the control version or WAL magic changes but will be updated in each release.
|
||||
|
||||
### v0.70: Stability improvements for archiving, improved logging and help
|
||||
|
||||
* Fixed an issue where archive-copy would fail on an incr/diff backup when hardlink=n. In this case the pg_xlog path does not already exist and must be created. Reported by Michael Renner
|
||||
|
||||
* Allow duplicate WAL segments to be archived when the checksum matches. This is necessary for some recovery scenarios.
|
||||
|
||||
* Allow comments/disabling in pg_backrest.conf using #. Suggested by Michael Renner.
|
||||
|
||||
* Better logging before pg_start_backup() to make it clear when the backup is waiting on a checkpoint. Suggested by Michael Renner.
|
||||
|
||||
* Various command behavior, help and logging fixes. Reported by Michael Renner.
|
||||
|
||||
* Fixed an issue in async archiving where archive-push was not properly returning 0 when archive-max-mb was reached and moved the async check after transfer to avoid having to remove the stop file twice. Also added unit tests for this case and improved error messages to make it clearer to the user what went wrong. Reported by Michael Renner.
|
||||
|
||||
* Fixed a locking issue that could allow multiple operations of the same type against a single stanza. This appeared to be benign in terms of data integrity but caused spurious errors while archiving and could lead to errors in backup/restore. Reported by Michael Renner.
|
||||
|
||||
* Replaced JSON module with JSON::PP which ships with core Perl.
|
||||
|
||||
### v0.65: Improved resume and restore logging, compact restores
|
||||
|
||||
* Better resume support. Resumed files are checked to be sure they have not been modified and the manifest is saved more often to preserve checksums as the backup progresses. More unit tests to verify each resume case.
|
||||
|
||||
* Resume is now optional. Use the `resume` setting or `--no-resume` from the command line to disable.
|
||||
|
||||
* More info messages during restore. Previously, most of the restore messages were debug level so not a lot was output in the log.
|
||||
|
||||
* Fixed an issue where an absolute path was not written into recovery.conf when the restore was run with a relative path.
|
||||
|
||||
* Added `tablespace` setting to allow tablespaces to be restored into the `pg_tblspc` path. This produces compact restores that are convenient for development, staging, etc. Currently these restores cannot be backed up as pgBackRest expects only links in the `pg_tblspc` path.
|
||||
|
||||
### v0.61: Bug fix for uncompressed remote destination
|
||||
|
||||
* Fixed a buffering error that could occur on large, highly-compressible files when copying to an uncompressed remote destination. The error was detected in the decompression code and resulted in a failed backup rather than corruption so it should not affect successful backups made with previous versions.
|
||||
|
||||
### v0.60: Better version support and WAL improvements
|
||||
|
||||
* Pushing duplicate WAL now generates an error. This worked before only if checksums were disabled.
|
||||
|
||||
* Database System IDs are used to make sure that all WAL in an archive matches up. This should help prevent misconfigurations that send WAL from multiple clusters to the same archive.
|
||||
|
||||
* Regression tests working back to PostgreSQL 8.3.
|
||||
|
||||
* Improved threading model by starting threads early and terminating them late.
|
||||
|
||||
### v0.50: Restore and much more
|
||||
|
||||
* Added restore functionality.
|
||||
|
||||
* All options can now be set on the command-line making pg_backrest.conf optional.
|
||||
|
||||
* De/compression is now performed without threads and checksum/size is calculated in stream. That means file checksums are no longer optional.
|
||||
|
||||
* Added option `--no-start-stop` to allow backups when Postgres is shut down. If `postmaster.pid` is present then `--force` is required to make the backup run (though if Postgres is running an inconsistent backup will likely be created). This option was added primarily for the purpose of unit testing, but there may be applications in the real world as well.
|
||||
|
||||
* Fixed broken checksums and now they work with normal and resumed backups. Finally realized that checksums and checksum deltas should be functionally separated and this simplified a number of things. Issue #28 has been created for checksum deltas.
|
||||
|
||||
* Fixed an issue where a backup could be resumed from an aborted backup that didn't have the same type and prior backup.
|
||||
|
||||
* Removed dependency on Moose. It wasn't being used extensively and makes for longer startup times.
|
||||
|
||||
* Checksum for backup.manifest to detect corrupted/modified manifest.
|
||||
|
||||
* Link `latest` always points to the last backup. This has been added for convenience and to make restores simpler.
|
||||
|
||||
* More comprehensive unit tests in all areas.
|
||||
|
||||
### v0.30: Core Restructuring and Unit Tests
|
||||
|
||||
* Complete rewrite of BackRest::File module to use a custom protocol for remote operations and Perl native GZIP and SHA operations. Compression is performed in threads rather than forked processes.
|
||||
|
||||
* Fairly comprehensive unit tests for all the basic operations. More work to be done here for sure, but then there is always more work to be done on unit tests.
|
||||
|
||||
* Removed dependency on Storable and replaced with a custom ini file implementation.
|
||||
|
||||
* Added much needed documentation
|
||||
|
||||
* Numerous other changes that can only be identified with a diff.
|
||||
|
||||
### v0.19: Improved Error Reporting/Handling
|
||||
|
||||
* Working on improving error handling in the file object. This is not complete, but works well enough to find a few errors that have been causing us problems (notably, find is occasionally failing building the archive async manifest when system is under load).
|
||||
|
||||
* Found and squashed a nasty bug where `file_copy()` was defaulted to ignore errors. There was also an issue in file_exists that was causing the test to fail when the file actually did exist. Together they could have resulted in a corrupt backup with no errors, though it is very unlikely.
|
||||
|
||||
### v0.18: Return Soft Error When Archive Missing
|
||||
|
||||
* The `archive-get` operation returns a 1 when the archive file is missing to differentiate from hard errors (ssh connection failure, file copy error, etc.) This lets Postgres know that that the archive stream has terminated normally. However, this does not take into account possible holes in the archive stream.
|
||||
|
||||
### v0.17: Warn When Archive Directories Cannot Be Deleted
|
||||
|
||||
* If an archive directory which should be empty could not be deleted backrest was throwing an error. There's a good fix for that coming, but for the time being it has been changed to a warning so processing can continue. This was impacting backups as sometimes the final archive file would not get pushed if the first archive file had been in a different directory (plus some bad luck).
|
||||
|
||||
### v0.16: RequestTTY=yes for SSH Sessions
|
||||
|
||||
* Added `RequestTTY=yes` to ssh sessions. Hoping this will prevent random lockups.
|
||||
|
||||
### v0.15: RequestTTY=yes for SSH Sessions
|
||||
|
||||
* Added archive-get functionality to aid in restores.
|
||||
|
||||
* Added option to force a checkpoint when starting the backup `start-fast=y`.
|
||||
|
||||
### v0.11: Minor Fixes
|
||||
|
||||
* Removed `master_stderr_discard` option on database SSH connections. There have been occasional lockups and they could be related to issues originally seen in the file code.
|
||||
|
||||
* Changed lock file conflicts on backup and expire commands to ERROR. They were set to DEBUG due to a copy-and-paste from the archive locks.
|
||||
|
||||
### v0.10: Backup and Archiving are Functional
|
||||
|
||||
* No restore functionality, but the backup directories are consistent Postgres data directories. You'll need to either uncompress the files or turn off compression in the backup. Uncompressed backups on a ZFS (or similar) filesystem are a good option because backups can be restored locally via a snapshot to create logical backups or do spot data recovery.
|
||||
|
||||
* Archiving is single-threaded. This has not posed an issue on our multi-terabyte databases with heavy write volume. Recommend a large WAL volume or to use the async option with a large volume nearby.
|
||||
|
||||
* Backups are multi-threaded, but the Net::OpenSSH library does not appear to be 100% thread-safe so it will very occasionally lock up on a thread. There is an overall process timeout that resolves this issue by killing the process. Yes, very ugly.
|
||||
|
||||
* Checksums are lost on any resumed backup. Only the final backup will record checksum on multiple resumes. Checksums from previous backups are correctly recorded and a full backup will reset everything.
|
||||
|
||||
* The backup.manifest is being written as Storable because Config::IniFile does not seem to handle large files well. Would definitely like to save these as human-readable text.
|
||||
|
||||
* Absolutely no documentation (outside the code). Well, excepting these release notes.
|
||||
Please visit [Crunchy Backup Manager](http://crunchydatasolutions.com/crunchy-backup-manager) for more information.
|
||||
|
||||
## Recognition
|
||||
|
||||
Primary recognition goes to Stephen Frost for all his valuable advice and criticism during the development of pgBackRest.
|
||||
|
||||
Crunchy Data Solutions (http://www.crunchydata.com) has contributed time and resources to pgBackRest and continues to support development. Resonate (http://www.resonate.com/) also contributed to the development of pgBackRest and allowed me to install early (but well tested) versions as their primary PostgreSQL backup solution.
|
||||
[Crunchy Data](http://www.crunchydatasolutions.com) has contributed significant time and resources to pgBackRest and continues to actively support development. [Resonate](http://www.resonate.com) also contributed to the development of pgBackRest and allowed early (but well tested) versions to be installed as their primary PostgreSQL backup solution.
|
||||
|
||||
802
USERGUIDE.md
Normal file
802
USERGUIDE.md
Normal file
@@ -0,0 +1,802 @@
|
||||
# pgBackRest - User Guide
|
||||
|
||||
## Installation
|
||||
|
||||
pgBackRest is written entirely in Perl. Some additional modules will need to be installed depending on the OS.
|
||||
|
||||
### Ubuntu 12.04/14.04 Setup
|
||||
|
||||
* Install required Perl modules:
|
||||
```
|
||||
apt-get install libdbd-pg-perl
|
||||
```
|
||||
|
||||
### CentOS 6 Setup
|
||||
|
||||
* Install Perl and required modules:
|
||||
```
|
||||
yum install perl perl-Time-HiRes perl-IO-String perl-parent perl-JSON perl-Digest-SHA perl-DBD-Pg
|
||||
```
|
||||
|
||||
### CentOS 7 Setup
|
||||
|
||||
* Install Perl and required modules:
|
||||
```
|
||||
yum install perl perl-IO-String perl-Thread-Queue perl-JSON-PP perl-Digest-SHA perl-DBD-Pg
|
||||
```
|
||||
|
||||
### Software Installation
|
||||
|
||||
pgBackRest can be installed by downloading the most recent release:
|
||||
|
||||
https://github.com/pgmasters/backrest/releases
|
||||
|
||||
pgBackRest can be installed anywhere but it's best (though not required) to install it in the same location on all systems.
|
||||
|
||||
### Regression Test Setup
|
||||
|
||||
* Create the backrest user
|
||||
|
||||
The backrest user must be created on the same system and in the same group as the user you will use for testing (which can be any user you prefer). For example:
|
||||
```
|
||||
adduser -g <test-user-group> backrest
|
||||
```
|
||||
* Setup password-less SSH login between the test user and the backrest user
|
||||
|
||||
The test user should be able to `ssh backrest@127.0.0.1` and the backrest user should be able to `ssh <testuser>@127.0.0.1` without requiring any passwords. This article (http://archive.oreilly.com/pub/h/66) has details on how to accomplish this. Do the logons both ways at the command line before running regression tests.
|
||||
|
||||
* Give group read and execute permissions to `~/backrest/test`:
|
||||
|
||||
Usually this can be accomplished by running the following as the test user:
|
||||
```
|
||||
chmod 750 ~
|
||||
```
|
||||
* Running regression:
|
||||
|
||||
Running the full regression suite is generally not necessary. Run the following first:
|
||||
```
|
||||
./test.pl --module=backup --test=full --db-version=all --thread-max=<# threads>
|
||||
```
|
||||
This will run full backup/restore regression with a variety of options on all installed versions of PostgreSQL. If you are only interested in one version then modify the `db-version` setting to X.X (e.g. 9.4). `--thread-max` can be omitted if you are running single-threaded.
|
||||
|
||||
If there are errors in this test then run full regression to help isolate problems:
|
||||
```
|
||||
./test.pl --db-version=all --thread-max=<# threads>
|
||||
```
|
||||
Report regression test failures at https://github.com/pgmasters/backrest/issues.
|
||||
|
||||
## Configuration
|
||||
|
||||
pgBackRest can be used entirely with command-line parameters but a configuration file is more practical for installations that are complex or set a lot of options. The default location for the configuration file is `/etc/pg_backrest.conf`.
|
||||
|
||||
Each system where pgBackRest is installed should have a repository owned by the user that will be running pgBackRest on that system. Normally this will be the `postgres` user on a database server and the `backrest` user on a backup server. See [repo-path](USERGUIDE.md#repo-path-key) for more information on how repositories are used.
|
||||
|
||||
### Examples
|
||||
|
||||
#### Confguring Postgres for Archiving
|
||||
|
||||
Modify the following settings in `postgresql.conf`:
|
||||
```
|
||||
wal_level = archive
|
||||
archive_mode = on
|
||||
archive_command = '/path/to/backrest/bin/pg_backrest --stanza=db archive-push %p'
|
||||
```
|
||||
Replace the path with the actual location where pgBackRest was installed. The stanza parameter should be changed to the actual stanza name for your database cluster.
|
||||
|
||||
#### Minimal Configuration
|
||||
|
||||
The absolute minimum required to run pgBackRest (if all defaults are accepted) is the database cluster path.
|
||||
|
||||
`/etc/pg_backrest.conf`:
|
||||
```
|
||||
[main]
|
||||
db-path=/data/db
|
||||
```
|
||||
The `db-path` option could also be provided on the command line, but it's best to use a configuration file as options tend to pile up quickly.
|
||||
|
||||
#### Simple Single Host Configuration
|
||||
|
||||
This configuration is appropriate for a small installation where backups are being made locally or to a remote file system that is mounted locally. A number of additional options are set:
|
||||
|
||||
- `db-port` - Custom port for PostgreSQL.
|
||||
- `compress` - Disable compression (handy if the file system is already compressed).
|
||||
- `repo-path` - Path to the pgBackRest repository where backups and WAL archive are stored.
|
||||
- `log-level-file` - Set the file log level to debug (Lots of extra info if something is not working as expected).
|
||||
- `hardlink` - Create hardlinks between backups (but never between full backups).
|
||||
- `thread-max` - Use 2 threads for backup/restore operations.
|
||||
|
||||
`/etc/pg_backrest.conf`:
|
||||
```
|
||||
[global:general]
|
||||
compress=n
|
||||
repo-path=/path/to/db/repo
|
||||
|
||||
[global:log]
|
||||
log-level-file=debug
|
||||
|
||||
[global:backup]
|
||||
hardlink=y
|
||||
thread-max=2
|
||||
|
||||
[main]
|
||||
db-path=/data/db
|
||||
db-port=5555
|
||||
```
|
||||
|
||||
#### Simple Multiple Host Configuration
|
||||
|
||||
This configuration is appropriate for a small installation where backups are being made remotely. Make sure that postgres@db-host has trusted ssh to backrest@backup-host and vice versa. This configuration assumes that you have pg_backrest in the same path on both servers.
|
||||
|
||||
`/etc/pg_backrest.conf` on the db host:
|
||||
```
|
||||
[global:general]
|
||||
repo-path=/path/to/db/repo
|
||||
repo-remote-path=/path/to/backup/repo
|
||||
|
||||
[global:backup]
|
||||
backup-host=backup.mydomain.com
|
||||
backup-user=backrest
|
||||
|
||||
[global:archive]
|
||||
archive-async=y
|
||||
|
||||
[main]
|
||||
db-path=/data/db
|
||||
```
|
||||
`/etc/pg_backrest.conf` on the backup host:
|
||||
```
|
||||
[global:general]
|
||||
repo-path=/path/to/backup/repo
|
||||
|
||||
[main]
|
||||
db-host=db.mydomain.com
|
||||
db-path=/data/db
|
||||
db-user=postgres
|
||||
```
|
||||
|
||||
### Setttings
|
||||
|
||||
#### `command` section
|
||||
|
||||
The `command` section defines the location of external commands that are used by pgBackRest.
|
||||
|
||||
##### `cmd-remote` key
|
||||
|
||||
Defines the location of `pg_backrest_remote.pl`.
|
||||
|
||||
Required only if the path to `pg_backrest_remote.pl` is different on the local and remote systems. If not defined, the remote path will be assumed to be the same as the local path.
|
||||
```
|
||||
required: n
|
||||
default: same as local
|
||||
example: cmd-remote=/usr/lib/backrest/bin/pg_backrest_remote.pl
|
||||
```
|
||||
|
||||
#### `log` section
|
||||
|
||||
The `log` section defines logging-related settings. The following log levels are supported:
|
||||
|
||||
- `off` - No logging at all (not recommended)
|
||||
- `error` - Log only errors
|
||||
- `warn` - Log warnings and errors
|
||||
- `info` - Log info, warnings, and errors
|
||||
- `debug` - Log debug, info, warnings, and errors
|
||||
- `trace` - Log trace (very verbose debugging), debug, info, warnings, and errors
|
||||
|
||||
|
||||
##### `log-level-file` key
|
||||
|
||||
Sets file log level.
|
||||
```
|
||||
required: n
|
||||
default: info
|
||||
example: log-level-file=debug
|
||||
```
|
||||
|
||||
##### `log-level-console` key
|
||||
|
||||
Sets console log level.
|
||||
```
|
||||
required: n
|
||||
default: warn
|
||||
example: log-level-console=error
|
||||
```
|
||||
|
||||
#### `general` section
|
||||
|
||||
The `general` section defines settings that are shared between multiple operations.
|
||||
|
||||
##### `buffer-size` key
|
||||
|
||||
Set the buffer size used for copy, compress, and uncompress functions. A maximum of 3 buffers will be in use at a time per thread. An additional maximum of 256K per thread may be used for zlib buffers.
|
||||
```
|
||||
required: n
|
||||
default: 4194304
|
||||
allow: 16384 - 8388608
|
||||
example: buffer-size=32768
|
||||
```
|
||||
|
||||
##### `compress` key
|
||||
|
||||
Enable gzip compression. Backup files are compatible with command-line gzip tools.
|
||||
```
|
||||
required: n
|
||||
default: y
|
||||
example: compress=n
|
||||
```
|
||||
|
||||
##### `compress-level` key
|
||||
|
||||
Sets the zlib level to be used for file compression when `compress=y`.
|
||||
```
|
||||
required: n
|
||||
default: 6
|
||||
allow: 0-9
|
||||
example: compress-level=9
|
||||
```
|
||||
|
||||
##### `compress-level-network` key
|
||||
|
||||
Sets the zlib level to be used for protocol compression when `compress=n` and the database cluster is not on the same host as the backup. Protocol compression is used to reduce network traffic but can be disabled by setting `compress-level-network=0`. When `compress=y` the `compress-level-network` setting is ignored and `compress-level` is used instead so that the file is only compressed once. SSH compression is always disabled.
|
||||
```
|
||||
required: n
|
||||
default: 3
|
||||
allow: 0-9
|
||||
example: compress-level-network=1
|
||||
```
|
||||
|
||||
##### `neutral-umask` key
|
||||
|
||||
Sets the umask to 0000 so modes in the repository as created in a sensible way. The default directory mode is 0750 and default file mode is 0640. The lock and log directories set the directory and file mode to 0770 and 0660 respectively.
|
||||
|
||||
To use the executing user's umask instead specify `neutral-umask=n` in the config file or `--no-neutral-umask` on the command line.
|
||||
```
|
||||
required: n
|
||||
default: y
|
||||
example: neutral-umask=n
|
||||
```
|
||||
|
||||
##### `repo-path` key
|
||||
|
||||
Path to the backrest repository where WAL segments, backups, logs, etc are stored.
|
||||
|
||||
The repository serves as both storage and working area for pgBackRest. In a simple installation where the backups are stored locally to the database server there will be only one repository which will contain everything: backups, archives, logs, locks, etc.
|
||||
|
||||
If the backups are being done remotely then the backup server's repository will contain backups, archives, locks and logs while the database server's repository will contain only locks and logs. However, if asynchronous archving is enabled then the database server's repository will also contain a spool directory for archive logs that have not yet been pushed to the remote repository.
|
||||
|
||||
Each system where pgBackRest is installed should have a repository directory configured. Storage requirements vary based on usage. The main backup repository will need the most space as it contains both backups and WAL segments for whatever retention you have specified. The database repository only needs significant space if asynchronous archiving is enabled and then it will act as an overflow for WAL segments and might need to be large depending on your database activity.
|
||||
|
||||
If you are new to backup then it will be difficult to estimate in advance how much space you'll need. The best thing to do it take some backups then record the size of different types of backups (full/incr/diff) and measure the amount of WAL generated per day. This will give you a general idea of how much space you'll need, though of course requirements will change over time as your database evolves.
|
||||
|
||||
```
|
||||
required: n
|
||||
default: /var/lib/backup
|
||||
example: repo-path=/data/db/backrest
|
||||
```
|
||||
|
||||
##### `repo-remote-path` key
|
||||
|
||||
Path to the remote backrest repository where WAL segments, backups, logs, etc are stored.
|
||||
|
||||
The remote repository is relative to the current installation of pgBackRest. On a database server the backup server will be remote and visa versa for the backup server where the database server will be remote. This option is only required if the remote repository is in a different location than the local repository.
|
||||
```
|
||||
required: n
|
||||
example: repo-remote-path=/backup/backrest
|
||||
```
|
||||
|
||||
#### `backup` section
|
||||
|
||||
The `backup` section defines settings related to backup.
|
||||
|
||||
##### `backup-host` key
|
||||
|
||||
Sets the backup host when backup up remotely via SSH. Make sure that trusted SSH authentication is configured between the db host and the backup host.
|
||||
|
||||
When backing up to a locally mounted network filesystem this setting is not required.
|
||||
```
|
||||
required: n
|
||||
example: backup-host=backup.domain.com
|
||||
```
|
||||
|
||||
##### `backup-user` key
|
||||
|
||||
Sets user account on the backup host.
|
||||
```
|
||||
required: n
|
||||
example: backup-user=backrest
|
||||
```
|
||||
|
||||
##### `db-timeout` key
|
||||
|
||||
Sets the timeout for operations against the database during the backup. This includes the `pg_start_backup()` and `pg_stop_backup()` functions which can each take a substantial amount of time. Because of this the timeout should be kept high unless you know that these functions will return quickly (i.e. if you have set `startfast=y` and you know that the database cluster will not generate many WAL segments during the backup).
|
||||
```
|
||||
required: n
|
||||
default: 1800
|
||||
example: db-timeout=600
|
||||
```
|
||||
|
||||
##### `stop-auto` key
|
||||
|
||||
Automatically stops a prior failed backup when a new backup is run. This will only be done if an exclusive advisory lock can be acquired to demonstrate that the prior failed backup process has really stopped.
|
||||
|
||||
This feature relies on pg_is_in_backup() so only works on PostgreSQL >= `9.3`.
|
||||
|
||||
The setting is disabled by default because it assumes that pgBackRest is the only process doing exclusive online backups. It depends on an advisory lock that only pgBackRest sets so it may abort other processes that do exclusive online backups. Note that `base_backup` and `pg_dump` are safe to use with this setting because they do not call `pg_start_backup()` so are not exclusive.
|
||||
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
example: stop-auto=y
|
||||
```
|
||||
|
||||
##### `start-fast` key
|
||||
|
||||
Forces a checkpoint (by passing `true` to the `fast` parameter of `pg_start_backup()`) so the backup begins immediately. Otherwise the backup will start after the next regular checkpoint.
|
||||
|
||||
This feature only works in PostgreSQL <= `8.3`.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
example: start-fast=y
|
||||
```
|
||||
|
||||
##### `hardlink` key
|
||||
|
||||
Enable hard-linking of files in differential and incremental backups to their full backups. This gives the appearance that each backup is a full backup. Be careful, though, because modifying files that are hard-linked can affect all the backups in the set.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
example: hardlink=y
|
||||
```
|
||||
|
||||
##### `manifest-save-threshold` key
|
||||
|
||||
Defines how often the manifest will be saved during a backup (in bytes). Saving the manifest is important because it stores the checksums and allows the resume function to work efficiently. The actual threshold used is 1% of the backup size or `manifest-save-threshold`, whichever is greater.
|
||||
```
|
||||
required: n
|
||||
default: 1073741824
|
||||
example: manifest-save-threshold=5368709120
|
||||
```
|
||||
|
||||
##### `resume` key
|
||||
|
||||
Defines whether the resume feature is enabled. Resume can greatly reduce the amount of time required to run a backup after a previous backup of the same type has failed. It adds complexity, however, so it may be desirable to disable in environments that do not require the feature.
|
||||
```
|
||||
required: n
|
||||
default: y
|
||||
example: resume=false
|
||||
```
|
||||
|
||||
##### `thread-max` key
|
||||
|
||||
Defines the number of threads to use for backup or restore. Each thread will perform compression and transfer to make the backup run faster, but don't set `thread-max` so high that it impacts database performance during backup.
|
||||
```
|
||||
required: n
|
||||
default: 1
|
||||
example: thread-max=4
|
||||
```
|
||||
|
||||
##### `thread-timeout` key
|
||||
|
||||
Maximum amount of time (in seconds) that a backup thread should run. This limits the amount of time that a thread might be stuck due to unforeseen issues during the backup. Has no affect when `thread-max=1`.
|
||||
```
|
||||
required: n
|
||||
example: thread-timeout=3600
|
||||
```
|
||||
|
||||
##### `archive-check` key
|
||||
|
||||
Checks that all WAL segments required to make the backup consistent are present in the WAL archive. It's a good idea to leave this as the default unless you are using another method for archiving.
|
||||
```
|
||||
required: n
|
||||
default: y
|
||||
example: archive-check=n
|
||||
```
|
||||
|
||||
##### `archive-copy` key
|
||||
|
||||
Store WAL segments required to make the backup consistent in the backup's pg_xlog path. This slightly paranoid option protects against corruption or premature expiration in the WAL segment archive. PITR won't be possible without the WAL segment archive and this option also consumes more space.
|
||||
|
||||
Even though WAL segments will be restored with the backup, PostgreSQL will ignore them if a `recovery.conf` file exists and instead use `archive_command` to fetch WAL segments. Specifying `type=none` when restoring will not create `recovery.conf` and force PostgreSQL to use the WAL segments in pg_xlog. This will get the database cluster to a consistent state.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
example: archive-copy=y
|
||||
```
|
||||
|
||||
#### `archive` section
|
||||
|
||||
The `archive` section defines parameters when doing async archiving. This means that the archive files will be stored locally, then a background process will pick them and move them to the backup.
|
||||
|
||||
##### `archive-async` key
|
||||
|
||||
Archive WAL segments asynchronously. WAL segments will be copied to the local repo, then a process will be forked to compress the segment and transfer it to the remote repo if configured. Control will be returned to PostgreSQL as soon as the WAL segment is copied locally.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
example: archive-async=y
|
||||
```
|
||||
|
||||
##### `archive-max-mb` key
|
||||
|
||||
Limits the amount of archive log that will be written locally when `archive-async=y`. After the limit is reached, the following will happen:
|
||||
|
||||
- pgBackRest will notify Postgres that the archive was successfully backed up, then DROP IT.
|
||||
- An error will be logged to the console and also to the Postgres log.
|
||||
- A stop file will be written in the lock directory and no more archive files will be backed up until it is removed.
|
||||
|
||||
If this occurs then the archive log stream will be interrupted and PITR will not be possible past that point. A new backup will be required to regain full restore capability.
|
||||
|
||||
The purpose of this feature is to prevent the log volume from filling up at which point Postgres will stop completely. Better to lose the backup than have PostgreSQL go down.
|
||||
|
||||
To start normal archiving again you'll need to remove the stop file which will be located at `${repo-path}/lock/${stanza}-archive.stop` where `${repo-path}` is the path set in the `general` section, and `${stanza}` is the backup stanza.
|
||||
```
|
||||
required: n
|
||||
example: archive-max-mb=1024
|
||||
```
|
||||
|
||||
#### `restore` section
|
||||
|
||||
The `restore` section defines settings used for restoring backups.
|
||||
|
||||
##### `tablespace` key
|
||||
|
||||
Defines whether tablespaces will be be restored into their original (or remapped) locations or stored directly under the `pg_tblspc` path. Disabling this setting produces compact restores that are convenient for development, staging, etc. Currently these restores cannot be backed up as pgBackRest expects only links in the `pg_tblspc` path. If no tablespaces are present this this setting has no effect.
|
||||
```
|
||||
required: n
|
||||
default: y
|
||||
example: tablespace=n
|
||||
```
|
||||
|
||||
#### `expire` section
|
||||
|
||||
The `expire` section defines how long backups will be retained. Expiration only occurs when the number of complete backups exceeds the allowed retention. In other words, if full-retention is set to 2, then there must be 3 complete backups before the oldest will be expired. Make sure you always have enough space for retention + 1 backups.
|
||||
|
||||
##### `retention-full` key
|
||||
|
||||
Number of full backups to keep. When a full backup expires, all differential and incremental backups associated with the full backup will also expire. When not defined then all full backups will be kept.
|
||||
```
|
||||
required: n
|
||||
example: retention-full=2
|
||||
```
|
||||
|
||||
##### `retention-diff` key
|
||||
|
||||
Number of differential backups to keep. When a differential backup expires, all incremental backups associated with the differential backup will also expire. When not defined all differential backups will be kept.
|
||||
```
|
||||
required: n
|
||||
example: retention-diff=3
|
||||
```
|
||||
|
||||
##### `retention-archive-type` key
|
||||
|
||||
Type of backup to use for archive retention (full or differential). If set to full, then pgBackRest will keep archive logs for the number of full backups defined by `retention-archive`. If set to differential, then pgBackRest will keep archive logs for the number of differential backups defined by `retention-archive`.
|
||||
|
||||
If not defined then archive logs will be kept indefinitely. In general it is not useful to keep archive logs that are older than the oldest backup, but there may be reasons for doing so.
|
||||
```
|
||||
required: n
|
||||
default: full
|
||||
example: retention-archive-type=diff
|
||||
```
|
||||
|
||||
##### `retention-archive` key
|
||||
|
||||
Number of backups worth of archive log to keep. If this is set less than your backup retention then be sure you set `archive-copy=y` or you won't be able to restore some older backups.
|
||||
|
||||
For example, if `retention-archive=2` and `retention-full=4`, then any backups older than the most recent two full backups will not have WAL segments in the archive to make them consistent. To solve this, set `archive-copy=y` and use `type=none` when restoring. This issue will be addressed in a future release but for now be careful with this setting.
|
||||
```
|
||||
required: n
|
||||
example: retention-archive=2
|
||||
```
|
||||
|
||||
#### `stanza` section
|
||||
|
||||
A stanza defines the backup configuration for a specific PostgreSQL database cluster. The stanza section must define the database cluster path and host/user if the database cluster is remote. Also, any global configuration sections can be overridden to define stanza-specific settings.
|
||||
|
||||
##### `db-host` key
|
||||
|
||||
Define the database cluster host. Used for backups where the database cluster host is different from the backup host.
|
||||
```
|
||||
required: n
|
||||
example: db-host=db.domain.com
|
||||
```
|
||||
|
||||
##### `db-user` key
|
||||
|
||||
Defines the logon user when `db-host` is defined. This user will also own the remote pgBackRest process and will initiate connections to PostgreSQL. For this to work correctly the user should be the PostgreSQL database cluster owner which is generally `postgres`, the default.
|
||||
```
|
||||
required: n
|
||||
default: postgres
|
||||
example: db-user=test_user
|
||||
```
|
||||
|
||||
##### `db-path` key
|
||||
|
||||
Path to the db data directory (data_directory setting in postgresql.conf).
|
||||
```
|
||||
required: y
|
||||
example: db-path=/data/db
|
||||
```
|
||||
|
||||
##### `db-port` key
|
||||
|
||||
Port that PostgreSQL is running on. This usually does not need to be specified as most database clusters run on the default port.
|
||||
```
|
||||
required: n
|
||||
default: 5432
|
||||
example: db-port=6543
|
||||
```
|
||||
|
||||
##### `db-socket-path` key
|
||||
|
||||
The unix socket directory that was specified when PostgreSQL was started. pgBackRest will automatically look in the standard location for your OS so there usually no need to specify this setting unless the socket directory was explicily modified with the `unix_socket_directory` setting in `postgressql.conf`.
|
||||
```
|
||||
required: n
|
||||
example: db-socket-path=/var/run/postgresql
|
||||
```
|
||||
|
||||
## Commands
|
||||
|
||||
### General Options
|
||||
|
||||
These options are either global or used by all commands.
|
||||
|
||||
#### `config` option
|
||||
|
||||
By default pgBackRest expects the its configuration file to be located at `/etc/pg_backrest.conf`. Use this option to specify another location.
|
||||
```
|
||||
required: n
|
||||
default: /etc/pg_backrest.conf
|
||||
example: config=/var/lib/backrest/pg_backrest.conf
|
||||
```
|
||||
|
||||
#### `stanza` option
|
||||
|
||||
Defines the stanza for the command. A stanza is the configuration for a PostgreSQL database cluster that defines where it is located, how it will be backed up, archiving options, etc. Most db servers will only have one Postgres database cluster and therefore one stanza, whereas backup servers will have a stanza for every database cluster that needs to be backed up.
|
||||
|
||||
Examples of how to configure a stanza can be found in the `configuration examples` section.
|
||||
```
|
||||
required: y
|
||||
example: stanza=main
|
||||
```
|
||||
|
||||
#### `help` option
|
||||
|
||||
Displays the pgBackRest help.
|
||||
```
|
||||
required: n
|
||||
```
|
||||
|
||||
#### `version` option
|
||||
|
||||
Displays the pgBackRest version.
|
||||
```
|
||||
required: n
|
||||
```
|
||||
|
||||
### Commands
|
||||
|
||||
#### `backup` command
|
||||
|
||||
Perform a database cluster backup. pgBackRest does not have a built-in scheduler so it's best to run it from cron or some other scheduling mechanism.
|
||||
|
||||
##### `type` option
|
||||
|
||||
The following backup types are supported:
|
||||
|
||||
- `full` - all database cluster files will be copied and there will be no dependencies on previous backups.
|
||||
- `incr` - incremental from the last successful backup.
|
||||
- `diff` - like an incremental backup but always based on the last full backup.
|
||||
|
||||
```
|
||||
required: n
|
||||
default: incr
|
||||
example: --type=full
|
||||
```
|
||||
|
||||
##### `no-start-stop` option
|
||||
|
||||
This option prevents pgBackRest from running `pg_start_backup()` and `pg_stop_backup()` on the database cluster. In order for this to work PostgreSQL should be shut down and pgBackRest will generate an error if it is not.
|
||||
|
||||
The purpose of this option is to allow cold backups. The `pg_xlog` directory is copied as-is and `archive-check` is automatically disabled for the backup.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
```
|
||||
|
||||
##### `force` option
|
||||
|
||||
When used with `--no-start-stop` a backup will be run even if pgBackRest thinks that PostgreSQL is running. **This option should be used with extreme care as it will likely result in a bad backup.**
|
||||
|
||||
There are some scenarios where a backup might still be desirable under these conditions. For example, if a server crashes and the database cluster volume can only be mounted read-only, it would be a good idea to take a backup even if `postmaster.pid` is present. In this case it would be better to revert to the prior backup and replay WAL, but possibly there is a very important transaction in a WAL segment that did not get archived.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
```
|
||||
|
||||
##### Example: Full Backup
|
||||
|
||||
```
|
||||
/path/to/pg_backrest --stanza=db --type=full backup
|
||||
```
|
||||
Run a `full` backup on the `db` stanza. `--type` can also be set to `incr` or `diff` for incremental or differential backups. However, if no `full` backup exists then a `full` backup will be forced even if `incr` or `diff` is requested.
|
||||
|
||||
#### `archive-push` command
|
||||
|
||||
Archive a WAL segment to the repository.
|
||||
|
||||
##### Example
|
||||
|
||||
```
|
||||
/path/to/pg_backrest --stanza=db archive-push %p
|
||||
```
|
||||
Accepts a WAL segment from PostgreSQL and archives it in the repository defined by `repo-path`. `%p` is how PostgreSQL specifies the location of the WAL segment to be archived.
|
||||
|
||||
#### `archive-get` command
|
||||
|
||||
Get a WAL segment from the repository.
|
||||
|
||||
##### Example
|
||||
|
||||
```
|
||||
/path/to/pg_backrest --stanza=db archive-get %f %p
|
||||
```
|
||||
Retrieves a WAL segment from the repository. This command is used in `recovery.conf` to restore a backup, perform PITR, or as an alternative to streaming for keeping a replica up to date. `%f` is how PostgreSQL specifies the WAL segment it needs and `%p` is the location where it should be copied.
|
||||
|
||||
#### `expire` command
|
||||
|
||||
pgBackRest does backup rotation, but is not concerned with when the backups were created. So if two full backups are configured for retention, pgBackRest will keep two full backups no matter whether they occur, two hours apart or two weeks apart.
|
||||
|
||||
##### Example
|
||||
|
||||
```
|
||||
/path/to/pg_backrest --stanza=db expire
|
||||
```
|
||||
Expire (rotate) any backups that exceed the defined retention. Expiration is run automatically after every successful backup, so there is no need to run this command separately unless you have reduced retention, usually to free up some space.
|
||||
|
||||
#### `restore` command
|
||||
|
||||
Perform a database cluster restore. This command is generally run manually, but there are instances where it might be automated.
|
||||
|
||||
##### `set` option
|
||||
|
||||
The backup set to be restored. `latest` will restore the latest backup, otherwise provide the name of the backup to restore.
|
||||
```
|
||||
required: n
|
||||
default: latest
|
||||
example: --set=20150131-153358F_20150131-153401I
|
||||
```
|
||||
|
||||
##### `delta` option
|
||||
|
||||
By default the PostgreSQL data and tablespace directories are expected to be present but empty. This option performs a delta restore using checksums.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
```
|
||||
|
||||
##### `force` option
|
||||
|
||||
By itself this option forces the PostgreSQL data and tablespace paths to be completely overwritten. In combination with `--delta` a timestamp/size delta will be performed instead of using checksums.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
```
|
||||
|
||||
##### `type` option
|
||||
|
||||
The following recovery types are supported:
|
||||
|
||||
- `default` - recover to the end of the archive stream.
|
||||
- `name` - recover the restore point specified in `--target`.
|
||||
- `xid` - recover to the transaction id specified in `--target`.
|
||||
- `time` - recover to the time specified in `--target`.
|
||||
- `preserve` - preserve the existing `recovery.conf` file.
|
||||
- `none` - no `recovery.conf` file is written so PostgreSQL will attempt to achieve consistency using WAL segments present in `pg_xlog`. Provide the required WAL segments or use the `archive-copy` setting to include them with the backup.
|
||||
|
||||
```
|
||||
required: n
|
||||
default: default
|
||||
example: --type=xid
|
||||
```
|
||||
|
||||
##### `target` option
|
||||
|
||||
Defines the recovery target when `--type` is `name`, `xid`, or `time`.
|
||||
```
|
||||
required: y
|
||||
example: "--target=2015-01-30 14:15:11 EST"
|
||||
```
|
||||
|
||||
##### `target-exclusive` option
|
||||
|
||||
Defines whether recovery to the target would be exclusive (the default is inclusive) and is only valid when `--type` is `time` or `xid`. For example, using `--target-exclusive` would exclude the contents of transaction `1007` when `--type=xid` and `--target=1007`. See `recovery_target_inclusive` option in the PostgreSQL docs for more information.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
```
|
||||
|
||||
##### `target-resume` option
|
||||
|
||||
Specifies whether recovery should resume when the recovery target is reached. See `pause_at_recovery_target` in the PostgreSQL docs for more information.
|
||||
```
|
||||
required: n
|
||||
default: n
|
||||
```
|
||||
|
||||
##### `target-timeline` option
|
||||
|
||||
Recovers along the specified timeline. See `recovery_target_timeline` in the PostgreSQL docs for more information.
|
||||
```
|
||||
required: n
|
||||
example: --target-timeline=3
|
||||
```
|
||||
|
||||
##### `recovery-setting` option
|
||||
|
||||
Recovery settings in recovery.conf options can be specified with this option. See http://www.postgresql.org/docs/X.X/static/recovery-config.html for details on recovery.conf options (replace X.X with your PostgreSQL version). This option can be used multiple times.
|
||||
|
||||
Note: `restore_command` will be automatically generated but can be overridden with this option. Be careful about specifying your own `restore_command` as pgBackRest is designed to handle this for you. Target Recovery options (recovery_target_name, recovery_target_time, etc.) are generated automatically by pgBackRest and should not be set with this option.
|
||||
|
||||
Recovery settings can also be set in the `restore:recovery-setting` section of pg_backrest.conf. For example:
|
||||
```
|
||||
[restore:recovery-setting]
|
||||
primary_conn_info=db.mydomain.com
|
||||
standby_mode=on
|
||||
```
|
||||
Since pgBackRest does not start PostgreSQL after writing the `recovery.conf` file, it is always possible to edit/check `recovery.conf` before manually restarting.
|
||||
```
|
||||
required: n
|
||||
example: --recovery-setting primary_conninfo=db.mydomain.com
|
||||
```
|
||||
|
||||
##### `tablespace-map` option
|
||||
|
||||
Moves a tablespace to a new location during the restore. This is useful when tablespace locations are not the same on a replica, or an upgraded system has different mount points.
|
||||
|
||||
Since PostgreSQL 9.2 tablespace locations are not stored in pg_tablespace so moving tablespaces can be done with impunity. However, moving a tablespace to the `data_directory` is not recommended and may cause problems. For more information on moving tablespaces http://www.databasesoup.com/2013/11/moving-tablespaces.html is a good resource.
|
||||
```
|
||||
required: n
|
||||
example: --tablespace-map ts_01=/db/ts_01
|
||||
```
|
||||
|
||||
##### Example: Restore Latest
|
||||
|
||||
```
|
||||
/path/to/pg_backrest --stanza=db --type=name --target=release restore
|
||||
```
|
||||
Restores the latest database cluster backup and then recovers to the `release` restore point.
|
||||
|
||||
#### `info` command
|
||||
|
||||
Retrieve information about backups for a single stanza or for all stanzas. Text output is the default and gives a human-readable summary of backups for the stanza(s) requested. This format is subject to change with any release.
|
||||
|
||||
For machine-readable output use `--output=json`. The JSON output contains far more information than the text output, however **this feature is currently experimental so the format may change between versions**.
|
||||
|
||||
##### `output` option
|
||||
|
||||
The following output types are supported:
|
||||
|
||||
- `text` - Human-readable summary of backup information.
|
||||
- `json` - Exhaustive machine-readable backup information in JSON format.
|
||||
|
||||
```
|
||||
required: n
|
||||
default: text
|
||||
example: --output=json
|
||||
```
|
||||
|
||||
##### Example: Information for a single stanza
|
||||
|
||||
```
|
||||
/path/to/pg_backrest --stanza=db --output=json info
|
||||
```
|
||||
|
||||
Get information about backups in the `db` stanza.
|
||||
|
||||
##### Example: Information for all stanzas
|
||||
|
||||
```
|
||||
/path/to/pg_backrest --output=json info
|
||||
```
|
||||
|
||||
Get information about backups for all stanzas in the repository.
|
||||
@@ -24,8 +24,7 @@ use BackRest::Exception;
|
||||
use BackRest::File;
|
||||
use BackRest::Info;
|
||||
use BackRest::Lock;
|
||||
use BackRest::Protocol qw(DB BACKUP NONE);
|
||||
use BackRest::Remote;
|
||||
use BackRest::Protocol::RemoteMinion;
|
||||
use BackRest::Restore;
|
||||
use BackRest::ThreadGroup;
|
||||
use BackRest::Utility;
|
||||
@@ -73,11 +72,8 @@ eval
|
||||
log_level_set(OFF, OFF);
|
||||
|
||||
# Create the remote object
|
||||
my $oRemote = new BackRest::Remote
|
||||
my $oRemote = new BackRest::Protocol::RemoteMinion
|
||||
(
|
||||
undef, # Host
|
||||
undef, # User
|
||||
'remote', # Command
|
||||
optionGet(OPTION_BUFFER_SIZE),
|
||||
optionGet(OPTION_COMPRESS_LEVEL),
|
||||
optionGet(OPTION_COMPRESS_LEVEL_NETWORK)
|
||||
@@ -169,27 +165,24 @@ eval
|
||||
safe_exit(0);
|
||||
}
|
||||
|
||||
################################################################################################################################
|
||||
# GET MORE CONFIG INFO
|
||||
################################################################################################################################
|
||||
# Make sure backup and expire command happen on the backup side
|
||||
################################################################################################################################
|
||||
if (optionRemoteTypeTest(BACKUP))
|
||||
{
|
||||
confess &log(ERROR, 'backup and expire commands must run on the backup host');
|
||||
}
|
||||
|
||||
# Initialize the db object
|
||||
my $oDb;
|
||||
|
||||
################################################################################################################################
|
||||
# BACKUP
|
||||
################################################################################################################################
|
||||
if (commandTest(CMD_BACKUP))
|
||||
{
|
||||
$oDb = new BackRest::Db();
|
||||
|
||||
# Run backup_init - parameters required for backup and restore commands
|
||||
# Run backup_init - parameters required for backup commands
|
||||
backup_init
|
||||
(
|
||||
$oDb,
|
||||
$oFile,
|
||||
new BackRest::Db(),
|
||||
optionGet(OPTION_TYPE),
|
||||
optionGet(OPTION_COMPRESS),
|
||||
optionGet(OPTION_HARDLINK),
|
||||
@@ -198,13 +191,7 @@ eval
|
||||
optionGet(OPTION_NO_START_STOP),
|
||||
optionTest(OPTION_FORCE)
|
||||
);
|
||||
}
|
||||
|
||||
################################################################################################################################
|
||||
# BACKUP
|
||||
################################################################################################################################
|
||||
if (commandTest(CMD_BACKUP))
|
||||
{
|
||||
backup(optionGet(OPTION_DB_PATH), optionGet(OPTION_START_FAST));
|
||||
|
||||
commandSet(CMD_EXPIRE);
|
||||
@@ -215,14 +202,10 @@ eval
|
||||
################################################################################################################################
|
||||
if (commandTest(CMD_EXPIRE))
|
||||
{
|
||||
if (!defined($oDb))
|
||||
{
|
||||
backup_init
|
||||
(
|
||||
undef,
|
||||
$oFile
|
||||
);
|
||||
}
|
||||
backup_init
|
||||
(
|
||||
$oFile
|
||||
);
|
||||
|
||||
backup_expire
|
||||
(
|
||||
|
||||
486
doc/doc.pl
486
doc/doc.pl
@@ -12,14 +12,15 @@ use Carp qw(confess);
|
||||
|
||||
$SIG{__DIE__} = sub { Carp::confess @_ };
|
||||
|
||||
use Cwd qw(abs_path);
|
||||
use File::Basename qw(dirname);
|
||||
use Pod::Usage qw(pod2usage);
|
||||
use Getopt::Long qw(GetOptions);
|
||||
use Pod::Usage qw(pod2usage);
|
||||
use XML::Checker::Parser;
|
||||
|
||||
use lib dirname($0) . '/../lib';
|
||||
use BackRest::Utility;
|
||||
use BackRest::Config;
|
||||
use BackRest::Utility;
|
||||
|
||||
####################################################################################################################################
|
||||
# Usage
|
||||
@@ -38,6 +39,9 @@ doc.pl [options] [operation]
|
||||
|
||||
=cut
|
||||
|
||||
my $strProjectName = 'pgBackRest';
|
||||
my $strExeName = 'pg_backrest';
|
||||
|
||||
####################################################################################################################################
|
||||
# DOC_RENDER_TAG - render a tag to another markup language
|
||||
####################################################################################################################################
|
||||
@@ -59,8 +63,8 @@ my $oRenderTag =
|
||||
'setting' => ['`', '`'],
|
||||
'code' => ['`', '`'],
|
||||
'code-block' => ['```', '```'],
|
||||
'exe' => ['ERROR - EXE NOT SET', ''],
|
||||
'backrest' => ['ERROR - TITLE NOT SET', ''],
|
||||
'exe' => [$strExeName, ''],
|
||||
'backrest' => [$strProjectName, ''],
|
||||
'postgres' => ['PostgreSQL', '']
|
||||
},
|
||||
|
||||
@@ -345,73 +349,87 @@ sub doc_write
|
||||
close($hFile);
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# Load command line parameters and config
|
||||
####################################################################################################################################
|
||||
my $bHelp = false; # Display usage
|
||||
my $bVersion = false; # Display version
|
||||
my $bQuiet = false; # Sets log level to ERROR
|
||||
my $strLogLevel = 'info'; # Log level for tests
|
||||
|
||||
GetOptions ('help' => \$bHelp,
|
||||
'version' => \$bVersion,
|
||||
'quiet' => \$bQuiet,
|
||||
'log-level=s' => \$strLogLevel)
|
||||
or pod2usage(2);
|
||||
|
||||
# Display version and exit if requested
|
||||
if ($bHelp || $bVersion)
|
||||
sub doc_out_get
|
||||
{
|
||||
print 'pg_backrest ' . version_get() . " doc builder\n";
|
||||
my $oNode = shift;
|
||||
my $strName = shift;
|
||||
my $bRequired = shift;
|
||||
|
||||
if ($bHelp)
|
||||
foreach my $oChild (@{$$oNode{children}})
|
||||
{
|
||||
print "\n";
|
||||
pod2usage();
|
||||
if ($$oChild{name} eq $strName)
|
||||
{
|
||||
return $oChild;
|
||||
}
|
||||
}
|
||||
|
||||
exit 0;
|
||||
}
|
||||
|
||||
# Set console log level
|
||||
if ($bQuiet)
|
||||
{
|
||||
$strLogLevel = 'off';
|
||||
}
|
||||
|
||||
log_level_set(undef, uc($strLogLevel));
|
||||
|
||||
####################################################################################################################################
|
||||
# Load the doc file
|
||||
####################################################################################################################################
|
||||
# Initialize parser object and parse the file
|
||||
my $oParser = XML::Checker::Parser->new(ErrorContext => 2, Style => 'Tree');
|
||||
my $strFile = dirname($0) . '/doc.xml';
|
||||
my $oTree;
|
||||
|
||||
eval
|
||||
{
|
||||
local $XML::Checker::FAIL = sub
|
||||
if (!defined($bRequired) || $bRequired)
|
||||
{
|
||||
my $iCode = shift;
|
||||
confess "unable to find child node '${strName}' in node '$$oNode{name}'";
|
||||
}
|
||||
|
||||
die XML::Checker::error_string($iCode, @_);
|
||||
};
|
||||
|
||||
$oTree = $oParser->parsefile(dirname($0) . '/doc.xml');
|
||||
};
|
||||
|
||||
# Report any error that stopped parsing
|
||||
if ($@)
|
||||
{
|
||||
$@ =~ s/at \/.*?$//s; # remove module line number
|
||||
die "malformed xml in '$strFile}':\n" . trim($@);
|
||||
return undef;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# Build the document from xml
|
||||
####################################################################################################################################
|
||||
my $oDocIn = doc_parse(${$oTree}[0], ${$oTree}[1]);
|
||||
sub doc_option_list_process
|
||||
{
|
||||
my $oOptionListOut = shift;
|
||||
my $strOperation = shift;
|
||||
my $oOptionFoundRef = shift;
|
||||
my $oOptionRuleRef = shift;
|
||||
|
||||
foreach my $oOptionOut (@{$$oOptionListOut{children}})
|
||||
{
|
||||
my $strOption = $$oOptionOut{param}{id};
|
||||
|
||||
# if (defined($oOptionFound{$strOption}))
|
||||
# {
|
||||
# confess "option ${strOption} has already been found";
|
||||
# }
|
||||
|
||||
if ($strOption eq 'help' || $strOption eq 'version')
|
||||
{
|
||||
next;
|
||||
}
|
||||
|
||||
$$oOptionFoundRef{$strOption} = true;
|
||||
|
||||
if (!defined($$oOptionRuleRef{$strOption}{&OPTION_RULE_TYPE}))
|
||||
{
|
||||
confess "unable to find option $strOption";
|
||||
}
|
||||
|
||||
$$oOptionOut{field}{default} = optionDefault($strOption, $strOperation);
|
||||
|
||||
if (defined($$oOptionOut{field}{default}))
|
||||
{
|
||||
$$oOptionOut{field}{required} = false;
|
||||
|
||||
if ($$oOptionRuleRef{$strOption}{&OPTION_RULE_TYPE} eq &OPTION_TYPE_BOOLEAN)
|
||||
{
|
||||
$$oOptionOut{field}{default} = $$oOptionOut{field}{default} ? 'y' : 'n';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$$oOptionOut{field}{required} = optionRequired($strOption, $strOperation);
|
||||
}
|
||||
|
||||
if (defined($strOperation))
|
||||
{
|
||||
$$oOptionOut{field}{cmd} = true;
|
||||
}
|
||||
|
||||
if ($strOption eq 'cmd-remote')
|
||||
{
|
||||
$$oOptionOut{field}{default} = 'same as local';
|
||||
}
|
||||
|
||||
# &log(INFO, "operation " . (defined($strOperation) ? $strOperation : '[undef]') .
|
||||
# ", option ${strOption}, required $$oOptionOut{field}{required}" .
|
||||
# ", default " . (defined($$oOptionOut{field}{default}) ? $$oOptionOut{field}{default} : 'undef'));
|
||||
}
|
||||
}
|
||||
|
||||
sub doc_build
|
||||
{
|
||||
@@ -459,157 +477,6 @@ sub doc_build
|
||||
return $oOut;
|
||||
}
|
||||
|
||||
my $oDocOut = doc_build($oDocIn);
|
||||
|
||||
####################################################################################################################################
|
||||
# Build commands pulled from the code
|
||||
####################################################################################################################################
|
||||
# Get the option rules
|
||||
my $oOptionRule = optionRuleGet();
|
||||
my %oOptionFound;
|
||||
|
||||
sub doc_out_get
|
||||
{
|
||||
my $oNode = shift;
|
||||
my $strName = shift;
|
||||
my $bRequired = shift;
|
||||
|
||||
foreach my $oChild (@{$$oNode{children}})
|
||||
{
|
||||
if ($$oChild{name} eq $strName)
|
||||
{
|
||||
return $oChild;
|
||||
}
|
||||
}
|
||||
|
||||
if (!defined($bRequired) || $bRequired)
|
||||
{
|
||||
confess "unable to find child node '${strName}' in node '$$oNode{name}'";
|
||||
}
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
||||
sub doc_option_list_process
|
||||
{
|
||||
my $oOptionListOut = shift;
|
||||
my $strOperation = shift;
|
||||
|
||||
foreach my $oOptionOut (@{$$oOptionListOut{children}})
|
||||
{
|
||||
my $strOption = $$oOptionOut{param}{id};
|
||||
|
||||
# if (defined($oOptionFound{$strOption}))
|
||||
# {
|
||||
# confess "option ${strOption} has already been found";
|
||||
# }
|
||||
|
||||
if ($strOption eq 'help' || $strOption eq 'version')
|
||||
{
|
||||
next;
|
||||
}
|
||||
|
||||
$oOptionFound{$strOption} = true;
|
||||
|
||||
if (!defined($$oOptionRule{$strOption}{&OPTION_RULE_TYPE}))
|
||||
{
|
||||
confess "unable to find option $strOption";
|
||||
}
|
||||
|
||||
$$oOptionOut{field}{default} = optionDefault($strOption, $strOperation);
|
||||
|
||||
if (defined($$oOptionOut{field}{default}))
|
||||
{
|
||||
$$oOptionOut{field}{required} = false;
|
||||
|
||||
if ($$oOptionRule{$strOption}{&OPTION_RULE_TYPE} eq &OPTION_TYPE_BOOLEAN)
|
||||
{
|
||||
$$oOptionOut{field}{default} = $$oOptionOut{field}{default} ? 'y' : 'n';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$$oOptionOut{field}{required} = optionRequired($strOption, $strOperation);
|
||||
}
|
||||
|
||||
if (defined($strOperation))
|
||||
{
|
||||
$$oOptionOut{field}{cmd} = true;
|
||||
}
|
||||
|
||||
if ($strOption eq 'cmd-remote')
|
||||
{
|
||||
$$oOptionOut{field}{default} = 'same as local';
|
||||
}
|
||||
|
||||
# &log(INFO, "operation " . (defined($strOperation) ? $strOperation : '[undef]') .
|
||||
# ", option ${strOption}, required $$oOptionOut{field}{required}" .
|
||||
# ", default " . (defined($$oOptionOut{field}{default}) ? $$oOptionOut{field}{default} : 'undef'));
|
||||
}
|
||||
}
|
||||
|
||||
# Ouput general options
|
||||
my $oOperationGeneralOptionListOut = doc_out_get(doc_out_get(doc_out_get($oDocOut, 'operation'), 'operation-general'), 'option-list');
|
||||
doc_option_list_process($oOperationGeneralOptionListOut);
|
||||
|
||||
# Ouput commands
|
||||
my $oCommandListOut = doc_out_get(doc_out_get($oDocOut, 'operation'), 'command-list');
|
||||
|
||||
foreach my $oCommandOut (@{$$oCommandListOut{children}})
|
||||
{
|
||||
my $strOperation = $$oCommandOut{param}{id};
|
||||
|
||||
my $oOptionListOut = doc_out_get($oCommandOut, 'option-list', false);
|
||||
|
||||
if (defined($oOptionListOut))
|
||||
{
|
||||
doc_option_list_process($oOptionListOut, $strOperation);
|
||||
}
|
||||
|
||||
my $oExampleListOut = doc_out_get($oCommandOut, 'command-example-list');
|
||||
|
||||
foreach my $oExampleOut (@{$$oExampleListOut{children}})
|
||||
{
|
||||
if (defined($$oExampleOut{param}{title}))
|
||||
{
|
||||
$$oExampleOut{param}{title} = 'Example: ' . $$oExampleOut{param}{title};
|
||||
}
|
||||
else
|
||||
{
|
||||
$$oExampleOut{param}{title} = 'Example';
|
||||
}
|
||||
}
|
||||
|
||||
# $$oExampleListOut{param}{title} = 'Examples';
|
||||
}
|
||||
|
||||
# Ouput config section
|
||||
my $oConfigSectionListOut = doc_out_get(doc_out_get($oDocOut, 'config'), 'config-section-list');
|
||||
|
||||
foreach my $oConfigSectionOut (@{$$oConfigSectionListOut{children}})
|
||||
{
|
||||
my $oOptionListOut = doc_out_get($oConfigSectionOut, 'config-key-list', false);
|
||||
|
||||
if (defined($oOptionListOut))
|
||||
{
|
||||
doc_option_list_process($oOptionListOut);
|
||||
}
|
||||
}
|
||||
|
||||
# Mark undocumented features as processed
|
||||
$oOptionFound{'no-fork'} = true;
|
||||
$oOptionFound{'test'} = true;
|
||||
$oOptionFound{'test-delay'} = true;
|
||||
|
||||
# Make sure all options were processed
|
||||
foreach my $strOption (sort(keys($oOptionRule)))
|
||||
{
|
||||
if (!defined($oOptionFound{$strOption}))
|
||||
{
|
||||
confess "option ${strOption} was not found";
|
||||
}
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# Render the document
|
||||
####################################################################################################################################
|
||||
@@ -637,12 +504,6 @@ sub doc_render
|
||||
|
||||
if (defined($$oDoc{param}{title}))
|
||||
{
|
||||
if ($iDepth == 1)
|
||||
{
|
||||
$$oRenderTag{'markdown'}{'backrest'}[0] = $$oDoc{param}{title};
|
||||
$$oRenderTag{'markdown'}{'exe'}[0] = $$oDoc{param}{exe};
|
||||
}
|
||||
|
||||
$strBuffer = ('#' x $iDepth) . ' ';
|
||||
|
||||
if (defined($$oDoc{param}{version}))
|
||||
@@ -650,17 +511,30 @@ sub doc_render
|
||||
$strBuffer .= "v$$oDoc{param}{version}: ";
|
||||
}
|
||||
|
||||
$strBuffer .= $$oDoc{param}{title};
|
||||
}
|
||||
$strBuffer .= ($iDepth == 1 ? "${strProjectName} - " : '') . $$oDoc{param}{title};
|
||||
|
||||
if (defined($$oDoc{param}{subtitle}))
|
||||
{
|
||||
if (!defined($$oDoc{param}{subtitle}))
|
||||
if (defined($$oDoc{param}{date}))
|
||||
{
|
||||
confess "subtitle not valid without title";
|
||||
}
|
||||
my $strDate = $$oDoc{param}{date};
|
||||
|
||||
$strBuffer .= " - " . $$oDoc{param}{subtitle};
|
||||
if ($strDate !~ /^(XXXX-XX-XX)|([0-9]{4}-[0-9]{2}-[0-9]{2})$/)
|
||||
{
|
||||
confess "invalid date ${strDate}";
|
||||
}
|
||||
|
||||
if ($strDate =~ /^X/)
|
||||
{
|
||||
$strBuffer .= "\n__No Release Date Set__";
|
||||
}
|
||||
else
|
||||
{
|
||||
my @stryMonth = ('January', 'February', 'March', 'April', 'May', 'June',
|
||||
'July', 'August', 'September', 'October', 'November', 'December');
|
||||
|
||||
$strBuffer .= "\n__Released " . $stryMonth[(substr($strDate, 5, 2) - 1)] . ' ' .
|
||||
(substr($strDate, 8, 2) + 0) . ', ' . substr($strDate, 0, 4) . '__';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($strBuffer ne "")
|
||||
@@ -773,5 +647,161 @@ sub doc_render
|
||||
return $strBuffer;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# Load command line parameters and config
|
||||
####################################################################################################################################
|
||||
my $bHelp = false; # Display usage
|
||||
my $bVersion = false; # Display version
|
||||
my $bQuiet = false; # Sets log level to ERROR
|
||||
my $strLogLevel = 'info'; # Log level for tests
|
||||
|
||||
GetOptions ('help' => \$bHelp,
|
||||
'version' => \$bVersion,
|
||||
'quiet' => \$bQuiet,
|
||||
'log-level=s' => \$strLogLevel)
|
||||
or pod2usage(2);
|
||||
|
||||
# Display version and exit if requested
|
||||
if ($bHelp || $bVersion)
|
||||
{
|
||||
print 'pg_backrest ' . version_get() . " doc builder\n";
|
||||
|
||||
if ($bHelp)
|
||||
{
|
||||
print "\n";
|
||||
pod2usage();
|
||||
}
|
||||
|
||||
exit 0;
|
||||
}
|
||||
|
||||
# Set console log level
|
||||
if ($bQuiet)
|
||||
{
|
||||
$strLogLevel = 'off';
|
||||
}
|
||||
|
||||
log_level_set(undef, uc($strLogLevel));
|
||||
|
||||
my $strBasePath = abs_path(dirname($0));
|
||||
|
||||
sub doc_process
|
||||
{
|
||||
my $strXmlIn = shift;
|
||||
my $strMdOut = shift;
|
||||
my $bManual = shift;
|
||||
|
||||
####################################################################################################################################
|
||||
# Load the doc file
|
||||
####################################################################################################################################
|
||||
# Initialize parser object and parse the file
|
||||
my $oParser = XML::Checker::Parser->new(ErrorContext => 2, Style => 'Tree');
|
||||
$oParser->set_sgml_search_path("${strBasePath}/xml/dtd");
|
||||
|
||||
my $oTree;
|
||||
|
||||
eval
|
||||
{
|
||||
local $XML::Checker::FAIL = sub
|
||||
{
|
||||
my $iCode = shift;
|
||||
|
||||
die XML::Checker::error_string($iCode, @_);
|
||||
};
|
||||
|
||||
$oTree = $oParser->parsefile($strXmlIn);
|
||||
};
|
||||
|
||||
# Report any error that stopped parsing
|
||||
if ($@)
|
||||
{
|
||||
$@ =~ s/at \/.*?$//s; # remove module line number
|
||||
die "malformed xml in '${strXmlIn}':\n" . trim($@);
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# Build the document from xml
|
||||
####################################################################################################################################
|
||||
my $oDocIn = doc_parse(${$oTree}[0], ${$oTree}[1]);
|
||||
|
||||
my $oDocOut = doc_build($oDocIn);
|
||||
|
||||
####################################################################################################################################
|
||||
# Build commands pulled from the code
|
||||
####################################################################################################################################
|
||||
if ($bManual)
|
||||
{
|
||||
# Get the option rules
|
||||
my $oOptionRule = optionRuleGet();
|
||||
my %oOptionFound;
|
||||
|
||||
# Ouput general options
|
||||
my $oOperationGeneralOptionListOut = doc_out_get(doc_out_get(doc_out_get($oDocOut, 'operation'), 'operation-general'), 'option-list');
|
||||
doc_option_list_process($oOperationGeneralOptionListOut, undef, \%oOptionFound, $oOptionRule);
|
||||
|
||||
# Ouput commands
|
||||
my $oCommandListOut = doc_out_get(doc_out_get($oDocOut, 'operation'), 'command-list');
|
||||
|
||||
foreach my $oCommandOut (@{$$oCommandListOut{children}})
|
||||
{
|
||||
my $strOperation = $$oCommandOut{param}{id};
|
||||
|
||||
my $oOptionListOut = doc_out_get($oCommandOut, 'option-list', false);
|
||||
|
||||
if (defined($oOptionListOut))
|
||||
{
|
||||
doc_option_list_process($oOptionListOut, $strOperation, \%oOptionFound, $oOptionRule);
|
||||
}
|
||||
|
||||
my $oExampleListOut = doc_out_get($oCommandOut, 'command-example-list');
|
||||
|
||||
foreach my $oExampleOut (@{$$oExampleListOut{children}})
|
||||
{
|
||||
if (defined($$oExampleOut{param}{title}))
|
||||
{
|
||||
$$oExampleOut{param}{title} = 'Example: ' . $$oExampleOut{param}{title};
|
||||
}
|
||||
else
|
||||
{
|
||||
$$oExampleOut{param}{title} = 'Example';
|
||||
}
|
||||
}
|
||||
|
||||
# $$oExampleListOut{param}{title} = 'Examples';
|
||||
}
|
||||
|
||||
# Ouput config section
|
||||
my $oConfigSectionListOut = doc_out_get(doc_out_get($oDocOut, 'config'), 'config-section-list');
|
||||
|
||||
foreach my $oConfigSectionOut (@{$$oConfigSectionListOut{children}})
|
||||
{
|
||||
my $oOptionListOut = doc_out_get($oConfigSectionOut, 'config-key-list', false);
|
||||
|
||||
if (defined($oOptionListOut))
|
||||
{
|
||||
doc_option_list_process($oOptionListOut, undef, \%oOptionFound, $oOptionRule);
|
||||
}
|
||||
}
|
||||
|
||||
# Mark undocumented features as processed
|
||||
$oOptionFound{'no-fork'} = true;
|
||||
$oOptionFound{'test'} = true;
|
||||
$oOptionFound{'test-delay'} = true;
|
||||
|
||||
# Make sure all options were processed
|
||||
foreach my $strOption (sort(keys($oOptionRule)))
|
||||
{
|
||||
if (!defined($oOptionFound{$strOption}))
|
||||
{
|
||||
confess "option ${strOption} was not found";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Write markdown
|
||||
doc_write(dirname($0) . '/../README.md', doc_render($oDocOut, 'markdown', 1));
|
||||
doc_write($strMdOut, doc_render($oDocOut, 'markdown', 1));
|
||||
}
|
||||
|
||||
doc_process("${strBasePath}/xml/readme.xml", "${strBasePath}/../README.md", false);
|
||||
doc_process("${strBasePath}/xml/userguide.xml", "${strBasePath}/../USERGUIDE.md", true);
|
||||
doc_process("${strBasePath}/xml/changelog.xml", "${strBasePath}/../CHANGELOG.md", false);
|
||||
|
||||
1059
doc/doc.xml
1059
doc/doc.xml
File diff suppressed because it is too large
Load Diff
319
doc/xml/changelog.xml
Normal file
319
doc/xml/changelog.xml
Normal file
@@ -0,0 +1,319 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE doc SYSTEM "doc.dtd">
|
||||
<doc title="Change Log">
|
||||
<intro>
|
||||
<text></text>
|
||||
</intro>
|
||||
|
||||
<changelog>
|
||||
<changelog-release date="2015-08-09" version="0.80" title="DBI Support, Stability, and Convenience Features">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>Fixed an issue that caused the formatted timestamp for both the oldest and newest backups to be reported as the current time by the <cmd>info</cmd> command. Only <id>text</id> output was affected -- <id>json</id> output reported the correct epoch values. <i>Reported by Michael Renner</i>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Fixed protocol issue that was preventing ssh errors (especially on connection) from being logged.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Now using Perl <code>DBI</code> and <code>DBD::Pg</code> for connections to <postgres/> rather than <cmd>psql</cmd>. The <setting>cmd-psql</setting> and <setting>cmd-psql-option</setting> settings have been removed and replaced with <setting>db-port</setting> and <setting>db-socket-path</setting>. Follow the instructions in [Installation](USERGUIDE.md#installation) to install <code>DBD::Pg</code> on your operating system.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Add [stop-auto](USERGUIDE.md#stop-auto-key) option to allow failed backups to automatically be stopped when a new backup starts.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Add [db-timeout](USERGUIDE.md#db-timeout-key) option to limit the amount of time <backrest/> will wait for pg_start_backup() and pg_stop_backup() to return.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Remove <file>pg_control</file> file at the beginning of the restore and copy it back at the very end. This prevents the possibility that a partial restore can be started by <postgres/>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>The repository is now created and updated with consistent directory and file modes. By default <id>umask</id> is set to <id>0000</id> but this can be disabled with the <setting>neutral-umask</setting> setting.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Added checks to be sure the <setting>db-path</setting> setting is consistent with <setting>db-port</setting> by comparing the <setting>data_directory</setting> as reported by the cluster against the <setting>db-path</setting> setting and the version as reported by the cluster against the value read from <file>pg_control</file>. The <setting>db-socket-path</setting> setting is checked to be sure it is an absolute path.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Experimental support for <postgres/> 9.5 alpha1. This may break when the control version or WAL magic changes in future versions but will be updated in each <backrest/> release to keep pace. All regression tests pass except for <setting>--target-resume</setting> tests (this functionality has changed in 9.5) and there is no testing yet for <file>.partial</file> WAL segments.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Major refactoring of the protocol layer to support future development.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Added vagrant test configurations for Ubuntu 14.04 and CentOS 7.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Split most of <file>README.md</file> out into <file>USERGUIDE.md</file> and <file>CHANGELOG.md</file> because it was becoming unwieldy. Changed most references to "database" in the user guide to "database cluster" for clarity.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2015-07-13" version="0.78" title="Remove CPAN Dependencies, Stability Improvements">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>Removed dependency on CPAN packages for multi-threaded operation. While it might not be a bad idea to update the <code>threads</code> and <code>Thread::Queue</code> packages, it is no longer necessary.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Added vagrant test configurations for Ubuntu 12.04 and CentOS 6.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Modified wait backoff to use a Fibonacci rather than geometric sequence. This will make wait time grow less aggressively while still giving reasonable values.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>More options for regression tests and improved code to run in a variety of environments.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2015-06-30" version="0.77" title="CentOS/RHEL 6 Support and Protocol Improvements">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>Removed <file>pg_backrest_remote</file> and added the functionality to <file>pg_backrest</file> as the <cmd>remote</cmd> command.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Added file and directory syncs to the <code>File</code> object for additional safety during backup/restore and archiving. <i>Suggested by Andres Freund</i>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Support for Perl 5.10.1 and OpenSSH 5.3 which are default for CentOS/RHEL 6. <i>Reported by Eric Radman.</i></text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Improved error message when backup is run without <setting>archive_command</setting> set and without <setting>--no-archive-check</setting> specified. <i>Reported by Eric Radman</i>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Moved version number out of the <file>VERSION</file> file to <file>Version.pm</file> to better support packaging. <i>Suggested by Michael Renner</i>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Replaced <code>IPC::System::Simple</code> and <code>Net::OpenSSH</code> with <code>IPC::Open3</code> to eliminate CPAN dependency for multiple operating systems.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2015-06-14" version="0.75" title="New Repository Format, Info Command and Experimental 9.5 Support">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text><b>IMPORTANT NOTE</b>: This flag day release breaks compatibility with older versions of <backrest/>. The manifest format, on-disk structure, and the binary names have all changed. You must create a new repository to hold backups for this version of <backrest/> and keep your older repository for a time in case you need to do a restore. The <file>pg_backrest.conf</file> file has not changed but you'll need to change any references to <file>pg_backrest.pl</file> in cron (or elsewhere) to <file>pg_backrest</file> (without the <file>.pl</file> extension).</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Add <cmd>info</cmd> command.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>More efficient file ordering for <cmd>backup</cmd>. Files are copied in descending size order so a single thread does not end up copying a large file at the end. This had already been implemented for <cmd>restore</cmd>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Logging now uses unbuffered output. This should make log files that are being written by multiple threads less chaotic. <i>Suggested by Michael Renner</i>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Experimental support for <postgres/> 9.5. This may break when the control version or WAL magic changes but will be updated in each release.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2015-06-01" version="0.70" title="Stability Improvements for Archiving, Improved Logging and Help">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>Fixed an issue where <cmd>archive-copy</cmd> would fail on an incr/diff backup when <setting>hardlink=n</setting>. In this case the <path>pg_xlog</path> path does not already exist and must be created. <i>Reported by Michael Renner</i></text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Allow duplicate WAL segments to be archived when the checksum matches. This is necessary for some recovery scenarios.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Allow comments/disabling in <file>pg_backrest.conf</file> using the <id>#</id> character. Only <id>#</id> characters in the forst character of the line are honored. <i>Suggested by Michael Renner</i>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Better logging before <id>pg_start_backup()</id> to make it clear when the backup is waiting on a checkpoint. <i>Suggested by Michael Renner</i>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Various command behavior, help and logging fixes. <i>Reported by Michael Renner</i>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Fixed an issue in async archiving where <cmd>archive-push</cmd> was not properly returning 0 when <setting>archive-max-mb</setting> was reached and moved the async check after transfer to avoid having to remove the stop file twice. Also added unit tests for this case and improved error messages to make it clearer to the user what went wrong. <i>Reported by Michael Renner</i>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Fixed a locking issue that could allow multiple operations of the same type against a single stanza. This appeared to be benign in terms of data integrity but caused spurious errors while archiving and could lead to errors in backup/restore. <i>Reported by Michael Renner</i>.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Replaced <code>JSON</code> module with <code>JSON::PP</code> which ships with core Perl.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2015-05-11" version="0.65" title="Improved Resume and Restore Logging, Compact Restores">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>Better resume support. Resumed files are checked to be sure they have not been modified and the manifest is saved more often to preserve checksums as the backup progresses. More unit tests to verify each resume case.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Resume is now optional. Use the <setting>resume</setting> setting or <param>--no-resume</param> from the command line to disable.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>More info messages during restore. Previously, most of the restore messages were debug level so not a lot was output in the log.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Fixed an issue where an absolute path was not written into recovery.conf when the restore was run with a relative path.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Added <setting>tablespace</setting> setting to allow tablespaces to be restored into the <path>pg_tblspc</path> path. This produces compact restores that are convenient for development, staging, etc. Currently these restores cannot be backed up as <backrest/> expects only links in the <path>pg_tblspc</path> path.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2015-04-21" version="0.61" title="Bug Fix for Uncompressed Remote Destination">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>Fixed a buffering error that could occur on large, highly-compressible files when copying to an uncompressed remote destination. The error was detected in the decompression code and resulted in a failed backup rather than corruption so it should not affect successful backups made with previous versions.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2015-04-19" version="0.60" title="Better Version Support and WAL Improvements">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>Pushing duplicate WAL now generates an error. This worked before only if checksums were disabled.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Database System IDs are used to make sure that all WAL in an archive matches up. This should help prevent misconfigurations that send WAL from multiple clusters to the same archive.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Regression tests working back to <postgres/> 8.3.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Improved threading model by starting threads early and terminating them late.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2015-03-25" version="0.50" title="Restore and Much More">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>Added restore functionality.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>All options can now be set on the command-line making <file>pg_backrest.conf</file> optional.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>De/compression is now performed without threads and checksum/size is calculated in stream. That means file checksums are no longer optional.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Added option <param>--no-start-stop</param> to allow backups when Postgres is shut down. If <file>postmaster.pid</file> is present then <param>--force</param> is required to make the backup run (though if Postgres is running an inconsistent backup will likely be created). This option was added primarily for the purpose of unit testing, but there may be applications in the real world as well.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Fixed broken checksums and now they work with normal and resumed backups. Finally realized that checksums and checksum deltas should be functionally separated and this simplified a number of things. Issue #28 has been created for checksum deltas.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Fixed an issue where a backup could be resumed from an aborted backup that didn't have the same type and prior backup.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Removed dependency on <code>Moose</code>. It wasn't being used extensively and makes for longer startup times.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Checksum for <file>backup.manifest</file> to detect a corrupted/modified manifest.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Link <path>latest</path> always points to the last backup. This has been added for convenience and to make restores simpler.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>More comprehensive unit tests in all areas.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2014-10-05" version="0.30" title="Core Restructuring and Unit Tests">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>Complete rewrite of <code>BackRest::File</code> module to use a custom protocol for remote operations and Perl native GZIP and SHA operations. Compression is performed in threads rather than forked processes.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Fairly comprehensive unit tests for all the basic operations. More work to be done here for sure, but then there is always more work to be done on unit tests.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Removed dependency on <code>Storable</code> and replaced with a custom ini file implementation.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Added much needed documentation</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Numerous other changes that can only be identified with a diff.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2014-05-13" version="0.19" title="Improved Error Reporting/Handling">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>Working on improving error handling in the <code>File</code> object. This is not complete, but works well enough to find a few errors that have been causing us problems (notably, find is occasionally failing building the archive async manifest when system is under load).</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Found and squashed a nasty bug where <code>file_copy()</code> was defaulted to ignore errors. There was also an issue in <code>file_exists()</code> that was causing the test to fail when the file actually did exist. Together they could have resulted in a corrupt backup with no errors, though it is very unlikely.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2014-04-13" version="0.18" title="Return Soft Error When Archive Missing">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>The <cmd>archive-get</cmd> command returns a 1 when the archive file is missing to differentiate from hard errors (ssh connection failure, file copy error, etc.) This lets <postgres/> know that that the archive stream has terminated normally. However, this does not take into account possible holes in the archive stream.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2014-04-03" version="0.17" title="Warn When Archive Directories Cannot Be Deleted">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>If an archive directory which should be empty could not be deleted backrest was throwing an error. There's a good fix for that coming, but for the time being it has been changed to a warning so processing can continue. This was impacting backups as sometimes the final archive file would not get pushed if the first archive file had been in a different directory (plus some bad luck).</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2014-04-01" version="0.16" title="RequestTTY=yes for SSH Sessions">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>Added <setting>RequestTTY=yes</setting> to ssh sessions. Hoping this will prevent random lockups.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2014-03-29" version="0.15" title="Added archive-get">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>Added <cmd>archive-get</cmd> functionality to aid in restores.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Added option to force a checkpoint when starting the backup, <setting>start-fast=y</setting>.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2014-03-26" version="0.11" title="Minor Fixes">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>Removed <setting>master_stderr_discard</setting> option on database SSH connections. There have been occasional lockups and they could be related to issues originally seen in the file code.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Changed lock file conflicts on <cmd>backup</cmd> and <cmd>expire</cmd> commands to <id>ERROR</id>. They were set to <id>DEBUG</id> due to a copy-and-paste from the archive locks.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
|
||||
<changelog-release date="2014-03-05" version="0.10" title="Backup and Archiving are Functional">
|
||||
<release-feature-bullet-list>
|
||||
<release-feature>
|
||||
<text>No restore functionality, but the backup directories are consistent <postgres/> data directories. You'll need to either uncompress the files or turn off compression in the backup. Uncompressed backups on a ZFS (or similar) filesystem are a good option because backups can be restored locally via a snapshot to create logical backups or do spot data recovery.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Archiving is single-threaded. This has not posed an issue on our multi-terabyte databases with heavy write volume. Recommend a large WAL volume or to use the async option with a large volume nearby.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Backups are multi-threaded, but the <code>Net::OpenSSH</code> library does not appear to be 100% thread-safe so it will very occasionally lock up on a thread. There is an overall process timeout that resolves this issue by killing the process. Yes, very ugly.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Checksums are lost on any resumed backup. Only the final backup will record checksum on multiple resumes. Checksums from previous backups are correctly recorded and a full backup will reset everything.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>The <file>backup.manifest</file> is being written as <code>Storable</code> because <code>Config::IniFile</code> does not seem to handle large files well. Would definitely like to save these as human-readable text.</text>
|
||||
</release-feature>
|
||||
<release-feature>
|
||||
<text>Absolutely no documentation (outside the code). Well, excepting these release notes.</text>
|
||||
</release-feature>
|
||||
</release-feature-bullet-list>
|
||||
</changelog-release>
|
||||
</changelog>
|
||||
</doc>
|
||||
@@ -1,10 +1,11 @@
|
||||
<!ELEMENT doc (intro, install, config, operation, release, recognition)>
|
||||
<!ELEMENT doc ((intro, changelog)|(intro, start, contribute, support, recognition)|(intro, install, config, operation))>
|
||||
<!ATTLIST doc title CDATA #REQUIRED>
|
||||
<!ATTLIST doc exe CDATA #REQUIRED>
|
||||
<!ATTLIST doc subtitle CDATA #REQUIRED>
|
||||
|
||||
<!ELEMENT intro (text)>
|
||||
|
||||
<!ELEMENT start (text)>
|
||||
<!ATTLIST start title CDATA #REQUIRED>
|
||||
|
||||
<!ELEMENT install (text, install-system-list)>
|
||||
<!ATTLIST install title CDATA #REQUIRED>
|
||||
|
||||
@@ -60,22 +61,26 @@
|
||||
<!ELEMENT allow (#PCDATA)>
|
||||
<!ELEMENT example (#PCDATA)>
|
||||
|
||||
<!ELEMENT release (text?, release-version-list)>
|
||||
<!ATTLIST release title CDATA #REQUIRED>
|
||||
<!ELEMENT changelog (text?, changelog-release+)>
|
||||
|
||||
<!ELEMENT release-version-list (release-version+)>
|
||||
|
||||
<!ELEMENT release-version (text?, release-feature-bullet-list)>
|
||||
<!ATTLIST release-version version CDATA #REQUIRED>
|
||||
<!ATTLIST release-version title CDATA #REQUIRED>
|
||||
<!ELEMENT changelog-release (text?, release-feature-bullet-list)>
|
||||
<!ATTLIST changelog-release date CDATA #REQUIRED>
|
||||
<!ATTLIST changelog-release version CDATA #REQUIRED>
|
||||
<!ATTLIST changelog-release title CDATA #REQUIRED>
|
||||
|
||||
<!ELEMENT release-feature-bullet-list (release-feature+)>
|
||||
|
||||
<!ELEMENT release-feature (text)>
|
||||
|
||||
<!ELEMENT contribute (text)>
|
||||
<!ATTLIST contribute title CDATA #REQUIRED>
|
||||
|
||||
<!ELEMENT recognition (text)>
|
||||
<!ATTLIST recognition title CDATA #REQUIRED>
|
||||
|
||||
<!ELEMENT support (text)>
|
||||
<!ATTLIST support title CDATA #REQUIRED>
|
||||
|
||||
<!ELEMENT text (#PCDATA|b|i|bi|ul|ol|id|code|code-block|file|path|cmd|param|setting|exe|backrest|postgres)*>
|
||||
<!ELEMENT i (#PCDATA)>
|
||||
<!ELEMENT b (#PCDATA)>
|
||||
67
doc/xml/readme.xml
Normal file
67
doc/xml/readme.xml
Normal file
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE doc SYSTEM "doc.dtd">
|
||||
<doc title="Simple Postgres Backup & Restore">
|
||||
<intro>
|
||||
<text><backrest/> aims to be a simple backup and restore system that can seamlessly scale up to the largest databases and workloads.
|
||||
|
||||
Primary <backrest/> features:
|
||||
<ul>
|
||||
<li>Local or remote backup</li>
|
||||
<li>Multi-threaded backup/restore for performance</li>
|
||||
<li>Checksums</li>
|
||||
<li>Safe backups (checks that logs required for consistency are present before backup completes)</li>
|
||||
<li>Full, differential, and incremental backups</li>
|
||||
<li>Backup rotation (and minimum retention rules with optional separate retention for archive)</li>
|
||||
<li>In-stream compression/decompression</li>
|
||||
<li>Archiving and retrieval of logs for replicas/restores built in</li>
|
||||
<li>Async archiving for very busy systems (including space limits)</li>
|
||||
<li>Backup directories are consistent <postgres/> clusters (when hardlinks are on and compression is off)</li>
|
||||
<li>Tablespace support</li>
|
||||
<li>Restore delta option</li>
|
||||
<li>Restore using timestamp/size or checksum</li>
|
||||
<li>Restore remapping base/tablespaces</li>
|
||||
<li>Support for <postgres/> >= 8.3</li>
|
||||
</ul>
|
||||
Instead of relying on traditional backup tools like tar and rsync, <backrest/> implements all backup features internally and uses a custom protocol for communicating with remote systems. Removing reliance on tar and rsync allows for better solutions to database-specific backup issues. The custom remote protocol limits the types of connections that are required to perform a backup which increases security.
|
||||
|
||||
<backrest/> uses the gitflow model of development. This means that the master branch contains only the release history, i.e. each commit represents a single release and release tags are always from the master branch. The dev branch contains a single commit for each feature or fix and more accurately depicts the development history. Actual development is done on feature (dev_*) branches and squashed into dev after regression tests have passed. In this model dev is considered stable and can be released at any time. As such, the dev branch does not have any special version modifiers.</text>
|
||||
</intro>
|
||||
|
||||
<start title="Getting Started">
|
||||
<text><backrest/> strives to be easy to configure and operate:
|
||||
|
||||
* [Installation instructions](USERGUIDE.md#installation) for major operating systems.
|
||||
|
||||
* [Sample configurations](USERGUIDE.md#examples) that cover most basic use cases.
|
||||
|
||||
* [Command guide](USERGUIDE.md#commands) for command-line operations.
|
||||
|
||||
* [Settings documentation](USERGUIDE.md#setttings) for creating complex configurations and more detail on options.</text>
|
||||
</start>
|
||||
|
||||
<contribute title="Contributing">
|
||||
<text>Contributions to <backrest/> are always welcome!
|
||||
|
||||
Code fixes or new features can be submitted via pull requests. Ideas for new features and improvements to existing functionality or documentation can be [submitted as issues](http://github.com/pgmasters/backrest/issues).
|
||||
|
||||
Bug reports should be [submitted as issues](http://github.com/pgmasters/backrest/issues). Please provide as much information as possible to aid in determining the cause of the problem.
|
||||
|
||||
You will always receive credit in the [change log](https://github.com/pgmasters/backrest/blob/master/CHANGELOG.md) for your contributions.</text>
|
||||
</contribute>
|
||||
|
||||
<support title="Support">
|
||||
<text><backrest/> is completely free and open source under the [MIT](https://github.com/pgmasters/backrest/blob/master/LICENSE) license. You may use it for personal or commercial purposes without any restrictions whatsoever. Bug reports are taken very seriously and will be addressed as quickly as possible.
|
||||
|
||||
Creating a robust disaster recovery policy with proper replication and backup strategies can be a very complex and daunting task. You may find that you need help during the architecture phase and ongoing support to ensure that your enterprise continues running smoothly.
|
||||
|
||||
[Crunchy Data](http://www.crunchydatasolutions.com) provides packaged versions of <backrest/> for major operating systems and expert full life-cycle commercial support for <backrest/> and all things <postgres/>. [Crunchy Data](http://www.crunchydatasolutions.com) is committed to providing open source solutions with no vendor lock-in so cross-compatibility with the community version of <backrest/> is always strictly maintained.
|
||||
|
||||
Please visit [Crunchy Backup Manager](http://crunchydatasolutions.com/crunchy-backup-manager) for more information.</text>
|
||||
</support>
|
||||
|
||||
<recognition title="Recognition">
|
||||
<text>Primary recognition goes to Stephen Frost for all his valuable advice and criticism during the development of <backrest/>.
|
||||
|
||||
[Crunchy Data](http://www.crunchydatasolutions.com) has contributed significant time and resources to <backrest/> and continues to actively support development. [Resonate](http://www.resonate.com) also contributed to the development of <backrest/> and allowed early (but well tested) versions to be installed as their primary <postgres/> backup solution.</text>
|
||||
</recognition>
|
||||
</doc>
|
||||
760
doc/xml/userguide.xml
Normal file
760
doc/xml/userguide.xml
Normal file
@@ -0,0 +1,760 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE doc SYSTEM "doc.dtd">
|
||||
<doc title="User Guide">
|
||||
<intro>
|
||||
<text></text>
|
||||
</intro>
|
||||
|
||||
<install title="Installation">
|
||||
<text><backrest/> is written entirely in Perl. Some additional modules will need to be installed depending on the OS.</text>
|
||||
|
||||
<install-system-list>
|
||||
<install-system title="Ubuntu 12.04/14.04 Setup">
|
||||
<text>* Install required Perl modules:
|
||||
<code-block>
|
||||
apt-get install libdbd-pg-perl
|
||||
</code-block></text>
|
||||
</install-system>
|
||||
|
||||
<install-system title="CentOS 6 Setup">
|
||||
<text>* Install Perl and required modules:
|
||||
<code-block>
|
||||
yum install perl perl-Time-HiRes perl-IO-String perl-parent perl-JSON perl-Digest-SHA perl-DBD-Pg
|
||||
</code-block></text>
|
||||
</install-system>
|
||||
|
||||
<install-system title="CentOS 7 Setup">
|
||||
<text>* Install Perl and required modules:
|
||||
<code-block>
|
||||
yum install perl perl-IO-String perl-Thread-Queue perl-JSON-PP perl-Digest-SHA perl-DBD-Pg
|
||||
</code-block></text>
|
||||
</install-system>
|
||||
|
||||
<install-system title="Software Installation">
|
||||
<text><backrest/> can be installed by downloading the most recent release:
|
||||
|
||||
https://github.com/pgmasters/backrest/releases
|
||||
|
||||
<backrest/> can be installed anywhere but it's best (though not required) to install it in the same location on all systems.</text>
|
||||
</install-system>
|
||||
|
||||
<install-system title="Regression Test Setup">
|
||||
<text>* Create the backrest user
|
||||
|
||||
The backrest user must be created on the same system and in the same group as the user you will use for testing (which can be any user you prefer). For example:
|
||||
<code-block>
|
||||
adduser -g <test-user-group> backrest
|
||||
</code-block>
|
||||
* Setup password-less SSH login between the test user and the backrest user
|
||||
|
||||
The test user should be able to `ssh backrest@127.0.0.1` and the backrest user should be able to `ssh <testuser>@127.0.0.1` without requiring any passwords. This article (http://archive.oreilly.com/pub/h/66) has details on how to accomplish this. Do the logons both ways at the command line before running regression tests.
|
||||
|
||||
* Give group read and execute permissions to <path>~/backrest/test</path>:
|
||||
|
||||
Usually this can be accomplished by running the following as the test user:
|
||||
<code-block>
|
||||
chmod 750 ~
|
||||
</code-block>
|
||||
* Running regression:
|
||||
|
||||
Running the full regression suite is generally not necessary. Run the following first:
|
||||
<code-block>
|
||||
./test.pl --module=backup --test=full --db-version=all --thread-max=<# threads>
|
||||
</code-block>
|
||||
This will run full backup/restore regression with a variety of options on all installed versions of <postgres/>. If you are only interested in one version then modify the <setting>db-version</setting> setting to X.X (e.g. 9.4). <setting>--thread-max</setting> can be omitted if you are running single-threaded.
|
||||
|
||||
If there are errors in this test then run full regression to help isolate problems:
|
||||
<code-block>
|
||||
./test.pl --db-version=all --thread-max=<# threads>
|
||||
</code-block>
|
||||
Report regression test failures at https://github.com/pgmasters/backrest/issues.</text>
|
||||
</install-system>
|
||||
</install-system-list>
|
||||
</install>
|
||||
|
||||
<config title="Configuration">
|
||||
<text><backrest/> can be used entirely with command-line parameters but a configuration file is more practical for installations that are complex or set a lot of options. The default location for the configuration file is <file>/etc/pg_backrest.conf</file>.
|
||||
|
||||
Each system where <backrest/> is installed should have a repository owned by the user that will be running <backrest/> on that system. Normally this will be the <id>postgres</id> user on a database server and the <id>backrest</id> user on a backup server. See [repo-path](USERGUIDE.md#repo-path-key) for more information on how repositories are used.</text>
|
||||
|
||||
<config-example-list title="Examples">
|
||||
<config-example title="Confguring Postgres for Archiving">
|
||||
<text>Modify the following settings in <file>postgresql.conf</file>:
|
||||
<code-block>
|
||||
wal_level = archive
|
||||
archive_mode = on
|
||||
archive_command = '/path/to/backrest/bin/<exe/> --stanza=db archive-push %p'
|
||||
</code-block>
|
||||
Replace the path with the actual location where <backrest/> was installed. The stanza parameter should be changed to the actual stanza name for your database cluster.</text>
|
||||
</config-example>
|
||||
|
||||
<config-example title="Minimal Configuration">
|
||||
<text>The absolute minimum required to run <backrest/> (if all defaults are accepted) is the database cluster path.
|
||||
|
||||
<file>/etc/pg_backrest.conf</file>:
|
||||
<code-block>
|
||||
[main]
|
||||
db-path=/data/db
|
||||
</code-block>
|
||||
The <setting>db-path</setting> option could also be provided on the command line, but it's best to use a configuration file as options tend to pile up quickly.</text>
|
||||
</config-example>
|
||||
|
||||
<config-example title="Simple Single Host Configuration">
|
||||
<text>This configuration is appropriate for a small installation where backups are being made locally or to a remote file system that is mounted locally. A number of additional options are set:
|
||||
<ul>
|
||||
<li><setting>db-port</setting> - Custom port for <postgres/>.</li>
|
||||
<li><setting>compress</setting> - Disable compression (handy if the file system is already compressed).</li>
|
||||
<li><setting>repo-path</setting> - Path to the <backrest/> repository where backups and WAL archive are stored.</li>
|
||||
<li><setting>log-level-file</setting> - Set the file log level to debug (Lots of extra info if something is not working as expected).</li>
|
||||
<li><setting>hardlink</setting> - Create hardlinks between backups (but never between full backups).</li>
|
||||
<li><setting>thread-max</setting> - Use 2 threads for backup/restore operations.</li>
|
||||
</ul>
|
||||
<file>/etc/pg_backrest.conf</file>:
|
||||
<code-block>
|
||||
[global:general]
|
||||
compress=n
|
||||
repo-path=/path/to/db/repo
|
||||
|
||||
[global:log]
|
||||
log-level-file=debug
|
||||
|
||||
[global:backup]
|
||||
hardlink=y
|
||||
thread-max=2
|
||||
|
||||
[main]
|
||||
db-path=/data/db
|
||||
db-port=5555
|
||||
</code-block></text>
|
||||
</config-example>
|
||||
|
||||
<config-example title="Simple Multiple Host Configuration">
|
||||
<text>This configuration is appropriate for a small installation where backups are being made remotely. Make sure that postgres@db-host has trusted ssh to backrest@backup-host and vice versa. This configuration assumes that you have <exe/> in the same path on both servers.
|
||||
|
||||
<file>/etc/pg_backrest.conf</file> on the db host:
|
||||
<code-block>
|
||||
[global:general]
|
||||
repo-path=/path/to/db/repo
|
||||
repo-remote-path=/path/to/backup/repo
|
||||
|
||||
[global:backup]
|
||||
backup-host=backup.mydomain.com
|
||||
backup-user=backrest
|
||||
|
||||
[global:archive]
|
||||
archive-async=y
|
||||
|
||||
[main]
|
||||
db-path=/data/db
|
||||
</code-block>
|
||||
<file>/etc/pg_backrest.conf</file> on the backup host:
|
||||
<code-block>
|
||||
[global:general]
|
||||
repo-path=/path/to/backup/repo
|
||||
|
||||
[main]
|
||||
db-host=db.mydomain.com
|
||||
db-path=/data/db
|
||||
db-user=postgres
|
||||
</code-block></text>
|
||||
</config-example>
|
||||
</config-example-list>
|
||||
|
||||
<config-section-list title="Setttings">
|
||||
<!-- CONFIG - COMMAND SECTION -->
|
||||
<config-section id="command">
|
||||
<text>The <setting>command</setting> section defines the location of external commands that are used by <backrest/>.</text>
|
||||
|
||||
<config-key-list>
|
||||
<!-- CONFIG - COMMAND SECTION - CMD-REMOTE KEY -->
|
||||
<config-key id="cmd-remote">
|
||||
<text>Defines the location of <cmd>pg_backrest_remote.pl</cmd>.
|
||||
|
||||
Required only if the path to <cmd>pg_backrest_remote.pl</cmd> is different on the local and remote systems. If not defined, the remote path will be assumed to be the same as the local path.</text>
|
||||
|
||||
<default>same as local</default>
|
||||
<example>/usr/lib/backrest/bin/pg_backrest_remote.pl</example>
|
||||
</config-key>
|
||||
</config-key-list>
|
||||
</config-section>
|
||||
|
||||
<!-- CONFIG - LOG -->
|
||||
<config-section id="log">
|
||||
<text>The <setting>log</setting> section defines logging-related settings. The following log levels are supported:
|
||||
<ul>
|
||||
<li><id>off</id> - No logging at all (not recommended)</li>
|
||||
<li><id>error</id> - Log only errors</li>
|
||||
<li><id>warn</id> - Log warnings and errors</li>
|
||||
<li><id>info</id> - Log info, warnings, and errors</li>
|
||||
<li><id>debug</id> - Log debug, info, warnings, and errors</li>
|
||||
<li><id>trace</id> - Log trace (very verbose debugging), debug, info, warnings, and errors</li>
|
||||
</ul></text>
|
||||
|
||||
<!-- CONFIG - LOG SECTION - LEVEL-FILE KEY -->
|
||||
<config-key-list>
|
||||
<config-key id="log-level-file">
|
||||
<text>Sets file log level.</text>
|
||||
|
||||
<example>debug</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - LOG SECTION - LEVEL-CONSOLE KEY -->
|
||||
<config-key id="log-level-console">
|
||||
<text>Sets console log level.</text>
|
||||
|
||||
<example>error</example>
|
||||
</config-key>
|
||||
</config-key-list>
|
||||
</config-section>
|
||||
|
||||
<!-- CONFIG - GENERAL -->
|
||||
<config-section id="general">
|
||||
<text>The <setting>general</setting> section defines settings that are shared between multiple operations.</text>
|
||||
|
||||
<!-- CONFIG - GENERAL SECTION - BUFFER-SIZE KEY -->
|
||||
<config-key-list>
|
||||
<config-key id="buffer-size">
|
||||
<text>Set the buffer size used for copy, compress, and uncompress functions. A maximum of 3 buffers will be in use at a time per thread. An additional maximum of 256K per thread may be used for zlib buffers.</text>
|
||||
|
||||
<allow>16384 - 8388608</allow>
|
||||
<example>32768</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - GENERAL SECTION - COMPRESS -->
|
||||
<config-key id="compress">
|
||||
<text>Enable gzip compression. Backup files are compatible with command-line gzip tools.</text>
|
||||
|
||||
<example>n</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - GENERAL SECTION - COMPRESS-LEVEL KEY -->
|
||||
<config-key id="compress-level">
|
||||
<text>Sets the zlib level to be used for file compression when <setting>compress=y</setting>.</text>
|
||||
|
||||
<allow>0-9</allow>
|
||||
<example>9</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - GENERAL SECTION - COMPRESS-LEVEL-NETWORK KEY -->
|
||||
<config-key id="compress-level-network">
|
||||
<text>Sets the zlib level to be used for protocol compression when <setting>compress=n</setting> and the database cluster is not on the same host as the backup. Protocol compression is used to reduce network traffic but can be disabled by setting <setting>compress-level-network=0</setting>. When <setting>compress=y</setting> the <setting>compress-level-network</setting> setting is ignored and <setting>compress-level</setting> is used instead so that the file is only compressed once. SSH compression is always disabled.</text>
|
||||
|
||||
<allow>0-9</allow>
|
||||
<example>1</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - GENERAL SECTION - NEUTRAL-UMASK -->
|
||||
<config-key id="neutral-umask">
|
||||
<text>Sets the umask to 0000 so modes in the repository as created in a sensible way. The default directory mode is 0750 and default file mode is 0640. The lock and log directories set the directory and file mode to 0770 and 0660 respectively.
|
||||
|
||||
To use the executing user's umask instead specify <setting>neutral-umask=n</setting> in the config file or <setting>--no-neutral-umask</setting> on the command line.</text>
|
||||
|
||||
<example>n</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - GENERAL SECTION - REPO-PATH KEY -->
|
||||
<config-key id="repo-path">
|
||||
<text>Path to the backrest repository where WAL segments, backups, logs, etc are stored.
|
||||
|
||||
The repository serves as both storage and working area for pgBackRest. In a simple installation where the backups are stored locally to the database server there will be only one repository which will contain everything: backups, archives, logs, locks, etc.
|
||||
|
||||
If the backups are being done remotely then the backup server's repository will contain backups, archives, locks and logs while the database server's repository will contain only locks and logs. However, if asynchronous archving is enabled then the database server's repository will also contain a spool directory for archive logs that have not yet been pushed to the remote repository.
|
||||
|
||||
Each system where <backrest/> is installed should have a repository directory configured. Storage requirements vary based on usage. The main backup repository will need the most space as it contains both backups and WAL segments for whatever retention you have specified. The database repository only needs significant space if asynchronous archiving is enabled and then it will act as an overflow for WAL segments and might need to be large depending on your database activity.
|
||||
|
||||
If you are new to backup then it will be difficult to estimate in advance how much space you'll need. The best thing to do it take some backups then record the size of different types of backups (full/incr/diff) and measure the amount of WAL generated per day. This will give you a general idea of how much space you'll need, though of course requirements will change over time as your database evolves.
|
||||
</text>
|
||||
|
||||
<example>/data/db/backrest</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - GENERAL SECTION - REPO-REMOTE-PATH KEY -->
|
||||
<config-key id="repo-remote-path">
|
||||
<text>Path to the remote backrest repository where WAL segments, backups, logs, etc are stored.
|
||||
|
||||
The remote repository is relative to the current installation of <backrest/>. On a database server the backup server will be remote and visa versa for the backup server where the database server will be remote. This option is only required if the remote repository is in a different location than the local repository.</text>
|
||||
|
||||
<example>/backup/backrest</example>
|
||||
</config-key>
|
||||
</config-key-list>
|
||||
</config-section>
|
||||
|
||||
<!-- CONFIG - BACKUP -->
|
||||
<config-section id="backup">
|
||||
<text>The <setting>backup</setting> section defines settings related to backup.</text>
|
||||
|
||||
<!-- CONFIG - BACKUP SECTION - BACKUP-HOST KEY -->
|
||||
<config-key-list>
|
||||
<config-key id="backup-host">
|
||||
<text>Sets the backup host when backup up remotely via SSH. Make sure that trusted SSH authentication is configured between the db host and the backup host.
|
||||
|
||||
When backing up to a locally mounted network filesystem this setting is not required.</text>
|
||||
|
||||
<example>backup.domain.com</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - BACKUP SECTION - BACKUP-USER KEY -->
|
||||
<config-key id="backup-user">
|
||||
<text>Sets user account on the backup host.</text>
|
||||
|
||||
<example>backrest</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - BACKUP SECTION - DB-TIMEOUT KEY -->
|
||||
<config-key id="db-timeout">
|
||||
<text>Sets the timeout for operations against the database during the backup. This includes the <code>pg_start_backup()</code> and <code>pg_stop_backup()</code> functions which can each take a substantial amount of time. Because of this the timeout should be kept high unless you know that these functions will return quickly (i.e. if you have set <setting>startfast=y</setting> and you know that the database cluster will not generate many WAL segments during the backup).</text>
|
||||
|
||||
<example>600</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - BACKUP SECTION - STOP-AUTO -->
|
||||
<config-key id="stop-auto">
|
||||
<text>Automatically stops a prior failed backup when a new backup is run. This will only be done if an exclusive advisory lock can be acquired to demonstrate that the prior failed backup process has really stopped.
|
||||
|
||||
This feature relies on pg_is_in_backup() so only works on <postgres/> >= <id>9.3</id>.
|
||||
|
||||
The setting is disabled by default because it assumes that <backrest/> is the only process doing exclusive online backups. It depends on an advisory lock that only <backrest/> sets so it may abort other processes that do exclusive online backups. Note that <cmd>base_backup</cmd> and <cmd>pg_dump</cmd> are safe to use with this setting because they do not call <code>pg_start_backup()</code> so are not exclusive.
|
||||
</text>
|
||||
|
||||
<example>y</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - BACKUP SECTION - START-FAST -->
|
||||
<config-key id="start-fast">
|
||||
<text>Forces a checkpoint (by passing <id>true</id> to the <id>fast</id> parameter of <code>pg_start_backup()</code>) so the backup begins immediately. Otherwise the backup will start after the next regular checkpoint.
|
||||
|
||||
This feature only works in <postgres/> <= <id>8.3</id>.</text>
|
||||
|
||||
<example>y</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - BACKUP SECTION - HARDLINK -->
|
||||
<config-key id="hardlink">
|
||||
<text>Enable hard-linking of files in differential and incremental backups to their full backups. This gives the appearance that each backup is a full backup. Be careful, though, because modifying files that are hard-linked can affect all the backups in the set.</text>
|
||||
|
||||
<example>y</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - BACKUP SECTION - MANIFEST-SAVE-THRESHOLD -->
|
||||
<config-key id="manifest-save-threshold">
|
||||
<text>Defines how often the manifest will be saved during a backup (in bytes). Saving the manifest is important because it stores the checksums and allows the resume function to work efficiently. The actual threshold used is 1% of the backup size or <setting>manifest-save-threshold</setting>, whichever is greater.</text>
|
||||
|
||||
<example>5368709120</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - BACKUP SECTION - RESUME -->
|
||||
<config-key id="resume">
|
||||
<text>Defines whether the resume feature is enabled. Resume can greatly reduce the amount of time required to run a backup after a previous backup of the same type has failed. It adds complexity, however, so it may be desirable to disable in environments that do not require the feature.</text>
|
||||
|
||||
<example>false</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - BACKUP SECTION - THEAD-MAX -->
|
||||
<config-key id="thread-max">
|
||||
<text>Defines the number of threads to use for backup or restore. Each thread will perform compression and transfer to make the backup run faster, but don't set <setting>thread-max</setting> so high that it impacts database performance during backup.</text>
|
||||
|
||||
<example>4</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - BACKUP SECTION - THEAD-TIMEOUT -->
|
||||
<config-key id="thread-timeout">
|
||||
<text>Maximum amount of time (in seconds) that a backup thread should run. This limits the amount of time that a thread might be stuck due to unforeseen issues during the backup. Has no affect when <setting>thread-max=1</setting>.</text>
|
||||
|
||||
<example>3600</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - BACKUP SECTION - ARCHIVE-CHECK -->
|
||||
<config-key id="archive-check">
|
||||
<text>Checks that all WAL segments required to make the backup consistent are present in the WAL archive. It's a good idea to leave this as the default unless you are using another method for archiving.</text>
|
||||
|
||||
<example>n</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - BACKUP SECTION - ARCHIVE-COPY -->
|
||||
<config-key id="archive-copy">
|
||||
<text>Store WAL segments required to make the backup consistent in the backup's pg_xlog path. This slightly paranoid option protects against corruption or premature expiration in the WAL segment archive. PITR won't be possible without the WAL segment archive and this option also consumes more space.
|
||||
|
||||
Even though WAL segments will be restored with the backup, <postgres/> will ignore them if a <file>recovery.conf</file> file exists and instead use <setting>archive_command</setting> to fetch WAL segments. Specifying <setting>type=none</setting> when restoring will not create <file>recovery.conf</file> and force <postgres/> to use the WAL segments in pg_xlog. This will get the database cluster to a consistent state.</text>
|
||||
|
||||
<example>y</example>
|
||||
</config-key>
|
||||
</config-key-list>
|
||||
</config-section>
|
||||
|
||||
<!-- CONFIG - ARCHIVE -->
|
||||
<config-section id="archive">
|
||||
<text>The <setting>archive</setting> section defines parameters when doing async archiving. This means that the archive files will be stored locally, then a background process will pick them and move them to the backup.</text>
|
||||
|
||||
<config-key-list>
|
||||
<!-- CONFIG - ARCHIVE SECTION - ARCHIVE-ASYNC KEY -->
|
||||
<config-key id="archive-async">
|
||||
<text>Archive WAL segments asynchronously. WAL segments will be copied to the local repo, then a process will be forked to compress the segment and transfer it to the remote repo if configured. Control will be returned to <postgres/> as soon as the WAL segment is copied locally.</text>
|
||||
|
||||
<example>y</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - ARCHIVE SECTION - ARCHIVE-MAX-MB KEY -->
|
||||
<config-key id="archive-max-mb">
|
||||
<text>Limits the amount of archive log that will be written locally when <setting>archive-async=y</setting>. After the limit is reached, the following will happen:
|
||||
<ol>
|
||||
<li><backrest/> will notify Postgres that the archive was successfully backed up, then DROP IT.</li>
|
||||
<li>An error will be logged to the console and also to the Postgres log.</li>
|
||||
<li>A stop file will be written in the lock directory and no more archive files will be backed up until it is removed.</li>
|
||||
</ol>
|
||||
If this occurs then the archive log stream will be interrupted and PITR will not be possible past that point. A new backup will be required to regain full restore capability.
|
||||
|
||||
The purpose of this feature is to prevent the log volume from filling up at which point Postgres will stop completely. Better to lose the backup than have <postgres/> go down.
|
||||
|
||||
To start normal archiving again you'll need to remove the stop file which will be located at <file>${repo-path}/lock/${stanza}-archive.stop</file> where <code>${repo-path}</code> is the path set in the <setting>general</setting> section, and <code>${stanza}</code> is the backup stanza.</text>
|
||||
|
||||
<example>1024</example>
|
||||
</config-key>
|
||||
</config-key-list>
|
||||
</config-section>
|
||||
|
||||
<!-- CONFIG - RESTORE -->
|
||||
<config-section id="restore">
|
||||
<text>The <setting>restore</setting> section defines settings used for restoring backups.</text>
|
||||
|
||||
<config-key-list>
|
||||
<!-- CONFIG - RESTORE SECTION - TABLESPACE KEY -->
|
||||
<config-key id="tablespace">
|
||||
<text>Defines whether tablespaces will be be restored into their original (or remapped) locations or stored directly under the <path>pg_tblspc</path> path. Disabling this setting produces compact restores that are convenient for development, staging, etc. Currently these restores cannot be backed up as <backrest/> expects only links in the <path>pg_tblspc</path> path. If no tablespaces are present this this setting has no effect.</text>
|
||||
|
||||
<example>n</example>
|
||||
</config-key>
|
||||
</config-key-list>
|
||||
</config-section>
|
||||
|
||||
<!-- CONFIG - EXPIRE -->
|
||||
<config-section id="expire">
|
||||
<text>The <setting>expire</setting> section defines how long backups will be retained. Expiration only occurs when the number of complete backups exceeds the allowed retention. In other words, if full-retention is set to 2, then there must be 3 complete backups before the oldest will be expired. Make sure you always have enough space for retention + 1 backups.</text>
|
||||
|
||||
<!-- CONFIG - RETENTION SECTION - FULL-RETENTION KEY -->
|
||||
<config-key-list>
|
||||
<config-key id="retention-full">
|
||||
<text>Number of full backups to keep. When a full backup expires, all differential and incremental backups associated with the full backup will also expire. When not defined then all full backups will be kept.</text>
|
||||
|
||||
<example>2</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - RETENTION SECTION - DIFFERENTIAL-RETENTION KEY -->
|
||||
<config-key id="retention-diff">
|
||||
<text>Number of differential backups to keep. When a differential backup expires, all incremental backups associated with the differential backup will also expire. When not defined all differential backups will be kept.</text>
|
||||
|
||||
<example>3</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - RETENTION SECTION - ARCHIVE-RETENTION-TYPE KEY -->
|
||||
<config-key id="retention-archive-type">
|
||||
<text>Type of backup to use for archive retention (full or differential). If set to full, then <backrest/> will keep archive logs for the number of full backups defined by <setting>retention-archive</setting>. If set to differential, then <backrest/> will keep archive logs for the number of differential backups defined by <setting>retention-archive</setting>.
|
||||
|
||||
If not defined then archive logs will be kept indefinitely. In general it is not useful to keep archive logs that are older than the oldest backup, but there may be reasons for doing so.</text>
|
||||
|
||||
<example>diff</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - RETENTION SECTION - ARCHIVE-RETENTION KEY -->
|
||||
<config-key id="retention-archive">
|
||||
<text>Number of backups worth of archive log to keep. If this is set less than your backup retention then be sure you set <setting>archive-copy=y</setting> or you won't be able to restore some older backups.
|
||||
|
||||
For example, if <setting>retention-archive=2</setting> and <setting>retention-full=4</setting>, then any backups older than the most recent two full backups will not have WAL segments in the archive to make them consistent. To solve this, set <setting>archive-copy=y</setting> and use <setting>type=none</setting> when restoring. This issue will be addressed in a future release but for now be careful with this setting.</text>
|
||||
|
||||
<example>2</example>
|
||||
</config-key>
|
||||
</config-key-list>
|
||||
</config-section>
|
||||
|
||||
<!-- CONFIG - STANZA -->
|
||||
<config-section id="stanza">
|
||||
<text>A stanza defines the backup configuration for a specific <postgres/> database cluster. The stanza section must define the database cluster path and host/user if the database cluster is remote. Also, any global configuration sections can be overridden to define stanza-specific settings.</text>
|
||||
|
||||
<!-- CONFIG - RETENTION SECTION - DB-HOST KEY -->
|
||||
<config-key-list>
|
||||
<config-key id="db-host">
|
||||
<text>Define the database cluster host. Used for backups where the database cluster host is different from the backup host.</text>
|
||||
|
||||
<example>db.domain.com</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - RETENTION SECTION - DB-USER KEY -->
|
||||
<config-key id="db-user">
|
||||
<text>Defines the logon user when <setting>db-host</setting> is defined. This user will also own the remote <backrest/> process and will initiate connections to <postgres/>. For this to work correctly the user should be the <postgres/> database cluster owner which is generally <id>postgres</id>, the default.</text>
|
||||
|
||||
<example>test_user</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - RETENTION SECTION - DB-PATH KEY -->
|
||||
<config-key id="db-path">
|
||||
<text>Path to the db data directory (data_directory setting in postgresql.conf).</text>
|
||||
|
||||
<example>/data/db</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - RETENTION SECTION - DB-PORT KEY -->
|
||||
<config-key id="db-port">
|
||||
<text>Port that <postgres/> is running on. This usually does not need to be specified as most database clusters run on the default port.</text>
|
||||
|
||||
<example>6543</example>
|
||||
</config-key>
|
||||
|
||||
<!-- CONFIG - RETENTION SECTION - DB-SOCKET-PATH KEY -->
|
||||
<config-key id="db-socket-path">
|
||||
<text>The unix socket directory that was specified when <postgres/> was started. <backrest/> will automatically look in the standard location for your OS so there usually no need to specify this setting unless the socket directory was explicily modified with the <setting>unix_socket_directory</setting> setting in <file>postgressql.conf</file>.</text>
|
||||
|
||||
<example>/var/run/postgresql</example>
|
||||
</config-key>
|
||||
</config-key-list>
|
||||
</config-section>
|
||||
</config-section-list>
|
||||
</config>
|
||||
|
||||
<operation title="Commands">
|
||||
<operation-general title="General Options">
|
||||
<text>These options are either global or used by all commands.</text>
|
||||
|
||||
<option-list>
|
||||
<!-- OPERATION - GENERAL - CONFIG OPTION -->
|
||||
<option id="config">
|
||||
<text>By default <backrest/> expects the its configuration file to be located at `/etc/pg_backrest.conf`. Use this option to specify another location.</text>
|
||||
|
||||
<example>/var/lib/backrest/pg_backrest.conf</example>
|
||||
</option>
|
||||
|
||||
<!-- OPERATION - GENERAL - STANZA OPTION -->
|
||||
<option id="stanza">
|
||||
<text>Defines the stanza for the command. A stanza is the configuration for a <postgres/> database cluster that defines where it is located, how it will be backed up, archiving options, etc. Most db servers will only have one Postgres database cluster and therefore one stanza, whereas backup servers will have a stanza for every database cluster that needs to be backed up.
|
||||
|
||||
Examples of how to configure a stanza can be found in the `configuration examples` section.</text>
|
||||
|
||||
<example>main</example>
|
||||
</option>
|
||||
|
||||
<!-- OPERATION - GENERAL - HELP OPTION -->
|
||||
<option id="help">
|
||||
<text>Displays the <backrest/> help.</text>
|
||||
</option>
|
||||
|
||||
<!-- OPERATION - GENERAL - VERSION OPTION -->
|
||||
<option id="version">
|
||||
<text>Displays the <backrest/> version.</text>
|
||||
</option>
|
||||
</option-list>
|
||||
</operation-general>
|
||||
|
||||
<command-list title="Commands">
|
||||
<!-- OPERATION - BACKUP COMMAND -->
|
||||
<command id="backup">
|
||||
<text>Perform a database cluster backup. <backrest/> does not have a built-in scheduler so it's best to run it from cron or some other scheduling mechanism.</text>
|
||||
|
||||
<option-list>
|
||||
<!-- OPERATION - BACKUP COMMAND - TYPE OPTION -->
|
||||
<option id="type">
|
||||
<text>The following backup types are supported:
|
||||
<ul>
|
||||
<li><id>full</id> - all database cluster files will be copied and there will be no dependencies on previous backups.</li>
|
||||
<li><id>incr</id> - incremental from the last successful backup.</li>
|
||||
<li><id>diff</id> - like an incremental backup but always based on the last full backup.</li>
|
||||
</ul></text>
|
||||
|
||||
<example>full</example>
|
||||
</option>
|
||||
|
||||
<!-- OPERATION - BACKUP COMMAND - NO-START-STOP OPTION -->
|
||||
<option id="no-start-stop">
|
||||
<text>This option prevents <backrest/> from running <code>pg_start_backup()</code> and <code>pg_stop_backup()</code> on the database cluster. In order for this to work <postgres/> should be shut down and <backrest/> will generate an error if it is not.
|
||||
|
||||
The purpose of this option is to allow cold backups. The <path>pg_xlog</path> directory is copied as-is and <setting>archive-check</setting> is automatically disabled for the backup.</text>
|
||||
</option>
|
||||
|
||||
<!-- OPERATION - BACKUP COMMAND - FORCE OPTION -->
|
||||
<option id="force">
|
||||
<text>When used with <param>--no-start-stop</param> a backup will be run even if <backrest/> thinks that <postgres/> is running. <b>This option should be used with extreme care as it will likely result in a bad backup.</b>
|
||||
|
||||
There are some scenarios where a backup might still be desirable under these conditions. For example, if a server crashes and the database cluster volume can only be mounted read-only, it would be a good idea to take a backup even if <file>postmaster.pid</file> is present. In this case it would be better to revert to the prior backup and replay WAL, but possibly there is a very important transaction in a WAL segment that did not get archived.</text>
|
||||
</option>
|
||||
</option-list>
|
||||
|
||||
<command-example-list>
|
||||
<command-example title="Full Backup">
|
||||
<text><code-block>
|
||||
/path/to/<exe/> --stanza=db --type=full backup
|
||||
</code-block>
|
||||
Run a <id>full</id> backup on the <id>db</id> stanza. <param>--type</param> can also be set to <id>incr</id> or <id>diff</id> for incremental or differential backups. However, if no <id>full</id> backup exists then a <id>full</id> backup will be forced even if <id>incr</id> or <id>diff</id> is requested.</text>
|
||||
</command-example>
|
||||
</command-example-list>
|
||||
</command>
|
||||
|
||||
<!-- OPERATION - ARCHIVE-PUSH COMMAND -->
|
||||
<command id="archive-push">
|
||||
<text>Archive a WAL segment to the repository.</text>
|
||||
|
||||
<command-example-list>
|
||||
<command-example>
|
||||
<text><code-block>
|
||||
/path/to/<exe/> --stanza=db archive-push %p
|
||||
</code-block>
|
||||
Accepts a WAL segment from <postgres/> and archives it in the repository defined by <setting>repo-path</setting>. <param>%p</param> is how <postgres/> specifies the location of the WAL segment to be archived.</text>
|
||||
</command-example>
|
||||
</command-example-list>
|
||||
</command>
|
||||
|
||||
<!-- OPERATION - ARCHIVE-GET COMMAND -->
|
||||
<command id="archive-get">
|
||||
<text>Get a WAL segment from the repository.</text>
|
||||
|
||||
<command-example-list>
|
||||
<command-example>
|
||||
<text><code-block>
|
||||
/path/to/<exe/> --stanza=db archive-get %f %p
|
||||
</code-block>
|
||||
Retrieves a WAL segment from the repository. This command is used in <file>recovery.conf</file> to restore a backup, perform PITR, or as an alternative to streaming for keeping a replica up to date. <param>%f</param> is how <postgres/> specifies the WAL segment it needs and <param>%p</param> is the location where it should be copied.</text>
|
||||
</command-example>
|
||||
</command-example-list>
|
||||
</command>
|
||||
|
||||
<!-- OPERATION - EXPIRE COMMAND -->
|
||||
<command id="expire">
|
||||
<text><backrest/> does backup rotation, but is not concerned with when the backups were created. So if two full backups are configured for retention, <backrest/> will keep two full backups no matter whether they occur, two hours apart or two weeks apart.</text>
|
||||
|
||||
<command-example-list>
|
||||
<command-example>
|
||||
<text><code-block>
|
||||
/path/to/<exe/> --stanza=db expire
|
||||
</code-block>
|
||||
Expire (rotate) any backups that exceed the defined retention. Expiration is run automatically after every successful backup, so there is no need to run this command separately unless you have reduced retention, usually to free up some space.</text>
|
||||
</command-example>
|
||||
</command-example-list>
|
||||
</command>
|
||||
|
||||
<!-- OPERATION - RESTORE COMMAND -->
|
||||
<command id="restore">
|
||||
<text>Perform a database cluster restore. This command is generally run manually, but there are instances where it might be automated.</text>
|
||||
<option-list>
|
||||
<!-- OPERATION - RESTORE COMMAND - SET OPTION -->
|
||||
<option id="set">
|
||||
<text>The backup set to be restored. <id>latest</id> will restore the latest backup, otherwise provide the name of the backup to restore.</text>
|
||||
<example>20150131-153358F_20150131-153401I</example>
|
||||
</option>
|
||||
|
||||
<!-- OPERATION - RESTORE COMMAND - DELTA OPTION -->
|
||||
<option id="delta">
|
||||
<text>By default the <postgres/> data and tablespace directories are expected to be present but empty. This option performs a delta restore using checksums.</text>
|
||||
</option>
|
||||
|
||||
<!-- OPERATION - RESTORE COMMAND - FORCE OPTION -->
|
||||
<option id="force">
|
||||
<text>By itself this option forces the <postgres/> data and tablespace paths to be completely overwritten. In combination with <param>--delta</param> a timestamp/size delta will be performed instead of using checksums.</text>
|
||||
</option>
|
||||
|
||||
<!-- OPERATION - RESTORE COMMAND - TYPE OPTION -->
|
||||
<option id="type">
|
||||
<text>The following recovery types are supported:
|
||||
<ul>
|
||||
<li><id>default</id> - recover to the end of the archive stream.</li>
|
||||
<li><id>name</id> - recover the restore point specified in <param>--target</param>.</li>
|
||||
<li><id>xid</id> - recover to the transaction id specified in <param>--target</param>.</li>
|
||||
<li><id>time</id> - recover to the time specified in <param>--target</param>.</li>
|
||||
<li><id>preserve</id> - preserve the existing <file>recovery.conf</file> file.</li>
|
||||
<li><id>none</id> - no <file>recovery.conf</file> file is written so <postgres/> will attempt to achieve consistency using WAL segments present in <path>pg_xlog</path>. Provide the required WAL segments or use the <setting>archive-copy</setting> setting to include them with the backup.</li>
|
||||
</ul></text>
|
||||
<example>xid</example>
|
||||
</option>
|
||||
|
||||
<!-- OPERATION - RESTORE COMMAND - TARGET OPTION -->
|
||||
<option id="target">
|
||||
<text>Defines the recovery target when <param>--type</param> is <id>name</id>, <id>xid</id>, or <id>time</id>.</text>
|
||||
<example>2015-01-30 14:15:11 EST</example>
|
||||
</option>
|
||||
|
||||
<!-- OPERATION - RESTORE COMMAND - TARGET-EXCLUSIVE OPTION -->
|
||||
<option id="target-exclusive">
|
||||
<text>Defines whether recovery to the target would be exclusive (the default is inclusive) and is only valid when <param>--type</param> is <id>time</id> or <id>xid</id>. For example, using <param>--target-exclusive</param> would exclude the contents of transaction <id>1007</id> when <param>--type=xid</param> and <param>--target=1007</param>. See <param>recovery_target_inclusive</param> option in the <postgres/> docs for more information.</text>
|
||||
</option>
|
||||
|
||||
<!-- OPERATION - RESTORE COMMAND - TARGET-RESUME OPTION -->
|
||||
<option id="target-resume">
|
||||
<text>Specifies whether recovery should resume when the recovery target is reached. See <setting>pause_at_recovery_target</setting> in the <postgres/> docs for more information.</text>
|
||||
</option>
|
||||
|
||||
<!-- OPERATION - RESTORE COMMAND - TARGET-TIMELINE OPTION -->
|
||||
<option id="target-timeline">
|
||||
<text>Recovers along the specified timeline. See <setting>recovery_target_timeline</setting> in the <postgres/> docs for more information.</text>
|
||||
<example>3</example>
|
||||
</option>
|
||||
|
||||
<!-- OPERATION - RESTORE COMMAND - RECOVERY-SETTING OPTION -->
|
||||
<option id="recovery-setting">
|
||||
<text>Recovery settings in recovery.conf options can be specified with this option. See http://www.postgresql.org/docs/X.X/static/recovery-config.html for details on recovery.conf options (replace X.X with your <postgres/> version). This option can be used multiple times.
|
||||
|
||||
Note: <setting>restore_command</setting> will be automatically generated but can be overridden with this option. Be careful about specifying your own <setting>restore_command</setting> as <backrest/> is designed to handle this for you. Target Recovery options (recovery_target_name, recovery_target_time, etc.) are generated automatically by <backrest/> and should not be set with this option.
|
||||
|
||||
Recovery settings can also be set in the <setting>restore:recovery-setting</setting> section of pg_backrest.conf. For example:
|
||||
<code-block>
|
||||
[restore:recovery-setting]
|
||||
primary_conn_info=db.mydomain.com
|
||||
standby_mode=on
|
||||
</code-block>
|
||||
Since <backrest/> does not start <postgres/> after writing the <file>recovery.conf</file> file, it is always possible to edit/check <file>recovery.conf</file> before manually restarting.</text>
|
||||
<example>primary_conninfo=db.mydomain.com</example>
|
||||
</option>
|
||||
|
||||
<!-- OPERATION - RESTORE COMMAND - TABLESPACE-MAP OPTION -->
|
||||
<option id="tablespace-map">
|
||||
<text>Moves a tablespace to a new location during the restore. This is useful when tablespace locations are not the same on a replica, or an upgraded system has different mount points.
|
||||
|
||||
Since <postgres/> 9.2 tablespace locations are not stored in pg_tablespace so moving tablespaces can be done with impunity. However, moving a tablespace to the <setting>data_directory</setting> is not recommended and may cause problems. For more information on moving tablespaces http://www.databasesoup.com/2013/11/moving-tablespaces.html is a good resource.</text>
|
||||
<example>ts_01=/db/ts_01</example>
|
||||
</option>
|
||||
</option-list>
|
||||
|
||||
<command-example-list>
|
||||
<command-example title="Restore Latest">
|
||||
<text><code-block>
|
||||
/path/to/<exe/> --stanza=db --type=name --target=release restore
|
||||
</code-block>
|
||||
Restores the latest database cluster backup and then recovers to the <id>release</id> restore point.</text>
|
||||
</command-example>
|
||||
</command-example-list>
|
||||
</command>
|
||||
|
||||
<!-- OPERATION - INFO COMMAND -->
|
||||
<command id="info">
|
||||
<text>Retrieve information about backups for a single stanza or for all stanzas. Text output is the default and gives a human-readable summary of backups for the stanza(s) requested. This format is subject to change with any release.
|
||||
|
||||
For machine-readable output use <setting>--output=json</setting>. The JSON output contains far more information than the text output, however <b>this feature is currently experimental so the format may change between versions</b>.</text>
|
||||
|
||||
<option-list>
|
||||
<!-- OPERATION - INFO COMMAND - OUTPUT OPTION -->
|
||||
<option id="output">
|
||||
<text>The following output types are supported:
|
||||
<ul>
|
||||
<li><id>text</id> - Human-readable summary of backup information.</li>
|
||||
<li><id>json</id> - Exhaustive machine-readable backup information in JSON format.</li>
|
||||
</ul></text>
|
||||
|
||||
<example>json</example>
|
||||
</option>
|
||||
</option-list>
|
||||
|
||||
<command-example-list>
|
||||
<command-example title="Information for a single stanza">
|
||||
<text><code-block>
|
||||
/path/to/<exe/> --stanza=db --output=json info
|
||||
</code-block>
|
||||
|
||||
Get information about backups in the <id>db</id> stanza.</text>
|
||||
</command-example>
|
||||
|
||||
<command-example title="Information for all stanzas">
|
||||
<text><code-block>
|
||||
/path/to/<exe/> --output=json info
|
||||
</code-block>
|
||||
|
||||
Get information about backups for all stanzas in the repository.</text>
|
||||
</command-example>
|
||||
</command-example-list>
|
||||
</command>
|
||||
</command-list>
|
||||
</operation>
|
||||
</doc>
|
||||
@@ -18,7 +18,7 @@ use BackRest::Exception;
|
||||
use BackRest::File;
|
||||
use BackRest::Ini;
|
||||
use BackRest::Lock;
|
||||
use BackRest::Protocol;
|
||||
#use BackRest::Protocol::Protocol;
|
||||
use BackRest::Utility;
|
||||
|
||||
####################################################################################################################################
|
||||
@@ -331,7 +331,7 @@ sub getCheck
|
||||
|
||||
if ($oFile->is_remote(PATH_BACKUP_ARCHIVE))
|
||||
{
|
||||
$strArchiveId = $oFile->{oProtocol}->command_execute(OP_ARCHIVE_GET_CHECK, undef, true);
|
||||
$strArchiveId = $oFile->{oProtocol}->cmdExecute(OP_ARCHIVE_GET_CHECK, undef, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -554,10 +554,10 @@ sub pushCheck
|
||||
$oParamHash{'db-sys-id'} = $ullDbSysId;
|
||||
|
||||
# Output remote trace info
|
||||
&log(TRACE, "${strOperation}: remote (" . $oFile->{oProtocol}->command_param_string(\%oParamHash) . ')');
|
||||
&log(TRACE, "${strOperation}: remote (" . $oFile->{oProtocol}->commandParamString(\%oParamHash) . ')');
|
||||
|
||||
# Execute the command
|
||||
my $strResult = $oFile->{oProtocol}->command_execute($strOperation, \%oParamHash, true);
|
||||
my $strResult = $oFile->{oProtocol}->cmdExecute($strOperation, \%oParamHash, true);
|
||||
|
||||
$strArchiveId = (split("\t", $strResult))[0];
|
||||
$strChecksum = (split("\t", $strResult))[1];
|
||||
|
||||
@@ -58,7 +58,7 @@ sub new
|
||||
my $strArchiveClusterPath = shift; # Backup cluster path
|
||||
my $bRequired = shift; # Is archive info required?
|
||||
|
||||
logDebug(OP_ARCHIVE_INFO_NEW, DEBUG_CALL, undef, {archiveClusterPath => $strArchiveClusterPath});
|
||||
logDebug(OP_ARCHIVE_INFO_NEW, DEBUG_CALL, undef, {archiveClusterPath => \$strArchiveClusterPath});
|
||||
|
||||
# Build the archive info path/file name
|
||||
my $strArchiveInfoFile = "${strArchiveClusterPath}/" . ARCHIVE_INFO_FILE;
|
||||
|
||||
@@ -46,8 +46,8 @@ my $iThreadTimeout;
|
||||
####################################################################################################################################
|
||||
sub backup_init
|
||||
{
|
||||
my $oDbParam = shift;
|
||||
my $oFileParam = shift;
|
||||
my $oDbParam = shift;
|
||||
my $strTypeParam = shift;
|
||||
my $bCompressParam = shift;
|
||||
my $bHardLinkParam = shift;
|
||||
@@ -56,8 +56,8 @@ sub backup_init
|
||||
my $bNoStartStopParam = shift;
|
||||
my $bForceParam = shift;
|
||||
|
||||
$oDb = $oDbParam;
|
||||
$oFile = $oFileParam;
|
||||
$oDb = $oDbParam;
|
||||
$strType = $strTypeParam;
|
||||
$bCompress = $bCompressParam;
|
||||
$bHardLink = $bHardLinkParam;
|
||||
@@ -560,9 +560,9 @@ sub backup
|
||||
$bNoStartStop || optionGet(OPTION_BACKUP_ARCHIVE_CHECK));
|
||||
|
||||
# Database info
|
||||
my ($strDbVersion, $iControlVersion, $iCatalogVersion, $ullDbSysId) = $oDb->info($oFile, $strDbClusterPath);
|
||||
my ($fDbVersion, $iControlVersion, $iCatalogVersion, $ullDbSysId) = $oDb->info($oFile, $strDbClusterPath);
|
||||
|
||||
$oBackupManifest->set(MANIFEST_SECTION_BACKUP_DB, MANIFEST_KEY_DB_VERSION, undef, $strDbVersion);
|
||||
$oBackupManifest->set(MANIFEST_SECTION_BACKUP_DB, MANIFEST_KEY_DB_VERSION, undef, $fDbVersion);
|
||||
$oBackupManifest->setNumeric(MANIFEST_SECTION_BACKUP_DB, MANIFEST_KEY_CONTROL, undef, $iControlVersion);
|
||||
$oBackupManifest->setNumeric(MANIFEST_SECTION_BACKUP_DB, MANIFEST_KEY_CATALOG, undef, $iCatalogVersion);
|
||||
$oBackupManifest->setNumeric(MANIFEST_SECTION_BACKUP_DB, MANIFEST_KEY_SYSTEM_ID, undef, $ullDbSysId);
|
||||
@@ -595,14 +595,15 @@ sub backup
|
||||
my $strTimestampDbStart;
|
||||
|
||||
($strArchiveStart, $strTimestampDbStart) =
|
||||
$oDb->backup_start(BACKREST_EXE . ' backup started ' . timestamp_string_get(undef, $lTimestampStart), $bStartFast);
|
||||
$oDb->backupStart($oFile, $strDbClusterPath, BACKREST_EXE . ' backup started ' .
|
||||
timestamp_string_get(undef, $lTimestampStart), $bStartFast);
|
||||
|
||||
$oBackupManifest->set(MANIFEST_SECTION_BACKUP, MANIFEST_KEY_ARCHIVE_START, undef, $strArchiveStart);
|
||||
&log(INFO, "archive start: ${strArchiveStart}");
|
||||
}
|
||||
|
||||
# Build the backup manifest
|
||||
my $oTablespaceMap = $bNoStartStop ? undef : $oDb->tablespace_map_get();
|
||||
my $oTablespaceMap = $bNoStartStop ? undef : $oDb->tablespaceMapGet();
|
||||
|
||||
$oBackupManifest->build($oFile, $strDbClusterPath, $oLastManifest, $bNoStartStop, $oTablespaceMap);
|
||||
&log(TEST, TEST_MANIFEST_BUILD);
|
||||
@@ -712,7 +713,7 @@ sub backup
|
||||
if (!$bNoStartStop)
|
||||
{
|
||||
my $strTimestampDbStop;
|
||||
($strArchiveStop, $strTimestampDbStop) = $oDb->backup_stop();
|
||||
($strArchiveStop, $strTimestampDbStop) = $oDb->backupStop();
|
||||
|
||||
$oBackupManifest->set(MANIFEST_SECTION_BACKUP, MANIFEST_KEY_ARCHIVE_STOP, undef, $strArchiveStop);
|
||||
|
||||
@@ -734,7 +735,7 @@ sub backup
|
||||
&log(DEBUG, "retrieving archive logs ${strArchiveStart}:${strArchiveStop}");
|
||||
my $oArchive = new BackRest::Archive();
|
||||
my $strArchiveId = $oArchive->getCheck($oFile);
|
||||
my @stryArchive = $oArchive->range($strArchiveStart, $strArchiveStop, $oDb->versionGet() < 9.3);
|
||||
my @stryArchive = $oArchive->range($strArchiveStart, $strArchiveStop, $fDbVersion < 9.3);
|
||||
|
||||
foreach my $strArchive (@stryArchive)
|
||||
{
|
||||
|
||||
@@ -15,6 +15,8 @@ use Getopt::Long qw(GetOptions);
|
||||
use lib dirname($0) . '/../lib';
|
||||
use BackRest::Exception;
|
||||
use BackRest::Ini;
|
||||
use BackRest::Protocol::Common;
|
||||
use BackRest::Protocol::RemoteMaster;
|
||||
use BackRest::Utility;
|
||||
|
||||
####################################################################################################################################
|
||||
@@ -152,9 +154,11 @@ use constant
|
||||
# Command-line/conf file options
|
||||
# GENERAL Section
|
||||
OPTION_BUFFER_SIZE => 'buffer-size',
|
||||
OPTION_DB_TIMEOUT => 'db-timeout',
|
||||
OPTION_COMPRESS => 'compress',
|
||||
OPTION_COMPRESS_LEVEL => 'compress-level',
|
||||
OPTION_COMPRESS_LEVEL_NETWORK => 'compress-level-network',
|
||||
OPTION_NEUTRAL_UMASK => 'neutral-umask',
|
||||
OPTION_REPO_PATH => 'repo-path',
|
||||
OPTION_REPO_REMOTE_PATH => 'repo-remote-path',
|
||||
OPTION_THREAD_MAX => 'thread-max',
|
||||
@@ -172,12 +176,11 @@ use constant
|
||||
OPTION_HARDLINK => 'hardlink',
|
||||
OPTION_MANIFEST_SAVE_THRESHOLD => 'manifest-save-threshold',
|
||||
OPTION_RESUME => 'resume',
|
||||
OPTION_STOP_AUTO => 'stop-auto',
|
||||
OPTION_START_FAST => 'start-fast',
|
||||
|
||||
# COMMAND Section
|
||||
OPTION_COMMAND_REMOTE => 'cmd-remote',
|
||||
OPTION_COMMAND_PSQL => 'cmd-psql',
|
||||
OPTION_COMMAND_PSQL_OPTION => 'cmd-psql-option',
|
||||
|
||||
# LOG Section
|
||||
OPTION_LOG_LEVEL_CONSOLE => 'log-level-console',
|
||||
@@ -197,6 +200,8 @@ use constant
|
||||
# STANZA Section
|
||||
OPTION_DB_HOST => 'db-host',
|
||||
OPTION_DB_PATH => 'db-path',
|
||||
OPTION_DB_PORT => 'db-port',
|
||||
OPTION_DB_SOCKET_PATH => 'db-socket-path',
|
||||
OPTION_DB_USER => 'db-user',
|
||||
|
||||
# Command-line-only help/version options
|
||||
@@ -215,13 +220,12 @@ push @EXPORT, qw(OPTION_CONFIG OPTION_DELTA OPTION_FORCE OPTION_NO_START_STOP OP
|
||||
OPTION_DB_HOST OPTION_BACKUP_HOST OPTION_ARCHIVE_MAX_MB OPTION_BACKUP_ARCHIVE_CHECK OPTION_BACKUP_ARCHIVE_COPY
|
||||
OPTION_ARCHIVE_ASYNC
|
||||
OPTION_BUFFER_SIZE OPTION_COMPRESS OPTION_COMPRESS_LEVEL OPTION_COMPRESS_LEVEL_NETWORK OPTION_HARDLINK
|
||||
OPTION_MANIFEST_SAVE_THRESHOLD OPTION_RESUME OPTION_PATH_ARCHIVE OPTION_REPO_PATH OPTION_REPO_REMOTE_PATH
|
||||
OPTION_DB_PATH OPTION_OUTPUT
|
||||
OPTION_LOG_LEVEL_CONSOLE OPTION_LOG_LEVEL_FILE
|
||||
OPTION_MANIFEST_SAVE_THRESHOLD OPTION_RESUME OPTION_PATH_ARCHIVE OPTION_REPO_PATH OPTION_NEUTRAL_UMASK
|
||||
OPTION_REPO_REMOTE_PATH OPTION_DB_PATH OPTION_OUTPUT OPTION_LOG_LEVEL_CONSOLE OPTION_LOG_LEVEL_FILE
|
||||
OPTION_RESTORE_RECOVERY_SETTING OPTION_RETENTION_ARCHIVE OPTION_RETENTION_ARCHIVE_TYPE OPTION_RETENTION_FULL
|
||||
OPTION_RETENTION_DIFF OPTION_START_FAST OPTION_THREAD_MAX OPTION_THREAD_TIMEOUT
|
||||
OPTION_DB_USER OPTION_BACKUP_USER OPTION_COMMAND_PSQL OPTION_COMMAND_PSQL_OPTION OPTION_COMMAND_REMOTE
|
||||
OPTION_TABLESPACE OPTION_RESTORE_TABLESPACE_MAP
|
||||
OPTION_RETENTION_DIFF OPTION_START_FAST OPTION_STOP_AUTO OPTION_THREAD_MAX OPTION_THREAD_TIMEOUT
|
||||
OPTION_DB_USER OPTION_BACKUP_USER OPTION_COMMAND_REMOTE OPTION_DB_TIMEOUT
|
||||
OPTION_TABLESPACE OPTION_RESTORE_TABLESPACE_MAP OPTION_DB_PORT OPTION_DB_SOCKET_PATH
|
||||
|
||||
OPTION_TEST OPTION_TEST_DELAY OPTION_TEST_NO_FORK);
|
||||
|
||||
@@ -242,6 +246,7 @@ use constant
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL_NETWORK_MIN => 0,
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL_NETWORK_MAX => 9,
|
||||
|
||||
OPTION_DEFAULT_DB_TIMEOUT => 1800,
|
||||
OPTION_DEFAULT_CONFIG => '/etc/' . BACKREST_EXE . '.conf',
|
||||
OPTION_DEFAULT_LOG_LEVEL_CONSOLE => lc(WARN),
|
||||
OPTION_DEFAULT_LOG_LEVEL_FILE => lc(INFO),
|
||||
@@ -249,7 +254,9 @@ use constant
|
||||
|
||||
OPTION_DEFAULT_ARCHIVE_ASYNC => false,
|
||||
|
||||
OPTION_DEFAULT_COMMAND_PSQL => '/usr/bin/psql -X',
|
||||
OPTION_DEFAULT_DB_PORT => 5432,
|
||||
OPTION_DEFAULT_DB_USER => 'postgres',
|
||||
|
||||
OPTION_DEFAULT_COMMAND_REMOTE => abs_path($0),
|
||||
|
||||
OPTION_DEFAULT_BACKUP_ARCHIVE_CHECK => true,
|
||||
@@ -259,11 +266,13 @@ use constant
|
||||
OPTION_DEFAULT_BACKUP_NO_START_STOP => false,
|
||||
OPTION_DEFAULT_BACKUP_MANIFEST_SAVE_THRESHOLD => 1073741824,
|
||||
OPTION_DEFAULT_BACKUP_RESUME => true,
|
||||
OPTION_DEFAULT_BACKUP_STOP_AUTO => false,
|
||||
OPTION_DEFAULT_BACKUP_START_FAST => false,
|
||||
OPTION_DEFAULT_BACKUP_TYPE => BACKUP_TYPE_INCR,
|
||||
|
||||
OPTION_DEFAULT_INFO_OUTPUT => INFO_OUTPUT_TEXT,
|
||||
|
||||
OPTION_DEFAULT_NEUTRAL_UMASK => true,
|
||||
OPTION_DEFAULT_REPO_PATH => '/var/lib/backup',
|
||||
|
||||
OPTION_DEFAULT_RESTORE_DELTA => false,
|
||||
@@ -294,7 +303,8 @@ push @EXPORT, qw(OPTION_DEFAULT_BUFFER_SIZE OPTION_DEFAULT_COMPRESS OPTION_DEFAU
|
||||
OPTION_DEFAULT_RESTORE_DELTA OPTION_DEFAULT_RESTORE_FORCE OPTION_DEFAULT_RESTORE_SET OPTION_DEFAULT_RESTORE_TYPE
|
||||
OPTION_DEFAULT_RESTORE_TARGET_EXCLUSIVE OPTION_DEFAULT_RESTORE_TARGET_RESUME
|
||||
|
||||
OPTION_DEFAULT_TEST OPTION_DEFAULT_TEST_DELAY OPTION_DEFAULT_TEST_NO_FORK);
|
||||
OPTION_DEFAULT_TEST OPTION_DEFAULT_TEST_DELAY OPTION_DEFAULT_TEST_NO_FORK OPTION_DEFAULT_DB_PORT
|
||||
OPTION_DEFAULT_DB_USER);
|
||||
|
||||
####################################################################################################################################
|
||||
# Option Rules
|
||||
@@ -592,34 +602,6 @@ my %oOptionRule =
|
||||
}
|
||||
},
|
||||
|
||||
&OPTION_COMMAND_PSQL =>
|
||||
{
|
||||
&OPTION_RULE_TYPE => OPTION_TYPE_STRING,
|
||||
&OPTION_RULE_DEFAULT => OPTION_DEFAULT_COMMAND_PSQL,
|
||||
&OPTION_RULE_SECTION => CONFIG_SECTION_COMMAND,
|
||||
&OPTION_RULE_COMMAND =>
|
||||
{
|
||||
&CMD_BACKUP => true,
|
||||
&CMD_REMOTE => true
|
||||
}
|
||||
},
|
||||
|
||||
&OPTION_COMMAND_PSQL_OPTION =>
|
||||
{
|
||||
&OPTION_RULE_TYPE => OPTION_TYPE_STRING,
|
||||
&OPTION_RULE_SECTION => CONFIG_SECTION_COMMAND,
|
||||
&OPTION_RULE_COMMAND =>
|
||||
{
|
||||
&CMD_BACKUP => true,
|
||||
&CMD_REMOTE => true
|
||||
},
|
||||
&OPTION_RULE_REQUIRED => false,
|
||||
&OPTION_RULE_DEPEND =>
|
||||
{
|
||||
&OPTION_RULE_DEPEND_OPTION => OPTION_COMMAND_PSQL
|
||||
}
|
||||
},
|
||||
|
||||
&OPTION_ARCHIVE_ASYNC =>
|
||||
{
|
||||
&OPTION_RULE_TYPE => OPTION_TYPE_BOOLEAN,
|
||||
@@ -642,9 +624,34 @@ my %oOptionRule =
|
||||
}
|
||||
},
|
||||
|
||||
&OPTION_DB_PORT =>
|
||||
{
|
||||
&OPTION_RULE_TYPE => OPTION_TYPE_INTEGER,
|
||||
&OPTION_RULE_DEFAULT => OPTION_DEFAULT_DB_PORT,
|
||||
&OPTION_RULE_SECTION => CONFIG_SECTION_STANZA,
|
||||
&OPTION_RULE_COMMAND =>
|
||||
{
|
||||
&CMD_BACKUP => true,
|
||||
&CMD_REMOTE => true
|
||||
}
|
||||
},
|
||||
|
||||
&OPTION_DB_SOCKET_PATH =>
|
||||
{
|
||||
&OPTION_RULE_TYPE => OPTION_TYPE_STRING,
|
||||
&OPTION_RULE_REQUIRED => false,
|
||||
&OPTION_RULE_SECTION => CONFIG_SECTION_STANZA,
|
||||
&OPTION_RULE_COMMAND =>
|
||||
{
|
||||
&CMD_BACKUP => true,
|
||||
&CMD_REMOTE => true
|
||||
}
|
||||
},
|
||||
|
||||
&OPTION_DB_USER =>
|
||||
{
|
||||
&OPTION_RULE_TYPE => OPTION_TYPE_STRING,
|
||||
&OPTION_RULE_DEFAULT => OPTION_DEFAULT_DB_USER,
|
||||
&OPTION_RULE_SECTION => CONFIG_SECTION_STANZA,
|
||||
&OPTION_RULE_COMMAND =>
|
||||
{
|
||||
@@ -689,6 +696,13 @@ my %oOptionRule =
|
||||
}
|
||||
},
|
||||
|
||||
&OPTION_NEUTRAL_UMASK =>
|
||||
{
|
||||
&OPTION_RULE_TYPE => OPTION_TYPE_BOOLEAN,
|
||||
&OPTION_RULE_DEFAULT => OPTION_DEFAULT_NEUTRAL_UMASK,
|
||||
&OPTION_RULE_SECTION => CONFIG_SECTION_GENERAL
|
||||
},
|
||||
|
||||
&OPTION_REPO_PATH =>
|
||||
{
|
||||
&OPTION_RULE_TYPE => OPTION_TYPE_STRING,
|
||||
@@ -1035,6 +1049,17 @@ my %oOptionRule =
|
||||
}
|
||||
},
|
||||
|
||||
&OPTION_STOP_AUTO =>
|
||||
{
|
||||
&OPTION_RULE_TYPE => OPTION_TYPE_BOOLEAN,
|
||||
&OPTION_RULE_DEFAULT => OPTION_DEFAULT_BACKUP_STOP_AUTO,
|
||||
&OPTION_RULE_SECTION => true,
|
||||
&OPTION_RULE_COMMAND =>
|
||||
{
|
||||
&CMD_BACKUP => true
|
||||
}
|
||||
},
|
||||
|
||||
&OPTION_START_FAST =>
|
||||
{
|
||||
&OPTION_RULE_TYPE => OPTION_TYPE_BOOLEAN,
|
||||
@@ -1059,12 +1084,25 @@ my %oOptionRule =
|
||||
}
|
||||
},
|
||||
|
||||
&OPTION_DB_TIMEOUT =>
|
||||
{
|
||||
&OPTION_RULE_TYPE => OPTION_TYPE_INTEGER,
|
||||
&OPTION_RULE_DEFAULT => OPTION_DEFAULT_DB_TIMEOUT,
|
||||
&OPTION_RULE_SECTION => true,
|
||||
&OPTION_RULE_SECTION_INHERIT => CONFIG_SECTION_GENERAL,
|
||||
&OPTION_RULE_COMMAND =>
|
||||
{
|
||||
&CMD_BACKUP => true,
|
||||
&CMD_REMOTE => true
|
||||
}
|
||||
},
|
||||
|
||||
&OPTION_THREAD_TIMEOUT =>
|
||||
{
|
||||
&OPTION_RULE_TYPE => OPTION_TYPE_INTEGER,
|
||||
&OPTION_RULE_REQUIRED => false,
|
||||
&OPTION_RULE_SECTION => true,
|
||||
&OPTION_RULE_SECTION_INHERIT => CONFIG_SECTION_GENERAL,
|
||||
&OPTION_RULE_SECTION_INHERIT => CONFIG_SECTION_BACKUP,
|
||||
&OPTION_RULE_COMMAND =>
|
||||
{
|
||||
&CMD_BACKUP => true,
|
||||
@@ -1250,10 +1288,10 @@ sub configLoad
|
||||
# Validate and store options
|
||||
optionValid(\%oOptionTest);
|
||||
|
||||
# Replace command psql options if set
|
||||
if (optionTest(OPTION_COMMAND_PSQL) && optionTest(OPTION_COMMAND_PSQL_OPTION))
|
||||
# Neutralize the umask to make the repository file/path modes more consistent
|
||||
if (optionGet(OPTION_NEUTRAL_UMASK))
|
||||
{
|
||||
$oOption{&OPTION_COMMAND_PSQL}{value} =~ s/\%option\%/$oOption{&OPTION_COMMAND_PSQL_OPTION}{value}/g;
|
||||
umask(0000);
|
||||
}
|
||||
|
||||
# Set repo-remote-path to repo-path if it is not set
|
||||
@@ -1916,9 +1954,8 @@ sub protocolGet
|
||||
# If force local or remote = NONE then create a local remote and return it
|
||||
if ((defined($bForceLocal) && $bForceLocal) || optionRemoteTypeTest(NONE))
|
||||
{
|
||||
return new BackRest::Protocol
|
||||
return new BackRest::Protocol::Common
|
||||
(
|
||||
undef, false, undef,
|
||||
optionGet(OPTION_BUFFER_SIZE),
|
||||
commandTest(CMD_EXPIRE) ? OPTION_DEFAULT_COMPRESS_LEVEL : optionGet(OPTION_COMPRESS_LEVEL),
|
||||
commandTest(CMD_EXPIRE) ? OPTION_DEFAULT_COMPRESS_LEVEL_NETWORK : optionGet(OPTION_COMPRESS_LEVEL_NETWORK)
|
||||
@@ -1932,14 +1969,14 @@ sub protocolGet
|
||||
}
|
||||
|
||||
# Return the remote when required
|
||||
my $oProtocolTemp = new BackRest::Remote
|
||||
my $oProtocolTemp = new BackRest::Protocol::RemoteMaster
|
||||
(
|
||||
optionRemoteTypeTest(DB) ? optionGet(OPTION_DB_HOST) : optionGet(OPTION_BACKUP_HOST),
|
||||
optionRemoteTypeTest(DB) ? optionGet(OPTION_DB_USER) : optionGet(OPTION_BACKUP_USER),
|
||||
commandWrite(CMD_REMOTE, true, optionGet(OPTION_COMMAND_REMOTE)),
|
||||
optionGet(OPTION_BUFFER_SIZE),
|
||||
commandTest(CMD_EXPIRE) ? OPTION_DEFAULT_COMPRESS_LEVEL : optionGet(OPTION_COMPRESS_LEVEL),
|
||||
commandTest(CMD_EXPIRE) ? OPTION_DEFAULT_COMPRESS_LEVEL_NETWORK : optionGet(OPTION_COMPRESS_LEVEL_NETWORK)
|
||||
commandTest(CMD_EXPIRE) ? OPTION_DEFAULT_COMPRESS_LEVEL_NETWORK : optionGet(OPTION_COMPRESS_LEVEL_NETWORK),
|
||||
optionRemoteTypeTest(DB) ? optionGet(OPTION_DB_HOST) : optionGet(OPTION_BACKUP_HOST),
|
||||
optionRemoteTypeTest(DB) ? optionGet(OPTION_DB_USER) : optionGet(OPTION_BACKUP_USER)
|
||||
);
|
||||
|
||||
if (!defined($bStore) || $bStore)
|
||||
|
||||
@@ -7,7 +7,10 @@ use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
use Carp qw(confess);
|
||||
|
||||
use DBD::Pg ':async';
|
||||
use DBI;
|
||||
use Exporter qw(import);
|
||||
our @EXPORT = qw();
|
||||
use Fcntl qw(O_RDONLY);
|
||||
use File::Basename qw(dirname);
|
||||
|
||||
@@ -15,7 +18,6 @@ use lib dirname($0);
|
||||
use BackRest::Config;
|
||||
use BackRest::Exception;
|
||||
use BackRest::File;
|
||||
use BackRest::Open3;
|
||||
use BackRest::Utility;
|
||||
|
||||
####################################################################################################################################
|
||||
@@ -23,10 +25,14 @@ use BackRest::Utility;
|
||||
####################################################################################################################################
|
||||
use constant OP_DB => 'Db';
|
||||
|
||||
use constant OP_DB_INFO => OP_DB . "->info";
|
||||
our @EXPORT = qw(OP_DB_INFO);
|
||||
use constant OP_DB_NEW => OP_DB . "->new";
|
||||
use constant OP_DB_BACKUP_START => OP_DB . "->backupStart";
|
||||
use constant OP_DB_BACKUP_STOP => OP_DB . "->backupStop";
|
||||
use constant OP_DB_EXECUTE_SQL => OP_DB . "->executeSql";
|
||||
push @EXPORT, qw(OP_DB_EXECUTE_SQL);
|
||||
use constant OP_DB_INFO => OP_DB . "->info";
|
||||
push @EXPORT, qw(OP_DB_INFO);
|
||||
use constant OP_DB_TABLESPACE_MAP_GET => OP_DB . "->tablespaceMapGet";
|
||||
use constant OP_DB_VERSION_GET => OP_DB . "->versionGet";
|
||||
|
||||
####################################################################################################################################
|
||||
@@ -35,6 +41,12 @@ use constant OP_DB_VERSION_GET => OP_DB . "
|
||||
use constant FILE_POSTMASTER_PID => 'postmaster.pid';
|
||||
push @EXPORT, qw(FILE_POSTMASTER_PID);
|
||||
|
||||
####################################################################################################################################
|
||||
# Backup advisory lock
|
||||
####################################################################################################################################
|
||||
use constant DB_BACKUP_ADVISORY_LOCK => '12340078987004321';
|
||||
push @EXPORT, qw(DB_BACKUP_ADVISORY_LOCK);
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
####################################################################################################################################
|
||||
@@ -49,6 +61,20 @@ sub new
|
||||
return $self;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# DESTRUCTOR
|
||||
####################################################################################################################################
|
||||
sub DESTROY
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
if (defined($self->{hDb}))
|
||||
{
|
||||
$self->{hDb}->disconnect();
|
||||
undef($self->{hDb});
|
||||
}
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# versionSupport
|
||||
#
|
||||
@@ -69,12 +95,12 @@ push @EXPORT, qw(versionSupport);
|
||||
sub executeSql
|
||||
{
|
||||
my $self = shift;
|
||||
my $strScript = shift; # psql script to execute (must be on a single line)
|
||||
my $strSql = shift;
|
||||
my $bIgnoreError = shift;
|
||||
|
||||
logDebug(OP_DB_EXECUTE_SQL, DEBUG_CALL, undef, {isRemote => optionRemoteTypeTest(DB), script => $strScript});
|
||||
logDebug(OP_DB_EXECUTE_SQL, DEBUG_CALL, undef, {isRemote => optionRemoteTypeTest(DB), script => \$strSql});
|
||||
|
||||
# Get the user-defined command for psql
|
||||
my $strCommand = optionGet(OPTION_COMMAND_PSQL) . " -c \"${strScript}\" postgres";
|
||||
my $strResult;
|
||||
|
||||
# Run remotely
|
||||
@@ -83,31 +109,144 @@ sub executeSql
|
||||
# Build param hash
|
||||
my %oParamHash;
|
||||
|
||||
$oParamHash{'script'} = $strScript;
|
||||
$oParamHash{'script'} = $strSql;
|
||||
|
||||
if (defined($bIgnoreError) && $bIgnoreError)
|
||||
{
|
||||
$oParamHash{'ignore-error'} = true;
|
||||
}
|
||||
|
||||
# Execute the command
|
||||
$strResult = protocolGet()->command_execute(OP_DB_EXECUTE_SQL, \%oParamHash, true);
|
||||
$strResult = protocolGet()->cmdExecute(OP_DB_EXECUTE_SQL, \%oParamHash, true);
|
||||
}
|
||||
# Else run locally
|
||||
else
|
||||
{
|
||||
$strResult = (new BackRest::Open3($strCommand))->capture();
|
||||
if (!defined($self->{hDb}))
|
||||
{
|
||||
# Connect to the db
|
||||
my $strDbName = 'postgres';
|
||||
my $strDbUser = getpwuid($<);
|
||||
my $strDbSocketPath = optionGet(OPTION_DB_SOCKET_PATH, false);
|
||||
|
||||
if (defined($strDbSocketPath) && $strDbSocketPath !~ /^\//)
|
||||
{
|
||||
confess &log(ERROR, "'${strDbSocketPath}' is not valid for '" . OPTION_DB_SOCKET_PATH . "' option:" .
|
||||
" path must be absolute", ERROR_OPTION_INVALID_VALUE);
|
||||
}
|
||||
|
||||
my $strDbUri = "dbi:Pg:dbname=${strDbName};port=" . optionGet(OPTION_DB_PORT) .
|
||||
(optionTest(OPTION_DB_SOCKET_PATH) ? ';host=' . optionGet(OPTION_DB_SOCKET_PATH) : '');
|
||||
|
||||
logDebug(OP_DB_EXECUTE_SQL, DEBUG_MISC, 'db connect', {strDbUri => $strDbUri, strDbUser => $strDbUser});
|
||||
|
||||
$self->{hDb} = DBI->connect($strDbUri, $strDbUser, undef, {AutoCommit => 1, RaiseError => 0, PrintError => 0});
|
||||
|
||||
if (!$self->{hDb})
|
||||
{
|
||||
confess &log(ERROR, $DBI::errstr, ERROR_DB_CONNECT);
|
||||
}
|
||||
}
|
||||
|
||||
# Prepare the query
|
||||
my $hStatement = $self->{hDb}->prepare($strSql, {pg_async => PG_ASYNC})
|
||||
or confess &log(ERROR, $DBI::errstr, ERROR_DB_QUERY);
|
||||
|
||||
# Execute the query
|
||||
$hStatement->execute();
|
||||
|
||||
# Wait for the query to return
|
||||
my $iWaitSeconds = optionGet(OPTION_DB_TIMEOUT);
|
||||
my $oExecuteWait = waitInit($iWaitSeconds);
|
||||
my $bTimeout = true;
|
||||
|
||||
do
|
||||
{
|
||||
# Is the statement done?
|
||||
if ($hStatement->pg_ready())
|
||||
{
|
||||
if (!$hStatement->pg_result())
|
||||
{
|
||||
# Return if the error should be ignored
|
||||
if (defined($bIgnoreError) && $bIgnoreError)
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
# Else report it
|
||||
confess &log(ERROR, $DBI::errstr . ":\n${strSql}", ERROR_DB_QUERY);
|
||||
}
|
||||
|
||||
# Get rows and return them
|
||||
my @stryArray;
|
||||
|
||||
do
|
||||
{
|
||||
@stryArray = $hStatement->fetchrow_array;
|
||||
|
||||
if (!@stryArray && $hStatement->err)
|
||||
{
|
||||
confess &log(ERROR, $DBI::errstr . ":\n${strSql}", ERROR_DB_QUERY);
|
||||
}
|
||||
|
||||
$strResult = (defined($strResult) ? "${strResult}\n" : '') . join("\t", @stryArray);
|
||||
}
|
||||
while (@stryArray);
|
||||
|
||||
$bTimeout = false;
|
||||
}
|
||||
} while ($bTimeout && waitMore($oExecuteWait));
|
||||
|
||||
# If timeout then cancel the query and confess
|
||||
if ($bTimeout)
|
||||
{
|
||||
$hStatement->pg_cancel();
|
||||
confess &log(ERROR, "statement timed out after ${iWaitSeconds} second(s):\n${strSql}", ERROR_DB_TIMEOUT);
|
||||
}
|
||||
}
|
||||
|
||||
logDebug(OP_DB_EXECUTE_SQL, DEBUG_RESULT, undef, {strResult => $strResult});
|
||||
|
||||
return $strResult;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# TABLESPACE_MAP_GET - Get the mapping between oid and tablespace name
|
||||
# executeSqlRow
|
||||
####################################################################################################################################
|
||||
sub tablespace_map_get
|
||||
sub executeSqlRow
|
||||
{
|
||||
my $self = shift;
|
||||
my $strSql = shift;
|
||||
|
||||
return split("\t", trim($self->executeSql($strSql)));
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# executeSqlOne
|
||||
####################################################################################################################################
|
||||
sub executeSqlOne
|
||||
{
|
||||
my $self = shift;
|
||||
my $strSql = shift;
|
||||
|
||||
return ($self->executeSqlRow($strSql))[0];
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# tablespaceMapGet
|
||||
#
|
||||
# Get the mapping between oid and tablespace name.
|
||||
####################################################################################################################################
|
||||
sub tablespaceMapGet
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
logTrace(OP_DB_TABLESPACE_MAP_GET, DEBUG_CALL);
|
||||
|
||||
my $oHashRef = {};
|
||||
|
||||
data_hash_build($oHashRef, "oid\tname\n" . $self->executeSql(
|
||||
'copy (select oid, spcname from pg_tablespace) to stdout'), "\t");
|
||||
'select oid, spcname from pg_tablespace'), "\t");
|
||||
|
||||
return $oHashRef;
|
||||
}
|
||||
@@ -121,13 +260,22 @@ sub info
|
||||
my $oFile = shift;
|
||||
my $strDbPath = shift;
|
||||
|
||||
logDebug(OP_DB_INFO, DEBUG_CALL, undef, {isRemote => $oFile->is_remote(PATH_DB_ABSOLUTE), dbPath => $strDbPath});
|
||||
logDebug(OP_DB_INFO, DEBUG_CALL, undef, {isRemote => $oFile->is_remote(PATH_DB_ABSOLUTE), dbPath => \$strDbPath});
|
||||
|
||||
# Return data from the cache if it exists
|
||||
if (defined($self->{info}{$strDbPath}))
|
||||
{
|
||||
return $self->{info}{$strDbPath}{fDbVersion},
|
||||
$self->{info}{$strDbPath}{iControlVersion},
|
||||
$self->{info}{$strDbPath}{iCatalogVersion},
|
||||
$self->{info}{$strDbPath}{ullDbSysId};
|
||||
}
|
||||
|
||||
# Database info
|
||||
my $iCatalogVersion;
|
||||
my $iControlVersion;
|
||||
my $ullDbSysId;
|
||||
my $strDbVersion;
|
||||
my $fDbVersion;
|
||||
|
||||
if ($oFile->is_remote(PATH_DB_ABSOLUTE))
|
||||
{
|
||||
@@ -137,15 +285,15 @@ sub info
|
||||
$oParamHash{'db-path'} = ${strDbPath};
|
||||
|
||||
# Output remote trace info
|
||||
&log(TRACE, OP_DB_INFO . ": remote (" . $oFile->{oProtocol}->command_param_string(\%oParamHash) . ')');
|
||||
&log(TRACE, OP_DB_INFO . ": remote (" . $oFile->{oProtocol}->commandParamString(\%oParamHash) . ')');
|
||||
|
||||
# Execute the command
|
||||
my $strResult = $oFile->{oProtocol}->command_execute(OP_DB_INFO, \%oParamHash, true);
|
||||
my $strResult = $oFile->{oProtocol}->cmdExecute(OP_DB_INFO, \%oParamHash, true);
|
||||
|
||||
# Split the result into return values
|
||||
my @stryToken = split(/\t/, $strResult);
|
||||
|
||||
$strDbVersion = $stryToken[0];
|
||||
$fDbVersion = $stryToken[0];
|
||||
$iControlVersion = $stryToken[1];
|
||||
$iCatalogVersion = $stryToken[2];
|
||||
$ullDbSysId = $stryToken[3];
|
||||
@@ -184,48 +332,48 @@ sub info
|
||||
# Make sure the control version is supported
|
||||
if ($iControlVersion == 942 && $iCatalogVersion == 201409291)
|
||||
{
|
||||
$strDbVersion = '9.4';
|
||||
$fDbVersion = '9.4';
|
||||
}
|
||||
# Leave 9.5 catalog version out until it stabilizes (then move 9.5 to the top of the list)
|
||||
elsif ($iControlVersion == 942) # && $iCatalogVersion == 201505311)
|
||||
{
|
||||
$strDbVersion = '9.5';
|
||||
$fDbVersion = '9.5';
|
||||
}
|
||||
elsif ($iControlVersion == 937 && $iCatalogVersion == 201306121)
|
||||
{
|
||||
$strDbVersion = '9.3';
|
||||
$fDbVersion = '9.3';
|
||||
}
|
||||
elsif ($iControlVersion == 922 && $iCatalogVersion == 201204301)
|
||||
{
|
||||
$strDbVersion = '9.2';
|
||||
$fDbVersion = '9.2';
|
||||
}
|
||||
elsif ($iControlVersion == 903 && $iCatalogVersion == 201105231)
|
||||
{
|
||||
$strDbVersion = '9.1';
|
||||
$fDbVersion = '9.1';
|
||||
}
|
||||
elsif ($iControlVersion == 903 && $iCatalogVersion == 201008051)
|
||||
{
|
||||
$strDbVersion = '9.0';
|
||||
$fDbVersion = '9.0';
|
||||
}
|
||||
elsif ($iControlVersion == 843 && $iCatalogVersion == 200904091)
|
||||
{
|
||||
$strDbVersion = '8.4';
|
||||
$fDbVersion = '8.4';
|
||||
}
|
||||
elsif ($iControlVersion == 833 && $iCatalogVersion == 200711281)
|
||||
{
|
||||
$strDbVersion = '8.3';
|
||||
$fDbVersion = '8.3';
|
||||
}
|
||||
elsif ($iControlVersion == 822 && $iCatalogVersion == 200611241)
|
||||
{
|
||||
$strDbVersion = '8.2';
|
||||
$fDbVersion = '8.2';
|
||||
}
|
||||
elsif ($iControlVersion == 812 && $iCatalogVersion == 200510211)
|
||||
{
|
||||
$strDbVersion = '8.1';
|
||||
$fDbVersion = '8.1';
|
||||
}
|
||||
elsif ($iControlVersion == 74 && $iCatalogVersion == 200411041)
|
||||
{
|
||||
$strDbVersion = '8.0';
|
||||
$fDbVersion = '8.0';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -235,10 +383,16 @@ sub info
|
||||
}
|
||||
}
|
||||
|
||||
&log(DEBUG, OP_DB_INFO . "=>: dbVersion = ${strDbVersion}, controlVersion = ${iControlVersion}" .
|
||||
# Store data in the cache
|
||||
$self->{info}{$strDbPath}{fDbVersion} = $fDbVersion;
|
||||
$self->{info}{$strDbPath}{iControlVersion} = $iControlVersion;
|
||||
$self->{info}{$strDbPath}{iCatalogVersion} = $iCatalogVersion;
|
||||
$self->{info}{$strDbPath}{ullDbSysId} = $ullDbSysId;
|
||||
|
||||
&log(DEBUG, OP_DB_INFO . "=>: dbVersion = ${fDbVersion}, controlVersion = ${iControlVersion}" .
|
||||
", catalogVersion = ${iCatalogVersion}, dbSysId = ${ullDbSysId}");
|
||||
|
||||
return $strDbVersion, $iControlVersion, $iCatalogVersion, $ullDbSysId;
|
||||
return $fDbVersion, $iControlVersion, $iCatalogVersion, $ullDbSysId;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
@@ -248,13 +402,16 @@ sub versionGet
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
if (defined($self->{fVersion}))
|
||||
# Get data from the cache if possible
|
||||
if (defined($self->{fVersion}) && defined($self->{strDbPath}))
|
||||
{
|
||||
return $self->{fVersion};
|
||||
return $self->{fVersion}, $self->{strDbPath};
|
||||
}
|
||||
|
||||
$self->{fVersion} =
|
||||
trim($self->executeSql("copy (select (regexp_matches(split_part(version(), ' ', 2), '^[0-9]+\.[0-9]+'))[1]) to stdout"));
|
||||
# Get version and db-path from
|
||||
($self->{fVersion}, $self->{strDbPath}) =
|
||||
$self->executeSqlRow("select (regexp_matches(split_part(version(), ' ', 2), '^[0-9]+\.[0-9]+'))[1], setting" .
|
||||
" from pg_settings where name = 'data_directory'");
|
||||
|
||||
my $strVersionSupport = versionSupport();
|
||||
|
||||
@@ -265,51 +422,94 @@ sub versionGet
|
||||
|
||||
logDebug(OP_DB_VERSION_GET, DEBUG_RESULT, {dbVersion => $self->{fVersion}});
|
||||
|
||||
return $self->{fVersion};
|
||||
return $self->{fVersion}, $self->{strDbPath};
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# BACKUP_START
|
||||
# backupStart
|
||||
####################################################################################################################################
|
||||
sub backup_start
|
||||
sub backupStart
|
||||
{
|
||||
my $self = shift;
|
||||
my $oFile = shift;
|
||||
my $strDbPath = shift;
|
||||
my $strLabel = shift;
|
||||
my $bStartFast = shift;
|
||||
|
||||
$self->versionGet();
|
||||
logDebug(OP_DB_BACKUP_START, DEBUG_CALL, undef, {dbPath => \$strDbPath, strLabel => \$strLabel, isStartFast => $bStartFast});
|
||||
|
||||
# Get the version from the control file
|
||||
my ($fDbVersion) = $self->info($oFile, $strDbPath);
|
||||
|
||||
# Get version and db path from the database
|
||||
my ($fCompareDbVersion, $strCompareDbPath) = $self->versionGet();
|
||||
|
||||
# Error if they are not identical
|
||||
if (!($fDbVersion == $fCompareDbVersion && $strDbPath eq $strCompareDbPath))
|
||||
{
|
||||
confess &log(ERROR, "version '${fCompareDbVersion}' and db-path '${strCompareDbPath}' queried from cluster does not match" .
|
||||
" version '${fDbVersion}' and db-path '${strDbPath}' read from '${strDbPath}/global/pg_control'\n" .
|
||||
"HINT: the db-path and db-port settings likely reference different clusters", ERROR_DB_MISMATCH);
|
||||
}
|
||||
|
||||
# Only allow start-fast option for version >= 8.4
|
||||
if ($self->{fVersion} < 8.4 && $bStartFast)
|
||||
{
|
||||
&log(WARN, 'start-fast option is only available in PostgreSQL >= 8.4');
|
||||
&log(WARN, OPTION_START_FAST . ' option is only available in PostgreSQL >= 8.4');
|
||||
$bStartFast = false;
|
||||
}
|
||||
|
||||
# Acquire the backup advisory lock
|
||||
if (!$self->executeSqlOne('select pg_try_advisory_lock(' . DB_BACKUP_ADVISORY_LOCK . ')'))
|
||||
{
|
||||
confess &log(ERROR, "unable to acquire backup lock\n" .
|
||||
'HINT: is another backup already running on this cluster?', ERROR_LOCK_ACQUIRE);
|
||||
}
|
||||
|
||||
# Test if a backup is already running when version >= 9.3
|
||||
if (optionGet(OPTION_STOP_AUTO))
|
||||
{
|
||||
if ($self->{fVersion} >= 9.3)
|
||||
{
|
||||
if ($self->executeSqlOne('select pg_is_in_backup()'))
|
||||
{
|
||||
&log(WARN, 'the cluster is already in backup mode but no backup process is running. pg_stop_backup() will be called' .
|
||||
' so a new backup can be started.');
|
||||
$self->backupStop();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
&log(WARN, OPTION_STOP_AUTO . 'option is only available in PostgreSQL >= 9.3');
|
||||
}
|
||||
}
|
||||
|
||||
&log(INFO, "executing pg_start_backup() with label \"${strLabel}\": backup will begin after " .
|
||||
($bStartFast ? "the requested immediate checkpoint" : "the next regular checkpoint") . " completes");
|
||||
|
||||
my @stryField = split("\t", trim($self->executeSql("set client_min_messages = 'warning';" .
|
||||
"copy (select to_char(current_timestamp, 'YYYY-MM-DD HH24:MI:SS.US TZ'), " .
|
||||
"pg_xlogfile_name(xlog) from pg_start_backup('${strLabel}'" .
|
||||
($bStartFast ? ', true' : '') . ') as xlog) to stdout')));
|
||||
my ($strTimestampDbStart, $strArchiveStart) =
|
||||
$self->executeSqlRow("select to_char(current_timestamp, 'YYYY-MM-DD HH24:MI:SS.US TZ'), " .
|
||||
"pg_xlogfile_name(xlog) from pg_start_backup('${strLabel}'" .
|
||||
($bStartFast ? ', true' : '') . ') as xlog');
|
||||
|
||||
return $stryField[1], $stryField[0];
|
||||
return $strArchiveStart, $strTimestampDbStart;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# BACKUP_STOP
|
||||
# backupStop
|
||||
####################################################################################################################################
|
||||
sub backup_stop
|
||||
sub backupStop
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
logDebug(OP_DB_BACKUP_STOP, DEBUG_CALL);
|
||||
&log(INFO, 'executing pg_stop_backup() and waiting for all WAL segments to be archived');
|
||||
|
||||
my @stryField = split("\t", trim($self->executeSql("set client_min_messages = 'warning';" .
|
||||
"copy (select to_char(clock_timestamp(), 'YYYY-MM-DD HH24:MI:SS.US TZ')," .
|
||||
" pg_xlogfile_name(xlog) from pg_stop_backup() as xlog) to stdout")));
|
||||
my ($strTimestampDbStop, $strArchiveStop) =
|
||||
$self->executeSqlRow("select to_char(clock_timestamp(), 'YYYY-MM-DD HH24:MI:SS.US TZ')," .
|
||||
" pg_xlogfile_name(xlog) from pg_stop_backup() as xlog");
|
||||
|
||||
return $stryField[1], $stryField[0];
|
||||
return $strArchiveStop, $strTimestampDbStop;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
@@ -45,7 +45,10 @@ use constant
|
||||
ERROR_PATH_OPEN => 128,
|
||||
ERROR_PATH_SYNC => 129,
|
||||
ERROR_FILE_MISSING => 130,
|
||||
ERROR_DB_CONNECT => 132,
|
||||
ERROR_DB_CONNECT => 131,
|
||||
ERROR_DB_QUERY => 132,
|
||||
ERROR_DB_MISMATCH => 133,
|
||||
ERROR_DB_TIMEOUT => 134,
|
||||
|
||||
ERROR_UNKNOWN => 199
|
||||
};
|
||||
@@ -56,7 +59,7 @@ our @EXPORT = qw(ERROR_ASSERT ERROR_CHECKSUM ERROR_CONFIG ERROR_FILE_INVALID ERR
|
||||
ERROR_RESTORE_PATH_NOT_EMPTY ERROR_FILE_OPEN ERROR_FILE_READ ERROR_PARAM_REQUIRED ERROR_ARCHIVE_MISMATCH
|
||||
ERROR_ARCHIVE_DUPLICATE ERROR_VERSION_NOT_SUPPORTED ERROR_PATH_CREATE ERROR_COMMAND_INVALID ERROR_HOST_CONNECT
|
||||
ERROR_UNKNOWN ERROR_LOCK_ACQUIRE ERROR_BACKUP_MISMATCH ERROR_FILE_SYNC ERROR_PATH_OPEN ERROR_PATH_SYNC
|
||||
ERROR_FILE_MISSING ERROR_DB_CONNECT);
|
||||
ERROR_FILE_MISSING ERROR_DB_CONNECT ERROR_DB_QUERY ERROR_DB_MISMATCH ERROR_DB_TIMEOUT);
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
|
||||
@@ -21,7 +21,6 @@ use lib dirname($0) . '/../lib';
|
||||
use BackRest::Config;
|
||||
use BackRest::Exception;
|
||||
use BackRest::FileCommon;
|
||||
use BackRest::Protocol;
|
||||
use BackRest::Utility;
|
||||
|
||||
####################################################################################################################################
|
||||
@@ -177,7 +176,7 @@ sub clone
|
||||
$self->{strStanza},
|
||||
$self->{strBackupPath},
|
||||
$self->{strRemote},
|
||||
defined($self->{oProtocol}) ? $self->{oProtocol}->clone() : undef,
|
||||
$self->{oProtocol},
|
||||
$self->{strDefaultPathMode},
|
||||
$self->{strDefaultFileMode},
|
||||
$iThreadIdx
|
||||
@@ -469,7 +468,7 @@ sub pathSync
|
||||
my $strPathType = shift;
|
||||
my $strPath = shift;
|
||||
|
||||
logTrace(OP_FILE_PATH_SYNC, DEBUG_CALL, undef, {pathType => $strPathType, path => $strPath});
|
||||
logTrace(OP_FILE_PATH_SYNC, DEBUG_CALL, undef, {pathType => \$strPathType, path => \$strPath});
|
||||
|
||||
filePathSync($self->path_get($strPathType, $strPath eq '.' ? undef : $strPath));
|
||||
}
|
||||
@@ -601,10 +600,11 @@ sub path_create
|
||||
|
||||
# Set operation variables
|
||||
my $strPathOp = $self->path_get($strPathType, $strPath);
|
||||
$strMode = defined($strMode) ? $strMode : '0750';
|
||||
|
||||
# Set operation and debug strings
|
||||
my $strOperation = OP_FILE_PATH_CREATE;
|
||||
my $strDebug = "${strPathType}:${strPathOp}, mode " . (defined($strMode) ? $strMode : '[undef]');
|
||||
my $strDebug = "${strPathType}:${strPathOp}, mode ${strMode}";
|
||||
&log(DEBUG, "${strOperation}: ${strDebug}");
|
||||
|
||||
if ($self->is_remote($strPathType))
|
||||
@@ -620,12 +620,12 @@ sub path_create
|
||||
}
|
||||
|
||||
# Add remote info to debug string
|
||||
my $strRemote = 'remote (' . $self->{oProtocol}->command_param_string(\%oParamHash) . ')';
|
||||
my $strRemote = 'remote (' . $self->{oProtocol}->commandParamString(\%oParamHash) . ')';
|
||||
$strDebug = "${strOperation}: ${strRemote}: ${strDebug}";
|
||||
&log(TRACE, "${strOperation}: ${strRemote}");
|
||||
|
||||
# Execute the command
|
||||
$self->{oProtocol}->command_execute($strOperation, \%oParamHash, false, $strDebug);
|
||||
$self->{oProtocol}->cmdExecute($strOperation, \%oParamHash, false, $strDebug);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -689,12 +689,12 @@ sub exists
|
||||
$oParamHash{path} = $strPathOp;
|
||||
|
||||
# Add remote info to debug string
|
||||
my $strRemote = 'remote (' . $self->{oProtocol}->command_param_string(\%oParamHash) . ')';
|
||||
my $strRemote = 'remote (' . $self->{oProtocol}->commandParamString(\%oParamHash) . ')';
|
||||
$strDebug = "${strOperation}: ${strRemote}: ${strDebug}";
|
||||
&log(TRACE, "${strOperation}: ${strRemote}");
|
||||
|
||||
# Execute the command
|
||||
return $self->{oProtocol}->command_execute($strOperation, \%oParamHash, true, $strDebug) eq 'Y';
|
||||
return $self->{oProtocol}->cmdExecute($strOperation, \%oParamHash, true, $strDebug) eq 'Y';
|
||||
}
|
||||
# Run locally
|
||||
else
|
||||
@@ -859,7 +859,7 @@ sub hash_size
|
||||
if ($bCompressed)
|
||||
{
|
||||
($strHash, $iSize) =
|
||||
$self->{oProtocol}->binary_xfer($hFile, undef, 'in', true, false, false);
|
||||
$self->{oProtocol}->binaryXfer($hFile, 'none', 'in', true, false, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -997,12 +997,12 @@ sub list
|
||||
}
|
||||
|
||||
# Add remote info to debug string
|
||||
my $strRemote = 'remote (' . $self->{oProtocol}->command_param_string(\%oParamHash) . ')';
|
||||
my $strRemote = 'remote (' . $self->{oProtocol}->commandParamString(\%oParamHash) . ')';
|
||||
$strDebug = "${strOperation}: ${strRemote}: ${strDebug}";
|
||||
&log(TRACE, "${strOperation}: ${strRemote}");
|
||||
|
||||
# Execute the command
|
||||
my $strOutput = $self->{oProtocol}->command_execute($strOperation, \%oParamHash, false, $strDebug);
|
||||
my $strOutput = $self->{oProtocol}->cmdExecute($strOperation, \%oParamHash, false, $strDebug);
|
||||
|
||||
if (defined($strOutput))
|
||||
{
|
||||
@@ -1093,7 +1093,7 @@ sub wait
|
||||
&log(TRACE, "${strOperation}: remote");
|
||||
|
||||
# Execute the command
|
||||
$lTimeBegin = $self->{oProtocol}->command_execute($strOperation, undef, true, $strDebug);
|
||||
$lTimeBegin = $self->{oProtocol}->cmdExecute($strOperation, undef, true, $strDebug);
|
||||
}
|
||||
# Run locally
|
||||
else
|
||||
@@ -1135,12 +1135,12 @@ sub manifest
|
||||
$oParamHash{path} = $strPathOp;
|
||||
|
||||
# Add remote info to debug string
|
||||
my $strRemote = 'remote (' . $self->{oProtocol}->command_param_string(\%oParamHash) . ')';
|
||||
my $strRemote = 'remote (' . $self->{oProtocol}->commandParamString(\%oParamHash) . ')';
|
||||
$strDebug = "${strOperation}: ${strRemote}: ${strDebug}";
|
||||
&log(TRACE, "${strOperation}: ${strRemote}");
|
||||
|
||||
# Execute the command
|
||||
data_hash_build($oManifestHashRef, $self->{oProtocol}->command_execute($strOperation, \%oParamHash, true, $strDebug), "\t");
|
||||
data_hash_build($oManifestHashRef, $self->{oProtocol}->cmdExecute($strOperation, \%oParamHash, true, $strDebug), "\t");
|
||||
}
|
||||
# Run locally
|
||||
else
|
||||
@@ -1351,6 +1351,7 @@ sub copy
|
||||
$bIgnoreMissingSource = defined($bIgnoreMissingSource) ? $bIgnoreMissingSource : false;
|
||||
$bDestinationPathCreate = defined($bDestinationPathCreate) ? $bDestinationPathCreate : false;
|
||||
$bAppendChecksum = defined($bAppendChecksum) ? $bAppendChecksum : false;
|
||||
$strMode = defined($strMode) ? $strMode : '0640';
|
||||
|
||||
# Set working variables
|
||||
my $bSourceRemote = $self->is_remote($strSourcePathType) || $strSourcePathType eq PIPE_STDIN;
|
||||
@@ -1410,7 +1411,7 @@ sub copy
|
||||
{
|
||||
if ($strDestinationPathType eq PIPE_STDOUT)
|
||||
{
|
||||
$self->{oProtocol}->write_line(*STDOUT, 'block -1');
|
||||
$self->{oProtocol}->binaryXferAbort();
|
||||
}
|
||||
|
||||
confess &log(ERROR, $strError, $iErrorCode);
|
||||
@@ -1481,8 +1482,6 @@ sub copy
|
||||
$oParamHash{source_file} = $strSourceOp;
|
||||
$oParamHash{source_compressed} = $bSourceCompressed;
|
||||
$oParamHash{destination_compress} = $bDestinationCompress;
|
||||
|
||||
$hIn = $self->{oProtocol}->{hOut};
|
||||
}
|
||||
}
|
||||
# Else if source is local and destination is remote
|
||||
@@ -1522,8 +1521,6 @@ sub copy
|
||||
{
|
||||
$oParamHash{append_checksum} = true;
|
||||
}
|
||||
|
||||
$hOut = $self->{oProtocol}->{hIn};
|
||||
}
|
||||
}
|
||||
# Else source and destination are remote
|
||||
@@ -1566,7 +1563,7 @@ sub copy
|
||||
# Build debug string
|
||||
if (%oParamHash)
|
||||
{
|
||||
my $strRemote = 'remote (' . $self->{oProtocol}->command_param_string(\%oParamHash) . ')';
|
||||
my $strRemote = 'remote (' . $self->{oProtocol}->commandParamString(\%oParamHash) . ')';
|
||||
$strDebug = "${strOperation}: ${strRemote}: ${strDebug}";
|
||||
|
||||
&log(TRACE, "${strOperation}: ${strRemote}");
|
||||
@@ -1575,14 +1572,14 @@ sub copy
|
||||
# If an operation is defined then write it
|
||||
if (%oParamHash)
|
||||
{
|
||||
$self->{oProtocol}->command_write($strOperation, \%oParamHash);
|
||||
$self->{oProtocol}->cmdWrite($strOperation, \%oParamHash);
|
||||
}
|
||||
|
||||
# Transfer the file (skip this for copies where both sides are remote)
|
||||
if ($strOperation ne OP_FILE_COPY)
|
||||
{
|
||||
($strChecksum, $iFileSize) =
|
||||
$self->{oProtocol}->binary_xfer($hIn, $hOut, $strRemote, $bSourceCompressed, $bDestinationCompress);
|
||||
$self->{oProtocol}->binaryXfer($hIn, $hOut, $strRemote, $bSourceCompressed, $bDestinationCompress);
|
||||
}
|
||||
|
||||
# If this is the controlling process then wait for OK from remote
|
||||
@@ -1593,7 +1590,7 @@ sub copy
|
||||
|
||||
eval
|
||||
{
|
||||
$strOutput = $self->{oProtocol}->output_read(true, $strDebug, true);
|
||||
$strOutput = $self->{oProtocol}->outputRead(true, $strDebug, true);
|
||||
|
||||
# Check the result of the remote call
|
||||
if (substr($strOutput, 0, 1) eq 'Y')
|
||||
@@ -1663,24 +1660,24 @@ sub copy
|
||||
if (!$bSourceCompressed && $bDestinationCompress)
|
||||
{
|
||||
($strChecksum, $iFileSize) =
|
||||
$self->{oProtocol}->binary_xfer($hSourceFile, $hDestinationFile, 'out', false, true, false);
|
||||
$self->{oProtocol}->binaryXfer($hSourceFile, $hDestinationFile, 'out', false, true, false);
|
||||
}
|
||||
# If the source is compressed and the destination is not then decompress
|
||||
elsif ($bSourceCompressed && !$bDestinationCompress)
|
||||
{
|
||||
($strChecksum, $iFileSize) =
|
||||
$self->{oProtocol}->binary_xfer($hSourceFile, $hDestinationFile, 'in', true, false, false);
|
||||
$self->{oProtocol}->binaryXfer($hSourceFile, $hDestinationFile, 'in', true, false, false);
|
||||
}
|
||||
# Else both side are compressed, so copy capturing checksum
|
||||
elsif ($bSourceCompressed)
|
||||
{
|
||||
($strChecksum, $iFileSize) =
|
||||
$self->{oProtocol}->binary_xfer($hSourceFile, $hDestinationFile, 'out', true, true, false);
|
||||
$self->{oProtocol}->binaryXfer($hSourceFile, $hDestinationFile, 'out', true, true, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
($strChecksum, $iFileSize) =
|
||||
$self->{oProtocol}->binary_xfer($hSourceFile, $hDestinationFile, 'in', false, true, false);
|
||||
$self->{oProtocol}->binaryXfer($hSourceFile, $hDestinationFile, 'in', false, true, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,9 +18,9 @@ use BackRest::Utility;
|
||||
####################################################################################################################################
|
||||
# Operation constants
|
||||
####################################################################################################################################
|
||||
use constant OP_FILE_BASE => 'FileBase';
|
||||
use constant OP_FILE_COMMON => 'FileCommon';
|
||||
|
||||
use constant OP_FILE_BASE_PATH_SYNC => OP_FILE_BASE . '::filePathSync';
|
||||
use constant OP_FILE_COMMON_PATH_SYNC => OP_FILE_COMMON . '::filePathSync';
|
||||
|
||||
####################################################################################################################################
|
||||
# filePathSync
|
||||
@@ -31,7 +31,7 @@ sub filePathSync
|
||||
{
|
||||
my $strPath = shift;
|
||||
|
||||
logTrace(OP_FILE_BASE_PATH_SYNC, DEBUG_CALL, undef, {path => $strPath});
|
||||
logTrace(OP_FILE_COMMON_PATH_SYNC, DEBUG_CALL, undef, {path => \$strPath});
|
||||
|
||||
open(my $hPath, "<", $strPath)
|
||||
or confess &log(ERROR, "unable to open ${strPath}", ERROR_PATH_OPEN);
|
||||
|
||||
@@ -121,13 +121,13 @@ sub info
|
||||
|
||||
$strOutput .= ' oldest backup label: ' . $$oOldestBackup{&INFO_KEY_LABEL} . "\n";
|
||||
$strOutput .= ' oldest backup timestamp: ' .
|
||||
timestamp_string_get(undef, $$oOldestBackup{&INFO_BACKUP_KEY_TIMESTAMP_STOP}) . "\n";
|
||||
timestamp_string_get(undef, $$oOldestBackup{&INFO_SECTION_TIMESTAMP}{&INFO_KEY_START}) . "\n";
|
||||
|
||||
my $oLatestBackup = $$oStanzaInfo{&INFO_BACKUP_SECTION_BACKUP}[@{$$oStanzaInfo{&INFO_BACKUP_SECTION_BACKUP}} - 1];
|
||||
|
||||
$strOutput .= ' latest backup label: ' . $$oLatestBackup{&INFO_KEY_LABEL} . "\n";
|
||||
$strOutput .= ' latest backup timestamp: ' .
|
||||
timestamp_string_get(undef, $$oLatestBackup{&INFO_BACKUP_KEY_TIMESTAMP_STOP}) . "\n";
|
||||
timestamp_string_get(undef, $$oLatestBackup{&INFO_SECTION_TIMESTAMP}{&INFO_KEY_START}) . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,7 +136,16 @@ sub info
|
||||
elsif (optionTest(OPTION_OUTPUT, INFO_OUTPUT_JSON))
|
||||
{
|
||||
my $oJSON = JSON::PP->new()->canonical()->pretty()->indent_length(4);
|
||||
syswrite(*STDOUT, $oJSON->encode($oStanzaList));
|
||||
my $strJSON = $oJSON->encode($oStanzaList);
|
||||
|
||||
syswrite(*STDOUT, $strJSON);
|
||||
|
||||
# On some systems a linefeed will be appended by encode() but others will not have it. In our case there should always
|
||||
# be a terminating linefeed.
|
||||
if ($strJSON !~ /\n$/)
|
||||
{
|
||||
syswrite(*STDOUT, "\n");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -171,10 +180,10 @@ sub listStanza
|
||||
}
|
||||
|
||||
# Trace the remote parameters
|
||||
&log(TRACE, "${strOperation}: remote (" . $oFile->{oProtocol}->command_param_string($oParamHash) . ')');
|
||||
&log(TRACE, "${strOperation}: remote (" . $oFile->{oProtocol}->commandParamString($oParamHash) . ')');
|
||||
|
||||
# Execute the command
|
||||
my $strStanzaList = $oFile->{oProtocol}->command_execute($strOperation, $oParamHash, true);
|
||||
my $strStanzaList = $oFile->{oProtocol}->cmdExecute($strOperation, $oParamHash, true);
|
||||
|
||||
# Trace the remote response
|
||||
&log(TRACE, "${strOperation}: remote json response (${strStanzaList})");
|
||||
|
||||
@@ -8,6 +8,7 @@ use warnings FATAL => qw(all);
|
||||
use Carp qw(confess);
|
||||
|
||||
use Exporter qw(import);
|
||||
use Fcntl qw(:mode O_WRONLY O_CREAT O_TRUNC);
|
||||
use File::Basename qw(dirname basename);
|
||||
use IO::Handle;
|
||||
use JSON::PP;
|
||||
@@ -221,7 +222,7 @@ sub iniSave
|
||||
my $hFile;
|
||||
my $bFirst = true;
|
||||
|
||||
open($hFile, '>', $strFileName)
|
||||
sysopen($hFile, $strFileName, O_WRONLY | O_CREAT | O_TRUNC, 0640)
|
||||
or confess &log(ERROR, "unable to open ${strFileName}");
|
||||
|
||||
# Create the JSON object canonical so that fields are alpha ordered to pass unit tests
|
||||
|
||||
@@ -70,17 +70,17 @@ sub lockAcquire
|
||||
confess &lock(ASSERT, "${strCurrentLockType} lock is already held");
|
||||
}
|
||||
|
||||
# Create the lock path if it does not exist
|
||||
# Create the lock path if it does not exist. Use 770 so that members of the group can run read-only processes.
|
||||
if (! -e lockPathName(optionGet(OPTION_REPO_PATH)))
|
||||
{
|
||||
mkdir lockPathName(optionGet(OPTION_REPO_PATH))
|
||||
mkdir (lockPathName(optionGet(OPTION_REPO_PATH)), 0770)
|
||||
or confess(ERROR, 'unable to create lock path ' . lockPathName(optionGet(OPTION_REPO_PATH)), ERROR_PATH_CREATE);
|
||||
}
|
||||
|
||||
# Attempt to open the lock file
|
||||
$strCurrentLockFile = lockFileName($strLockType, optionGet(OPTION_STANZA), optionGet(OPTION_REPO_PATH));
|
||||
|
||||
sysopen($hCurrentLockHandle, $strCurrentLockFile, O_WRONLY | O_CREAT)
|
||||
sysopen($hCurrentLockHandle, $strCurrentLockFile, O_WRONLY | O_CREAT, 0660)
|
||||
or confess &log(ERROR, "unable to open lock file ${strCurrentLockFile}", ERROR_FILE_OPEN);
|
||||
|
||||
# Attempt to lock the lock file
|
||||
|
||||
@@ -34,6 +34,8 @@ use constant FILE_MANIFEST => 'backup.m
|
||||
push @EXPORT, qw(FILE_MANIFEST);
|
||||
use constant PATH_PG_TBLSPC => 'pg_tblspc';
|
||||
push @EXPORT, qw(PATH_PG_TBLSPC);
|
||||
use constant FILE_PG_CONTROL => 'global/pg_control';
|
||||
push @EXPORT, qw(FILE_PG_CONTROL);
|
||||
|
||||
####################################################################################################################################
|
||||
# MANIFEST Constants
|
||||
|
||||
@@ -1,122 +0,0 @@
|
||||
####################################################################################################################################
|
||||
# OPEN3 MODULE
|
||||
####################################################################################################################################
|
||||
package BackRest::Open3;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
use Carp qw(confess);
|
||||
|
||||
use File::Basename qw(dirname);
|
||||
use IO::Select;
|
||||
use IPC::Open3;
|
||||
use POSIX ':sys_wait_h';
|
||||
|
||||
use lib dirname($0) . '/../lib';
|
||||
use BackRest::Exception;
|
||||
use BackRest::Utility;
|
||||
|
||||
####################################################################################################################################
|
||||
# Operation constants
|
||||
####################################################################################################################################
|
||||
use constant OP_OPEN3 => 'Open3';
|
||||
|
||||
use constant OP_OPEN3_NEW => OP_OPEN3 . "->new";
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
####################################################################################################################################
|
||||
sub new
|
||||
{
|
||||
my $class = shift; # Class name
|
||||
my $strCommand = shift; # Command to execute
|
||||
|
||||
# Debug
|
||||
logDebug(OP_OPEN3_NEW, DEBUG_CALL, undef, {command => $strCommand});
|
||||
|
||||
# Create the class hash
|
||||
my $self = {};
|
||||
bless $self, $class;
|
||||
|
||||
# Store the command
|
||||
defined($strCommand)
|
||||
or confess &log(ASSERT, 'strCommand parameter is required');
|
||||
|
||||
$self->{strCommand} = $strCommand;
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# run
|
||||
####################################################################################################################################
|
||||
sub run
|
||||
{
|
||||
my $self = shift;
|
||||
my $bInput = shift;
|
||||
|
||||
# Execute the command
|
||||
if (defined($bInput) && $bInput)
|
||||
{
|
||||
$self->{pId} = open3($self->{hIn}, $self->{hOut}, $self->{hError}, $self->{strCommand});
|
||||
}
|
||||
else
|
||||
{
|
||||
$self->{pId} = open3(undef, $self->{hOut}, $self->{hError}, $self->{strCommand});
|
||||
}
|
||||
|
||||
# Create select objects
|
||||
$self->{oErrorSelect} = IO::Select->new();
|
||||
$self->{oErrorSelect}->add($self->{hError});
|
||||
$self->{oOutSelect} = IO::Select->new();
|
||||
$self->{oOutSelect}->add($self->{hOut});
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# capture
|
||||
####################################################################################################################################
|
||||
sub capture
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
# Run the command without input
|
||||
$self->run(false);
|
||||
|
||||
# While the process is running drain the stdout and stderr streams
|
||||
my $strLine;
|
||||
|
||||
while(waitpid($self->{pId}, WNOHANG) == 0)
|
||||
{
|
||||
# Drain the stderr stream
|
||||
if ($self->{oErrorSelect}->can_read(.1))
|
||||
{
|
||||
while ($strLine = readline($self->{hError}))
|
||||
{
|
||||
$self->{strErrorLog} .= $strLine;
|
||||
}
|
||||
}
|
||||
|
||||
# Drain the stdout stream
|
||||
if ($self->{oOutSelect}->can_read(.1))
|
||||
{
|
||||
while ($strLine = readline($self->{hOut}))
|
||||
{
|
||||
$self->{strOutLog} .= $strLine;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Check the exit status and output an error if needed
|
||||
my $iExitStatus = ${^CHILD_ERROR_NATIVE} >> 8;
|
||||
|
||||
# Check exit status and output error
|
||||
if ($iExitStatus != 0)
|
||||
{
|
||||
confess &log(ERROR, "unable to execute '$self->{strCommand}' (returned ${iExitStatus})" .
|
||||
(defined($self->{strErrorLog}) ? "\n$self->{strErrorLog}" : ''));
|
||||
}
|
||||
|
||||
return $self->{strOutLog};
|
||||
}
|
||||
|
||||
1;
|
||||
File diff suppressed because it is too large
Load Diff
629
lib/BackRest/Protocol/Common.pm
Normal file
629
lib/BackRest/Protocol/Common.pm
Normal file
@@ -0,0 +1,629 @@
|
||||
####################################################################################################################################
|
||||
# PROTOCOL COMMON MODULE
|
||||
####################################################################################################################################
|
||||
package BackRest::Protocol::Common;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
use Carp qw(confess);
|
||||
|
||||
use Compress::Raw::Zlib qw(WANT_GZIP Z_OK Z_BUF_ERROR Z_STREAM_END);
|
||||
use File::Basename qw(dirname);
|
||||
use IO::String qw();
|
||||
|
||||
use lib dirname($0) . '/../lib';
|
||||
use BackRest::Config;
|
||||
use BackRest::Exception;
|
||||
use BackRest::Ini;
|
||||
use BackRest::Protocol::IO;
|
||||
use BackRest::Utility;
|
||||
|
||||
####################################################################################################################################
|
||||
# Operation constants
|
||||
####################################################################################################################################
|
||||
use constant OP_PROTOCOL_COMMON => 'Protocol::Common';
|
||||
|
||||
use constant OP_PROTOCOL_COMMON_NEW => OP_PROTOCOL_COMMON . "->new";
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
####################################################################################################################################
|
||||
sub new
|
||||
{
|
||||
my $class = shift; # Class name
|
||||
my $iBlockSize = shift; # Buffer size
|
||||
my $iCompressLevel = shift; # Set compression level
|
||||
my $iCompressLevelNetwork = shift; # Set compression level for network only compression
|
||||
my $strName = shift; # Name to be used for gretting
|
||||
|
||||
# Debug
|
||||
logTrace(OP_PROTOCOL_COMMON_NEW, DEBUG_CALL, undef,
|
||||
{iBlockSize => $iBlockSize, iCompressLevel => $iCompressLevel, iCompressNetworkLevel => $iCompressLevelNetwork});
|
||||
|
||||
# Create the class hash
|
||||
my $self = {};
|
||||
bless $self, $class;
|
||||
|
||||
# Set default block size
|
||||
$self->{iBlockSize} = $iBlockSize;
|
||||
|
||||
if (!defined($self->{iBlockSize}))
|
||||
{
|
||||
confess &log(ASSERT, 'iBlockSize must be set');
|
||||
}
|
||||
|
||||
# Set compress levels
|
||||
$self->{iCompressLevel} = $iCompressLevel;
|
||||
|
||||
if (!defined($self->{iCompressLevel}))
|
||||
{
|
||||
confess &log(ASSERT, 'iCompressLevel must be set');
|
||||
}
|
||||
|
||||
$self->{iCompressLevelNetwork} = $iCompressLevelNetwork;
|
||||
|
||||
if (!defined($self->{iCompressLevelNetwork}))
|
||||
{
|
||||
confess &log(ASSERT, 'iCompressLevelNetwork must be set');
|
||||
}
|
||||
|
||||
# Create the greeting that will be used to check versions with the remote
|
||||
if (defined($strName))
|
||||
{
|
||||
$self->{strName} = $strName;
|
||||
$self->{strGreeting} = 'PG_BACKREST_' . uc($strName) . ' ' . BACKREST_VERSION;
|
||||
}
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# pipeToString
|
||||
#
|
||||
# Copies data from a file handle into a string.
|
||||
####################################################################################################################################
|
||||
sub pipeToString
|
||||
{
|
||||
my $self = shift;
|
||||
my $hOut = shift;
|
||||
|
||||
my $strBuffer;
|
||||
my $hString = IO::String->new($strBuffer);
|
||||
$self->binaryXfer($hOut, $hString);
|
||||
|
||||
return $strBuffer;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# blockRead
|
||||
#
|
||||
# Read a block from the protocol layer.
|
||||
####################################################################################################################################
|
||||
sub blockRead
|
||||
{
|
||||
my $self = shift;
|
||||
my $io = shift;
|
||||
my $strBlockRef = shift;
|
||||
my $bProtocol = shift;
|
||||
|
||||
my $iBlockSize;
|
||||
my $strMessage;
|
||||
|
||||
if ($bProtocol)
|
||||
{
|
||||
# Read the block header and make sure it's valid
|
||||
my $strBlockHeader = $self->{io}->lineRead();
|
||||
|
||||
if ($strBlockHeader !~ /^block -{0,1}[0-9]+( .*){0,1}$/)
|
||||
{
|
||||
$self->{io}->waitPid();
|
||||
confess "unable to read block header ${strBlockHeader}";
|
||||
}
|
||||
|
||||
# Get block size from the header
|
||||
my @stryToken = split(/ /, $strBlockHeader);
|
||||
$iBlockSize = $stryToken[1];
|
||||
$strMessage = $stryToken[2];
|
||||
|
||||
# If block size is 0 or an error code then undef the buffer
|
||||
if ($iBlockSize <= 0)
|
||||
{
|
||||
undef($$strBlockRef);
|
||||
}
|
||||
# Else read the block
|
||||
else
|
||||
{
|
||||
my $iBlockRead = 0;
|
||||
my $iBlockIn = 0;
|
||||
my $iOffset = defined($$strBlockRef) ? length($$strBlockRef) : 0;
|
||||
|
||||
# !!! Would be nice to modify this with a non-blocking read
|
||||
# http://docstore.mik.ua/orelly/perl/cookbook/ch07_15.htm
|
||||
|
||||
# Read as many chunks as it takes to get the full block
|
||||
while ($iBlockRead != $iBlockSize)
|
||||
{
|
||||
$iBlockIn = $io->bufferRead($strBlockRef, $iBlockSize - $iBlockRead, $iBlockRead + $iOffset);
|
||||
$iBlockRead += $iBlockIn;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$iBlockSize = $io->bufferRead($strBlockRef, $self->{iBlockSize}, defined($$strBlockRef) ? length($$strBlockRef) : undef);
|
||||
}
|
||||
|
||||
# Return the block size
|
||||
return $iBlockSize, $strMessage;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# blockWrite
|
||||
#
|
||||
# Write a block to the protocol layer.
|
||||
####################################################################################################################################
|
||||
sub blockWrite
|
||||
{
|
||||
my $self = shift;
|
||||
my $io = shift;
|
||||
my $tBlockRef = shift;
|
||||
my $iBlockSize = shift;
|
||||
my $bProtocol = shift;
|
||||
my $strMessage = shift;
|
||||
|
||||
# If block size is not defined, get it from buffer length
|
||||
$iBlockSize = defined($iBlockSize) ? $iBlockSize : length($$tBlockRef);
|
||||
|
||||
# Write block header to the protocol stream
|
||||
if ($bProtocol)
|
||||
{
|
||||
$io->lineWrite("block ${iBlockSize}" . (defined($strMessage) ? " ${strMessage}" : ''));
|
||||
}
|
||||
|
||||
# Write block if size > 0
|
||||
if ($iBlockSize > 0)
|
||||
{
|
||||
$io->bufferWrite($tBlockRef, $iBlockSize);
|
||||
}
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# binaryXfer
|
||||
#
|
||||
# Copies data from one file handle to another, optionally compressing or decompressing the data in stream. If $strRemote != none
|
||||
# then one side is a protocol stream, though this can be controlled with the bProtocol param.
|
||||
####################################################################################################################################
|
||||
sub binaryXfer
|
||||
{
|
||||
my $self = shift;
|
||||
my $hIn = shift;
|
||||
my $hOut = shift;
|
||||
my $strRemote = shift;
|
||||
my $bSourceCompressed = shift;
|
||||
my $bDestinationCompress = shift;
|
||||
my $bProtocol = shift;
|
||||
|
||||
# The input stream must be defined
|
||||
if (!defined($hIn))
|
||||
{
|
||||
if (defined($self->{io}))
|
||||
{
|
||||
$hIn = $self->{io}->hInGet();
|
||||
}
|
||||
else
|
||||
{
|
||||
confess &log(ASSERT, 'hIn is not defined');
|
||||
}
|
||||
}
|
||||
|
||||
# The output stream must be defined unless 'none' is passed
|
||||
if (!defined($hOut))
|
||||
{
|
||||
if (defined($self->{io}))
|
||||
{
|
||||
$hOut = $self->{io}->hOutGet();
|
||||
}
|
||||
else
|
||||
{
|
||||
confess &log(ASSERT, 'hOut is not defined');
|
||||
}
|
||||
}
|
||||
elsif ($hOut eq 'none')
|
||||
{
|
||||
undef($hOut);
|
||||
}
|
||||
|
||||
# If no remote is defined then set to none
|
||||
if (!defined($strRemote))
|
||||
{
|
||||
$strRemote = 'none';
|
||||
}
|
||||
# Only set compression defaults when remote is defined
|
||||
else
|
||||
{
|
||||
$bSourceCompressed = defined($bSourceCompressed) ? $bSourceCompressed : false;
|
||||
$bDestinationCompress = defined($bDestinationCompress) ? $bDestinationCompress : false;
|
||||
}
|
||||
|
||||
# Default protocol to true
|
||||
$bProtocol = defined($bProtocol) ? $bProtocol : true;
|
||||
my $strMessage = undef;
|
||||
|
||||
# Create IO object for this transfer
|
||||
my $io = new BackRest::Protocol::IO($hIn, $hOut, $self->{io}->{hErr}, $self->{io}->{pid});
|
||||
|
||||
# Checksum and size
|
||||
my $strChecksum = undef;
|
||||
my $iFileSize = undef;
|
||||
|
||||
# Read from the protocol stream
|
||||
if ($strRemote eq 'in')
|
||||
{
|
||||
# If the destination should not be compressed then decompress
|
||||
if (!$bDestinationCompress)
|
||||
{
|
||||
my $iBlockSize;
|
||||
my $tCompressedBuffer;
|
||||
my $tUncompressedBuffer;
|
||||
my $iUncompressedBufferSize;
|
||||
|
||||
# Initialize SHA
|
||||
my $oSHA;
|
||||
|
||||
if (!$bProtocol)
|
||||
{
|
||||
$oSHA = Digest::SHA->new('sha1');
|
||||
}
|
||||
|
||||
# Initialize inflate object and check for errors
|
||||
my ($oZLib, $iZLibStatus) =
|
||||
new Compress::Raw::Zlib::Inflate(WindowBits => 15 & $bSourceCompressed ? WANT_GZIP : 0,
|
||||
Bufsize => $self->{iBlockSize}, LimitOutput => 1);
|
||||
|
||||
if ($iZLibStatus != Z_OK)
|
||||
{
|
||||
confess &log(ERROR, "unable create a inflate object: ${iZLibStatus}");
|
||||
}
|
||||
|
||||
# Read all input
|
||||
do
|
||||
{
|
||||
# Read a block from the input stream
|
||||
($iBlockSize, $strMessage) = $self->blockRead($io, \$tCompressedBuffer, $bProtocol);
|
||||
|
||||
# Process protocol messages
|
||||
if (defined($strMessage) && $strMessage eq 'nochecksum')
|
||||
{
|
||||
$oSHA = Digest::SHA->new('sha1');
|
||||
undef($strMessage);
|
||||
}
|
||||
|
||||
# If the block contains data, decompress it
|
||||
if ($iBlockSize > 0)
|
||||
{
|
||||
# Keep looping while there is more to decompress
|
||||
do
|
||||
{
|
||||
# Decompress data
|
||||
$iZLibStatus = $oZLib->inflate($tCompressedBuffer, $tUncompressedBuffer);
|
||||
$iUncompressedBufferSize = length($tUncompressedBuffer);
|
||||
|
||||
# If status is ok, write the data
|
||||
if ($iZLibStatus == Z_OK || $iZLibStatus == Z_BUF_ERROR || $iZLibStatus == Z_STREAM_END)
|
||||
{
|
||||
if ($iUncompressedBufferSize > 0)
|
||||
{
|
||||
# Add data to checksum
|
||||
if (defined($oSHA))
|
||||
{
|
||||
$oSHA->add($tUncompressedBuffer);
|
||||
}
|
||||
|
||||
# Write data if hOut is defined
|
||||
if (defined($hOut))
|
||||
{
|
||||
$io->bufferWrite(\$tUncompressedBuffer, $iUncompressedBufferSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
# Else error, exit so it can be handled
|
||||
else
|
||||
{
|
||||
$iBlockSize = 0;
|
||||
last;
|
||||
}
|
||||
}
|
||||
while ($iZLibStatus != Z_STREAM_END && $iUncompressedBufferSize > 0 && $iBlockSize > 0);
|
||||
}
|
||||
}
|
||||
while ($iBlockSize > 0);
|
||||
|
||||
# Make sure the decompression succeeded (iBlockSize < 0 indicates remote error, handled later)
|
||||
if ($iBlockSize == 0 && $iZLibStatus != Z_STREAM_END)
|
||||
{
|
||||
confess &log(ERROR, "unable to inflate stream: ${iZLibStatus}");
|
||||
}
|
||||
|
||||
# Get checksum and total uncompressed bytes written
|
||||
if (defined($oSHA))
|
||||
{
|
||||
$strChecksum = $oSHA->hexdigest();
|
||||
$iFileSize = $oZLib->total_out();
|
||||
};
|
||||
}
|
||||
# If the destination should be compressed then just write out the already compressed stream
|
||||
else
|
||||
{
|
||||
my $iBlockSize;
|
||||
my $tBuffer;
|
||||
|
||||
# Initialize checksum and size
|
||||
my $oSHA;
|
||||
|
||||
if (!$bProtocol)
|
||||
{
|
||||
$oSHA = Digest::SHA->new('sha1');
|
||||
$iFileSize = 0;
|
||||
}
|
||||
|
||||
do
|
||||
{
|
||||
# Read a block from the protocol stream
|
||||
($iBlockSize, $strMessage) = $self->blockRead($io, \$tBuffer, $bProtocol);
|
||||
|
||||
# If the block contains data, write it
|
||||
if ($iBlockSize > 0)
|
||||
{
|
||||
# Add data to checksum and size
|
||||
if (!$bProtocol)
|
||||
{
|
||||
$oSHA->add($tBuffer);
|
||||
$iFileSize += $iBlockSize;
|
||||
}
|
||||
|
||||
$io->bufferWrite(\$tBuffer, $iBlockSize);
|
||||
undef($tBuffer);
|
||||
}
|
||||
}
|
||||
while ($iBlockSize > 0);
|
||||
|
||||
# Get checksum
|
||||
if (!$bProtocol)
|
||||
{
|
||||
$strChecksum = $oSHA->hexdigest();
|
||||
};
|
||||
}
|
||||
}
|
||||
# Read from file input stream
|
||||
else
|
||||
{
|
||||
# If source is not already compressed then compress it
|
||||
if ($strRemote eq 'out' && !$bSourceCompressed)
|
||||
{
|
||||
my $iBlockSize;
|
||||
my $tCompressedBuffer;
|
||||
my $iCompressedBufferSize;
|
||||
my $tUncompressedBuffer;
|
||||
|
||||
# Initialize message to indicate that a checksum will be sent
|
||||
if ($bProtocol && defined($hOut))
|
||||
{
|
||||
$strMessage = 'checksum';
|
||||
}
|
||||
|
||||
# Initialize checksum
|
||||
my $oSHA = Digest::SHA->new('sha1');
|
||||
|
||||
# Initialize inflate object and check for errors
|
||||
my ($oZLib, $iZLibStatus) =
|
||||
new Compress::Raw::Zlib::Deflate(WindowBits => 15 & $bDestinationCompress ? WANT_GZIP : 0,
|
||||
Level => $bDestinationCompress ? $self->{iCompressLevel} :
|
||||
$self->{iCompressLevelNetwork},
|
||||
Bufsize => $self->{iBlockSize}, AppendOutput => 1);
|
||||
|
||||
if ($iZLibStatus != Z_OK)
|
||||
{
|
||||
confess &log(ERROR, "unable create a deflate object: ${iZLibStatus}");
|
||||
}
|
||||
|
||||
do
|
||||
{
|
||||
# Read a block from the stream
|
||||
$iBlockSize = $io->bufferRead(\$tUncompressedBuffer, $self->{iBlockSize});
|
||||
|
||||
# If block size > 0 then compress
|
||||
if ($iBlockSize > 0)
|
||||
{
|
||||
# Update checksum and filesize
|
||||
$oSHA->add($tUncompressedBuffer);
|
||||
|
||||
# Compress the data
|
||||
$iZLibStatus = $oZLib->deflate($tUncompressedBuffer, $tCompressedBuffer);
|
||||
$iCompressedBufferSize = length($tCompressedBuffer);
|
||||
|
||||
# If compression was successful
|
||||
if ($iZLibStatus == Z_OK)
|
||||
{
|
||||
# The compressed data is larger than block size, then write
|
||||
if ($iCompressedBufferSize > $self->{iBlockSize})
|
||||
{
|
||||
$self->blockWrite($io, \$tCompressedBuffer, $iCompressedBufferSize, $bProtocol, $strMessage);
|
||||
undef($tCompressedBuffer);
|
||||
undef($strMessage);
|
||||
}
|
||||
}
|
||||
# Else if error
|
||||
else
|
||||
{
|
||||
$iBlockSize = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
while ($iBlockSize > 0);
|
||||
|
||||
# If good so far flush out the last bytes
|
||||
if ($iZLibStatus == Z_OK)
|
||||
{
|
||||
$iZLibStatus = $oZLib->flush($tCompressedBuffer);
|
||||
}
|
||||
|
||||
# Make sure the compression succeeded
|
||||
if ($iZLibStatus != Z_OK)
|
||||
{
|
||||
confess &log(ERROR, "unable to deflate stream: ${iZLibStatus}");
|
||||
}
|
||||
|
||||
# Get checksum and total uncompressed bytes written
|
||||
$strChecksum = $oSHA->hexdigest();
|
||||
$iFileSize = $oZLib->total_in();
|
||||
|
||||
# Write out the last block
|
||||
if (defined($hOut))
|
||||
{
|
||||
$iCompressedBufferSize = length($tCompressedBuffer);
|
||||
|
||||
if ($iCompressedBufferSize > 0)
|
||||
{
|
||||
$self->blockWrite($io, \$tCompressedBuffer, $iCompressedBufferSize, $bProtocol, $strMessage);
|
||||
undef($strMessage);
|
||||
}
|
||||
|
||||
$self->blockWrite($io, undef, 0, $bProtocol, "${strChecksum}-${iFileSize}");
|
||||
}
|
||||
}
|
||||
# If source is already compressed or transfer is not compressed then just read the stream
|
||||
else
|
||||
{
|
||||
my $iBlockSize;
|
||||
my $tBuffer;
|
||||
my $tCompressedBuffer;
|
||||
my $tUncompressedBuffer;
|
||||
my $iUncompressedBufferSize;
|
||||
my $oSHA;
|
||||
my $oZLib;
|
||||
my $iZLibStatus;
|
||||
|
||||
# If the destination will be compressed setup deflate
|
||||
if ($bDestinationCompress)
|
||||
{
|
||||
if ($bProtocol)
|
||||
{
|
||||
$strMessage = 'checksum';
|
||||
}
|
||||
|
||||
# Initialize checksum and size
|
||||
$oSHA = Digest::SHA->new('sha1');
|
||||
$iFileSize = 0;
|
||||
|
||||
# Initialize inflate object and check for errors
|
||||
($oZLib, $iZLibStatus) =
|
||||
new Compress::Raw::Zlib::Inflate(WindowBits => WANT_GZIP, Bufsize => $self->{iBlockSize}, LimitOutput => 1);
|
||||
|
||||
if ($iZLibStatus != Z_OK)
|
||||
{
|
||||
confess &log(ERROR, "unable create a inflate object: ${iZLibStatus}");
|
||||
}
|
||||
}
|
||||
# Initialize message to indicate that a checksum will not be sent
|
||||
elsif ($bProtocol)
|
||||
{
|
||||
$strMessage = 'nochecksum';
|
||||
}
|
||||
|
||||
# Read input
|
||||
do
|
||||
{
|
||||
$iBlockSize = $io->bufferRead(\$tBuffer, $self->{iBlockSize});
|
||||
|
||||
# Write a block if size > 0
|
||||
if ($iBlockSize > 0)
|
||||
{
|
||||
$self->blockWrite($io, \$tBuffer, $iBlockSize, $bProtocol, $strMessage);
|
||||
undef($strMessage);
|
||||
}
|
||||
|
||||
# Decompress the buffer to calculate checksum/size
|
||||
if ($bDestinationCompress)
|
||||
{
|
||||
# If the block contains data, decompress it
|
||||
if ($iBlockSize > 0)
|
||||
{
|
||||
# Copy file buffer to compressed buffer
|
||||
if (defined($tCompressedBuffer))
|
||||
{
|
||||
$tCompressedBuffer .= $tBuffer;
|
||||
}
|
||||
else
|
||||
{
|
||||
$tCompressedBuffer = $tBuffer;
|
||||
}
|
||||
|
||||
# Keep looping while there is more to decompress
|
||||
do
|
||||
{
|
||||
# Decompress data
|
||||
$iZLibStatus = $oZLib->inflate($tCompressedBuffer, $tUncompressedBuffer);
|
||||
$iUncompressedBufferSize = length($tUncompressedBuffer);
|
||||
|
||||
# If status is ok, write the data
|
||||
if ($iZLibStatus == Z_OK || $iZLibStatus == Z_BUF_ERROR || $iZLibStatus == Z_STREAM_END)
|
||||
{
|
||||
if ($iUncompressedBufferSize > 0)
|
||||
{
|
||||
$oSHA->add($tUncompressedBuffer);
|
||||
$iFileSize += $iUncompressedBufferSize;
|
||||
}
|
||||
}
|
||||
# Else error, exit so it can be handled
|
||||
else
|
||||
{
|
||||
$iBlockSize = 0;
|
||||
}
|
||||
}
|
||||
while ($iZLibStatus != Z_STREAM_END && $iUncompressedBufferSize > 0 && $iBlockSize > 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
while ($iBlockSize > 0);
|
||||
|
||||
# Check decompression get checksum
|
||||
if ($bDestinationCompress)
|
||||
{
|
||||
# Make sure the decompression succeeded (iBlockSize < 0 indicates remote error, handled later)
|
||||
if ($iBlockSize == 0 && $iZLibStatus != Z_STREAM_END)
|
||||
{
|
||||
confess &log(ERROR, "unable to inflate stream: ${iZLibStatus}");
|
||||
}
|
||||
|
||||
# Get checksum
|
||||
$strChecksum = $oSHA->hexdigest();
|
||||
|
||||
# Set protocol message
|
||||
if ($bProtocol)
|
||||
{
|
||||
$strMessage = "${strChecksum}-${iFileSize}";
|
||||
}
|
||||
}
|
||||
|
||||
# If protocol write
|
||||
if ($bProtocol)
|
||||
{
|
||||
# Write 0 block to indicate end of stream
|
||||
$self->blockWrite($io, undef, 0, $bProtocol, $strMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# If message is defined then the checksum and size should be in it
|
||||
if (defined($strMessage))
|
||||
{
|
||||
my @stryToken = split(/-/, $strMessage);
|
||||
$strChecksum = $stryToken[0];
|
||||
$iFileSize = $stryToken[1];
|
||||
}
|
||||
|
||||
# Return the checksum and size if they are available
|
||||
return $strChecksum, $iFileSize;
|
||||
}
|
||||
|
||||
1;
|
||||
261
lib/BackRest/Protocol/CommonMaster.pm
Normal file
261
lib/BackRest/Protocol/CommonMaster.pm
Normal file
@@ -0,0 +1,261 @@
|
||||
####################################################################################################################################
|
||||
# PROTOCOL COMMON MASTER MODULE
|
||||
####################################################################################################################################
|
||||
package BackRest::Protocol::CommonMaster;
|
||||
use parent 'BackRest::Protocol::Common';
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
use Carp qw(confess);
|
||||
|
||||
use File::Basename qw(dirname);
|
||||
|
||||
use lib dirname($0) . '/../lib';
|
||||
use BackRest::Config;
|
||||
use BackRest::Exception;
|
||||
use BackRest::Ini;
|
||||
use BackRest::Protocol::Common;
|
||||
use BackRest::Protocol::IO;
|
||||
use BackRest::Utility;
|
||||
|
||||
####################################################################################################################################
|
||||
# Operation constants
|
||||
####################################################################################################################################
|
||||
use constant OP_PROTOCOL_COMMON_MASTER => 'Protocol::CommonMaster';
|
||||
|
||||
use constant OP_PROTOCOL_COMMON_MASTER_NEW => OP_PROTOCOL_COMMON_MASTER . "->new";
|
||||
use constant OP_PROTOCOL_COMMON_MASTER_COMMAND_WRITE => OP_PROTOCOL_COMMON_MASTER . "->commandWrite";
|
||||
use constant OP_PROTOCOL_COMMON_MASTER_OUTPUT_READ => OP_PROTOCOL_COMMON_MASTER . "->outputRead";
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
####################################################################################################################################
|
||||
sub new
|
||||
{
|
||||
my $class = shift; # Class name
|
||||
my $strName = shift; # Name of the protocol
|
||||
my $strCommand = shift; # Command to execute on local/remote
|
||||
my $iBlockSize = shift; # Buffer size
|
||||
my $iCompressLevel = shift; # Set compression level
|
||||
my $iCompressLevelNetwork = shift; # Set compression level for network only compression
|
||||
|
||||
# Debug
|
||||
logDebug(OP_PROTOCOL_COMMON_MASTER_NEW, DEBUG_CALL, undef,
|
||||
{name => \$strName, command => \$strCommand, blockSize => $iBlockSize,
|
||||
compressLevel => $iCompressLevel, compressLevelNetwork => $iCompressLevelNetwork});
|
||||
|
||||
# Create the class hash
|
||||
my $self = $class->SUPER::new($iBlockSize, $iCompressLevel, $iCompressLevelNetwork, $strName);
|
||||
bless $self, $class;
|
||||
|
||||
# Set command
|
||||
if (!defined($strCommand))
|
||||
{
|
||||
confess &log(ASSERT, 'strCommand must be set');
|
||||
}
|
||||
|
||||
# Execute the command
|
||||
$self->{io} = BackRest::Protocol::IO->new3($strCommand);
|
||||
|
||||
# Check greeting to be sure the protocol matches
|
||||
$self->greetingRead();
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# DESTROY
|
||||
####################################################################################################################################
|
||||
sub DESTROY
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
# Only send the exit command if the process is running
|
||||
if (defined($self->{io}) && defined($self->{io}->pIdGet()))
|
||||
{
|
||||
&log(TRACE, "sending exit command to process");
|
||||
|
||||
$self->cmdWrite('exit');
|
||||
|
||||
# &log(TRACE, "waiting for remote process");
|
||||
# if (!$self->waitPid(5, false))
|
||||
# {
|
||||
# &log(TRACE, "killed remote process");
|
||||
# kill('KILL', $self->{pId});
|
||||
# }
|
||||
}
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# greetingRead
|
||||
#
|
||||
# Read the greeting and make sure it is as expected.
|
||||
####################################################################################################################################
|
||||
sub greetingRead
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
# Get the first line of output from the remote if possible
|
||||
my $strLine = $self->{io}->lineRead();
|
||||
|
||||
# If the line could not be read or does equal the greeting then error and exit
|
||||
if (!defined($strLine) || $strLine ne $self->{strGreeting})
|
||||
{
|
||||
$self->{io}->kill();
|
||||
|
||||
confess &log(ERROR, 'protocol version mismatch' . (defined($strLine) ? ": ${strLine}" : ''), ERROR_HOST_CONNECT);
|
||||
}
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# outputRead
|
||||
#
|
||||
# Read output from the remote process.
|
||||
####################################################################################################################################
|
||||
sub outputRead
|
||||
{
|
||||
my $self = shift;
|
||||
my $bOutputRequired = shift;
|
||||
my $strErrorPrefix = shift;
|
||||
my $bSuppressLog = shift;
|
||||
|
||||
logTrace(OP_PROTOCOL_COMMON_MASTER_OUTPUT_READ, DEBUG_CALL, undef,
|
||||
{isOutputRequired => $bOutputRequired, strErrorPrefix => \$strErrorPrefix, isSuppressLog => $bSuppressLog});
|
||||
|
||||
my $strLine;
|
||||
my $strOutput;
|
||||
my $bError = false;
|
||||
my $iErrorCode;
|
||||
my $strError;
|
||||
|
||||
# Read output lines
|
||||
while ($strLine = $self->{io}->lineRead(false))
|
||||
{
|
||||
# Exit if an error is found
|
||||
if ($strLine =~ /^ERROR.*/)
|
||||
{
|
||||
$bError = true;
|
||||
$iErrorCode = (split(' ', $strLine))[1];
|
||||
last;
|
||||
}
|
||||
|
||||
# Exit if OK is found
|
||||
if ($strLine =~ /^OK$/)
|
||||
{
|
||||
last;
|
||||
}
|
||||
|
||||
# Else append to output
|
||||
$strOutput .= (defined($strOutput) ? "\n" : '') . substr($strLine, 1);
|
||||
}
|
||||
|
||||
# Check if the process has exited abnormally
|
||||
$self->{io}->waitPid();
|
||||
|
||||
# Raise any errors
|
||||
if ($bError)
|
||||
{
|
||||
confess &log(ERROR, (defined($strErrorPrefix) ? "${strErrorPrefix}: " : '') .
|
||||
(defined($strOutput) ? "${strOutput}" : ''), $iErrorCode, $bSuppressLog);
|
||||
}
|
||||
|
||||
# If output is required and there is no output, raise exception
|
||||
if (defined($bOutputRequired) && $bOutputRequired && !defined($strOutput))
|
||||
{
|
||||
confess &log(ERROR, (defined($strErrorPrefix) ? "${strErrorPrefix}: " : '') . 'output is not defined');
|
||||
}
|
||||
|
||||
logTrace(OP_PROTOCOL_COMMON_MASTER_OUTPUT_READ, DEBUG_RESULT, undef, {strOutput => \$strOutput});
|
||||
|
||||
# Return output
|
||||
return $strOutput;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# commandParamString
|
||||
#
|
||||
# Output command parameters in the hash as a string (used for debugging).
|
||||
####################################################################################################################################
|
||||
sub commandParamString
|
||||
{
|
||||
my $self = shift;
|
||||
my $oParamHashRef = shift;
|
||||
|
||||
my $strParamList = '';
|
||||
|
||||
if (defined($oParamHashRef))
|
||||
{
|
||||
foreach my $strParam (sort(keys(%$oParamHashRef)))
|
||||
{
|
||||
$strParamList .= (defined($strParamList) ? ',' : '') . "${strParam}=" .
|
||||
(defined(${$oParamHashRef}{"${strParam}"}) ? ${$oParamHashRef}{"${strParam}"} : '[undef]');
|
||||
}
|
||||
}
|
||||
|
||||
return $strParamList;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# cmdWrite
|
||||
#
|
||||
# Send command to remote process.
|
||||
####################################################################################################################################
|
||||
sub cmdWrite
|
||||
{
|
||||
my $self = shift;
|
||||
my $strCommand = shift;
|
||||
my $oParamRef = shift;
|
||||
|
||||
logTrace(OP_PROTOCOL_COMMON_MASTER_COMMAND_WRITE, DEBUG_CALL, \$strCommand, $oParamRef);
|
||||
|
||||
if (defined($oParamRef))
|
||||
{
|
||||
$strCommand .= ":\n";
|
||||
|
||||
foreach my $strParam (sort(keys(%$oParamRef)))
|
||||
{
|
||||
if ($strParam =~ /=/)
|
||||
{
|
||||
confess &log(ASSERT, "param \"${strParam}\" cannot contain = character");
|
||||
}
|
||||
|
||||
my $strValue = ${$oParamRef}{"${strParam}"};
|
||||
|
||||
if ($strParam =~ /\n\$/)
|
||||
{
|
||||
confess &log(ASSERT, "param \"${strParam}\" value cannot end with LF");
|
||||
}
|
||||
|
||||
if (defined(${strValue}))
|
||||
{
|
||||
$strCommand .= "${strParam}=${strValue}\n";
|
||||
}
|
||||
}
|
||||
|
||||
$strCommand .= 'end';
|
||||
}
|
||||
|
||||
$self->{io}->lineWrite($strCommand);
|
||||
|
||||
logTrace(OP_PROTOCOL_COMMON_MASTER_COMMAND_WRITE, DEBUG_RESULT, undef, {strCommand => \$strCommand});
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# cmdExecute
|
||||
#
|
||||
# Send command to remote process and wait for output.
|
||||
####################################################################################################################################
|
||||
sub cmdExecute
|
||||
{
|
||||
my $self = shift;
|
||||
my $strCommand = shift;
|
||||
my $oParamRef = shift;
|
||||
my $bOutputRequired = shift;
|
||||
my $strErrorPrefix = shift;
|
||||
|
||||
$self->cmdWrite($strCommand, $oParamRef);
|
||||
|
||||
return $self->outputRead($bOutputRequired, $strErrorPrefix);
|
||||
}
|
||||
|
||||
1;
|
||||
220
lib/BackRest/Protocol/CommonMinion.pm
Normal file
220
lib/BackRest/Protocol/CommonMinion.pm
Normal file
@@ -0,0 +1,220 @@
|
||||
####################################################################################################################################
|
||||
# PROTOCOL COMMON MINION MODULE
|
||||
####################################################################################################################################
|
||||
package BackRest::Protocol::CommonMinion;
|
||||
use parent 'BackRest::Protocol::Common';
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
use Carp qw(confess);
|
||||
|
||||
use File::Basename qw(dirname);
|
||||
use Scalar::Util qw(blessed);
|
||||
|
||||
use lib dirname($0) . '/../lib';
|
||||
use BackRest::Config;
|
||||
use BackRest::Exception;
|
||||
use BackRest::Ini;
|
||||
use BackRest::Protocol::Common;
|
||||
use BackRest::Protocol::IO;
|
||||
use BackRest::Utility;
|
||||
|
||||
####################################################################################################################################
|
||||
# Operation constants
|
||||
####################################################################################################################################
|
||||
use constant OP_PROTOCOL_COMMON_MINION => 'Protocol::CommonMinion';
|
||||
|
||||
use constant OP_PROTOCOL_COMMON_MINION_NEW => OP_PROTOCOL_COMMON_MINION . "->new";
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
####################################################################################################################################
|
||||
sub new
|
||||
{
|
||||
my $class = shift; # Class name
|
||||
my $strName = shift; # Name of the protocol
|
||||
my $iBlockSize = shift; # Buffer size
|
||||
my $iCompressLevel = shift; # Set compression level
|
||||
my $iCompressLevelNetwork = shift; # Set compression level for network only compression
|
||||
|
||||
# Debug
|
||||
logTrace(OP_PROTOCOL_COMMON_MINION_NEW, DEBUG_CALL, undef,
|
||||
{name => \$strName, blockSize => $iBlockSize, compressLevel => $iCompressLevel,
|
||||
compressLevelNetwork => $iCompressLevelNetwork});
|
||||
|
||||
# Create the class hash
|
||||
my $self = $class->SUPER::new($iBlockSize, $iCompressLevel, $iCompressLevelNetwork, $strName);
|
||||
bless $self, $class;
|
||||
|
||||
# Create the greeting that will be used to check versions with the remote
|
||||
if (defined($strName))
|
||||
{
|
||||
$self->{strName} = $strName;
|
||||
$self->{strGreeting} = 'PG_BACKREST_' . uc($strName) . ' ' . BACKREST_VERSION;
|
||||
}
|
||||
|
||||
# Create the IO object with std io
|
||||
$self->{io} = new BackRest::Protocol::IO(*STDIN, *STDOUT, *STDERR);
|
||||
|
||||
# Write the greeting so master process knows who we are
|
||||
$self->greetingWrite();
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# greetingWrite
|
||||
#
|
||||
# Send a greeting to the master process.
|
||||
####################################################################################################################################
|
||||
sub greetingWrite
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
$self->{io}->lineWrite($self->{strGreeting});
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# textWrite
|
||||
#
|
||||
# Write text out to the protocol layer prefixing each line with a period.
|
||||
####################################################################################################################################
|
||||
sub textWrite
|
||||
{
|
||||
my $self = shift;
|
||||
my $strBuffer = shift;
|
||||
|
||||
$strBuffer =~ s/\n/\n\./g;
|
||||
|
||||
$self->{io}->lineWrite('.' . $strBuffer);
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# binaryXferAbort
|
||||
#
|
||||
# Abort transfer when source file does not exist.
|
||||
####################################################################################################################################
|
||||
sub binaryXferAbort
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
# Only allow in the backend process
|
||||
$self->{io}->lineWrite('block -1');
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# errorWrite
|
||||
#
|
||||
# Write errors with error codes in protocol format, otherwise write to stderr and exit with error.
|
||||
####################################################################################################################################
|
||||
sub errorWrite
|
||||
{
|
||||
my $self = shift;
|
||||
my $oMessage = shift;
|
||||
|
||||
my $iCode;
|
||||
my $strMessage;
|
||||
|
||||
# If the message is blessed it may be a standard exception
|
||||
if (blessed($oMessage))
|
||||
{
|
||||
# Check if it is a standard exception
|
||||
if ($oMessage->isa('BackRest::Exception'))
|
||||
{
|
||||
$iCode = $oMessage->code();
|
||||
$strMessage = $oMessage->message();
|
||||
}
|
||||
# Else terminate the process with an error
|
||||
else
|
||||
{
|
||||
$self->{io}->errorWrite('unknown error object');
|
||||
exit ERROR_UNKNOWN;
|
||||
}
|
||||
}
|
||||
# Else terminate the process with an error
|
||||
else
|
||||
{
|
||||
$self->{io}->errorWrite('unknown error: ' . $oMessage);
|
||||
exit ERROR_UNKNOWN;
|
||||
}
|
||||
|
||||
# Write the message text into protocol
|
||||
if (defined($strMessage))
|
||||
{
|
||||
$self->textWrite(trim($strMessage));
|
||||
}
|
||||
|
||||
# Indicate that an error ocurred and provide the code
|
||||
$self->{io}->lineWrite("ERROR" . (defined($iCode) ? " $iCode" : ''));
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# outputWrite
|
||||
#
|
||||
# Write output for the master process.
|
||||
####################################################################################################################################
|
||||
sub outputWrite
|
||||
{
|
||||
my $self = shift;
|
||||
my $strOutput = shift;
|
||||
|
||||
if (defined($strOutput))
|
||||
{
|
||||
$self->textWrite($strOutput);
|
||||
}
|
||||
|
||||
$self->{io}->lineWrite('OK');
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# cmdRead
|
||||
#
|
||||
# Read command sent by the master process.
|
||||
####################################################################################################################################
|
||||
sub cmdRead
|
||||
{
|
||||
my $self = shift;
|
||||
my $oParamHashRef = shift;
|
||||
|
||||
my $strLine;
|
||||
my $strCommand;
|
||||
|
||||
while ($strLine = $self->{io}->lineRead())
|
||||
{
|
||||
if (!defined($strCommand))
|
||||
{
|
||||
if ($strLine =~ /:$/)
|
||||
{
|
||||
$strCommand = substr($strLine, 0, length($strLine) - 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$strCommand = $strLine;
|
||||
last;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($strLine eq 'end')
|
||||
{
|
||||
last;
|
||||
}
|
||||
|
||||
my $iPos = index($strLine, '=');
|
||||
|
||||
if ($iPos == -1)
|
||||
{
|
||||
confess "param \"${strLine}\" is missing = character";
|
||||
}
|
||||
|
||||
my $strParam = substr($strLine, 0, $iPos);
|
||||
my $strValue = substr($strLine, $iPos + 1);
|
||||
|
||||
${$oParamHashRef}{"${strParam}"} = ${strValue};
|
||||
}
|
||||
}
|
||||
|
||||
return $strCommand;
|
||||
}
|
||||
|
||||
1;
|
||||
319
lib/BackRest/Protocol/IO.pm
Normal file
319
lib/BackRest/Protocol/IO.pm
Normal file
@@ -0,0 +1,319 @@
|
||||
####################################################################################################################################
|
||||
# PROTOCOL IO MODULE
|
||||
####################################################################################################################################
|
||||
package BackRest::Protocol::IO;
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
use Carp qw(confess);
|
||||
|
||||
use File::Basename qw(dirname);
|
||||
use IPC::Open3;
|
||||
use POSIX qw(:sys_wait_h);
|
||||
|
||||
use lib dirname($0) . '/../lib';
|
||||
use BackRest::Exception;
|
||||
use BackRest::Utility;
|
||||
|
||||
####################################################################################################################################
|
||||
# Operation constants
|
||||
####################################################################################################################################
|
||||
use constant OP_IO_PROTOCOL => 'IO';
|
||||
|
||||
use constant OP_IO_PROTOCOL_NEW => OP_IO_PROTOCOL . "->new";
|
||||
use constant OP_IO_PROTOCOL_NEW3 => OP_IO_PROTOCOL . "->new3";
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
####################################################################################################################################
|
||||
sub new
|
||||
{
|
||||
my $class = shift; # Class name
|
||||
my $hIn = shift; # Input stream
|
||||
my $hOut = shift; # Output stream
|
||||
my $hErr = shift; # Error stream
|
||||
my $pId = shift; # Process ID
|
||||
|
||||
# Debug
|
||||
logTrace(OP_IO_PROTOCOL_NEW3, DEBUG_CALL);
|
||||
|
||||
# Create the class hash
|
||||
my $self = {};
|
||||
bless $self, $class;
|
||||
|
||||
$self->{hIn} = $hIn;
|
||||
$self->{hOut} = $hOut;
|
||||
$self->{hErr} = $hErr;
|
||||
$self->{pId} = $pId;
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# new3
|
||||
#
|
||||
# Use open3 to run the command and get the io handles.
|
||||
####################################################################################################################################
|
||||
sub new3
|
||||
{
|
||||
my $class = shift;
|
||||
my $strCommand = shift;
|
||||
|
||||
# Debug
|
||||
logTrace(OP_IO_PROTOCOL_NEW3, DEBUG_CALL, undef, {command => \$strCommand});
|
||||
|
||||
# Use open3 to run the command
|
||||
my ($pId, $hIn, $hOut, $hErr);
|
||||
|
||||
$pId = IPC::Open3::open3($hIn, $hOut, $hErr, $strCommand);
|
||||
|
||||
# Return the IO class
|
||||
return $class->new($hOut, $hIn, $hErr, $pId);
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# Get pid/input/output handles
|
||||
####################################################################################################################################
|
||||
sub hInGet
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
return $self->{hIn};
|
||||
}
|
||||
|
||||
sub hOutGet
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
return $self->{hOut};
|
||||
}
|
||||
|
||||
sub pIdGet
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
return $self->{pId};
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# kill
|
||||
####################################################################################################################################
|
||||
sub kill
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
if (defined($self->{pId}))
|
||||
{
|
||||
kill 'KILL', $self->{pId};
|
||||
waitpid($self->{pId}, 0);
|
||||
undef($self->{pId});
|
||||
undef($self->{hIn});
|
||||
undef($self->{hOut});
|
||||
undef($self->{hErr});
|
||||
}
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# lineRead
|
||||
#
|
||||
# Read a line.
|
||||
####################################################################################################################################
|
||||
sub lineRead
|
||||
{
|
||||
my $self = shift;
|
||||
my $bError = shift;
|
||||
|
||||
my $strLine;
|
||||
my $strChar;
|
||||
my $iByteIn;
|
||||
|
||||
# my $oOutSelect = IO::Select->new();
|
||||
# $oOutSelect->add($self->{hOut});
|
||||
#
|
||||
# if ($oOutSelect->can_read(2))
|
||||
# {
|
||||
# $strLine = readline($self->{hOut});
|
||||
# $strLine = trim($strLine);
|
||||
# }
|
||||
|
||||
while (1)
|
||||
{
|
||||
$iByteIn = sysread($self->{hIn}, $strChar, 1);
|
||||
|
||||
if (!defined($iByteIn) || $iByteIn != 1)
|
||||
{
|
||||
$self->waitPid();
|
||||
|
||||
if (defined($bError) and !$bError)
|
||||
{
|
||||
return undef;
|
||||
}
|
||||
|
||||
confess &log(ERROR, 'unable to read 1 byte' . (defined($!) ? ': ' . $! : ''));
|
||||
}
|
||||
|
||||
if ($strChar eq "\n")
|
||||
{
|
||||
last;
|
||||
}
|
||||
|
||||
$strLine .= $strChar;
|
||||
}
|
||||
|
||||
return $strLine;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# errorWrite
|
||||
#
|
||||
# Write error data to the stream.
|
||||
####################################################################################################################################
|
||||
sub errorWrite
|
||||
{
|
||||
my $self = shift;
|
||||
my $strBuffer = shift;
|
||||
|
||||
if (defined($self->{pId}))
|
||||
{
|
||||
confess &log(ASSERT, 'errorWrite() not valid got master process.');
|
||||
}
|
||||
|
||||
$self->lineWrite($strBuffer, $self->{hError});
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# lineWrite
|
||||
#
|
||||
# Write line to the stream.
|
||||
####################################################################################################################################
|
||||
sub lineWrite
|
||||
{
|
||||
my $self = shift;
|
||||
my $strBuffer = shift;
|
||||
my $hOut = shift;
|
||||
|
||||
my $iLineOut = syswrite(defined($hOut) ? $hOut : $self->{hOut}, (defined($strBuffer) ? $strBuffer : '') . "\n");
|
||||
|
||||
if (!defined($iLineOut) || $iLineOut != (defined($strBuffer) ? length($strBuffer) : 0) + 1)
|
||||
{
|
||||
confess &log(ERROR, "unable to write ${strBuffer}: $!", ERROR_PROTOCOL);
|
||||
}
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# bufferRead
|
||||
#
|
||||
# Read data from a stream.
|
||||
####################################################################################################################################
|
||||
sub bufferRead
|
||||
{
|
||||
my $self = shift;
|
||||
my $tBlockRef = shift;
|
||||
my $iBlockSize = shift;
|
||||
my $iOffset = shift;
|
||||
|
||||
# Read a block from the stream
|
||||
my $iBlockIn = sysread($self->{hIn}, $$tBlockRef, $iBlockSize, defined($iOffset) ? $iOffset : 0);
|
||||
|
||||
if (!defined($iBlockIn))
|
||||
{
|
||||
$self->waitPid();
|
||||
confess &log(ERROR, 'unable to read');
|
||||
}
|
||||
|
||||
return $iBlockIn;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# bufferWrite
|
||||
#
|
||||
# Write data to a stream.
|
||||
####################################################################################################################################
|
||||
sub bufferWrite
|
||||
{
|
||||
my $self = shift;
|
||||
my $tBlockRef = shift;
|
||||
my $iBlockSize = shift;
|
||||
|
||||
# If block size is not defined, get it from buffer length
|
||||
$iBlockSize = defined($iBlockSize) ? $iBlockSize : length($$tBlockRef);
|
||||
|
||||
# Write the block
|
||||
my $iBlockOut = syswrite($self->{hOut}, $$tBlockRef, $iBlockSize);
|
||||
|
||||
# Report any errors
|
||||
if (!defined($iBlockOut) || $iBlockOut != $iBlockSize)
|
||||
{
|
||||
my $strError = $!;
|
||||
|
||||
$self->waitPid();
|
||||
confess "unable to write ${iBlockSize} bytes" . (defined($strError) ? ': ' . $strError : '');
|
||||
}
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# waitPid
|
||||
#
|
||||
# See if the remote process has terminated unexpectedly.
|
||||
####################################################################################################################################
|
||||
sub waitPid
|
||||
{
|
||||
my $self = shift;
|
||||
my $fWaitTime = shift;
|
||||
my $bReportError = shift;
|
||||
|
||||
# Record the start time and set initial sleep interval
|
||||
my $oWait = waitInit($fWaitTime);
|
||||
|
||||
if (defined($self->{pId}))
|
||||
{
|
||||
do
|
||||
{
|
||||
my $iResult = waitpid($self->{pId}, WNOHANG);
|
||||
|
||||
if (defined($fWaitTime))
|
||||
{
|
||||
confess &log(TRACE, "waitpid result = $iResult");
|
||||
}
|
||||
|
||||
# If there is no such process
|
||||
if ($iResult == -1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($iResult > 0)
|
||||
{
|
||||
if (!defined($bReportError) || $bReportError)
|
||||
{
|
||||
my $strError = 'no error on stderr';
|
||||
|
||||
if (!defined($self->{hErr}))
|
||||
{
|
||||
$strError = 'no error captured because stderr is already closed';
|
||||
}
|
||||
else
|
||||
{
|
||||
$strError = $self->pipeToString($self->{hErr});
|
||||
}
|
||||
|
||||
$self->{pId} = undef;
|
||||
$self->{hIn} = undef;
|
||||
$self->{hOut} = undef;
|
||||
$self->{hErr} = undef;
|
||||
|
||||
confess &log(ERROR, "remote process terminated: ${strError}", ERROR_HOST_CONNECT);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
&log(TRACE, "waiting for pid");
|
||||
}
|
||||
while (waitMore($oWait));
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
1;
|
||||
89
lib/BackRest/Protocol/RemoteMaster.pm
Normal file
89
lib/BackRest/Protocol/RemoteMaster.pm
Normal file
@@ -0,0 +1,89 @@
|
||||
####################################################################################################################################
|
||||
# PROTOCOL REMOTE MASTER MODULE
|
||||
####################################################################################################################################
|
||||
package BackRest::Protocol::RemoteMaster;
|
||||
use parent 'BackRest::Protocol::CommonMaster';
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
use Carp qw(confess);
|
||||
|
||||
use File::Basename qw(dirname);
|
||||
|
||||
use lib dirname($0) . '/../lib';
|
||||
use BackRest::Config;
|
||||
use BackRest::Protocol::CommonMaster;
|
||||
use BackRest::Utility;
|
||||
|
||||
####################################################################################################################################
|
||||
# Operation constants
|
||||
####################################################################################################################################
|
||||
use constant OP_PROTOCOL_REMOTE_MASTER => 'Protocol::RemoteMaster';
|
||||
|
||||
use constant OP_PROTOCOL_REMOTE_MASTER_NEW => OP_PROTOCOL_REMOTE_MASTER . "->new";
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
####################################################################################################################################
|
||||
sub new
|
||||
{
|
||||
my $class = shift; # Class name
|
||||
my $strCommand = shift; # Command to execute on local/remote
|
||||
my $iBlockSize = shift; # Buffer size
|
||||
my $iCompressLevel = shift; # Set compression level
|
||||
my $iCompressLevelNetwork = shift; # Set compression level for network only compression
|
||||
my $strHost = shift; # Host to connect to for remote (optional as this can also be used for local)
|
||||
my $strUser = shift; # User to connect to for remote (must be set if strHost is set)
|
||||
|
||||
# Debug
|
||||
logDebug(OP_PROTOCOL_REMOTE_MASTER_NEW, DEBUG_CALL, undef,
|
||||
{command => \$strCommand, host => \$strHost, user => \$strUser, blockSize => $iBlockSize,
|
||||
compressLevel => $iCompressLevel, compressLevelNetwork => $iCompressLevelNetwork});
|
||||
|
||||
# Host must be defined
|
||||
if (!defined($strHost))
|
||||
{
|
||||
confess &log(ASSERT, 'strHost must be defined');
|
||||
}
|
||||
|
||||
# User must be defined
|
||||
if (!defined($strUser))
|
||||
{
|
||||
confess &log(ASSERT, 'strUser must be defined');
|
||||
}
|
||||
|
||||
# Command must be defined
|
||||
if (!defined($strCommand))
|
||||
{
|
||||
confess &log(ASSERT, 'strCommand must be defined');
|
||||
}
|
||||
|
||||
# Create SSH command
|
||||
$strCommand = "ssh -o Compression=no -o PasswordAuthentication=no ${strUser}\@${strHost} '${strCommand}'";
|
||||
|
||||
# Init object and store variables
|
||||
my $self = $class->SUPER::new('remote', $strCommand, $iBlockSize, $iCompressLevel, $iCompressLevelNetwork);
|
||||
bless $self, $class;
|
||||
|
||||
return $self;
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# CLONE
|
||||
####################################################################################################################################
|
||||
sub clone
|
||||
{
|
||||
my $self = shift;
|
||||
|
||||
return BackRest::Protocol::RemoteMaster->new
|
||||
(
|
||||
$self->{strCommand},
|
||||
$self->{iBlockSize},
|
||||
$self->{iCompressLevel},
|
||||
$self->{iCompressLevelNetwork},
|
||||
$self->{strHost},
|
||||
$self->{strUser}
|
||||
);
|
||||
}
|
||||
|
||||
1;
|
||||
@@ -1,20 +1,15 @@
|
||||
####################################################################################################################################
|
||||
# REMOTE MODULE
|
||||
# PROTOCOL REMOTE MINION MODULE
|
||||
####################################################################################################################################
|
||||
package BackRest::Remote;
|
||||
use parent 'BackRest::Protocol';
|
||||
package BackRest::Protocol::RemoteMinion;
|
||||
use parent 'BackRest::Protocol::CommonMinion';
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => qw(all);
|
||||
use Carp qw(confess);
|
||||
|
||||
use Compress::Raw::Zlib qw(WANT_GZIP Z_OK Z_BUF_ERROR Z_STREAM_END);
|
||||
use File::Basename qw(dirname);
|
||||
|
||||
use IO::String qw();
|
||||
use POSIX qw(:sys_wait_h);
|
||||
use Scalar::Util qw(blessed);
|
||||
|
||||
use lib dirname($0) . '/../lib';
|
||||
use BackRest::Archive;
|
||||
use BackRest::Config;
|
||||
@@ -22,15 +17,15 @@ use BackRest::Db;
|
||||
use BackRest::Exception;
|
||||
use BackRest::File;
|
||||
use BackRest::Info;
|
||||
use BackRest::Protocol;
|
||||
use BackRest::Protocol::CommonMinion;
|
||||
use BackRest::Utility;
|
||||
|
||||
####################################################################################################################################
|
||||
# Operation constants
|
||||
####################################################################################################################################
|
||||
use constant OP_REMOTE => 'Remote';
|
||||
use constant OP_PROTOCOL_REMOVE_MINION => 'Protocol::RemoteMinion';
|
||||
|
||||
use constant OP_REMOTE_NEW => OP_REMOTE . "->new";
|
||||
use constant OP_PROTOCOL_REMOVE_MINION_NEW => OP_PROTOCOL_REMOVE_MINION . "->new";
|
||||
|
||||
####################################################################################################################################
|
||||
# Operation constants
|
||||
@@ -47,21 +42,17 @@ use constant
|
||||
sub new
|
||||
{
|
||||
my $class = shift; # Class name
|
||||
my $strHost = shift; # Host to connect to for remote (optional as this can also be used on the remote)
|
||||
my $strUser = shift; # User to connect to for remote (must be set if strHost is set)
|
||||
my $strCommand = shift; # Command to execute on remote ('remote' if this is the remote)
|
||||
my $iBlockSize = shift; # Buffer size
|
||||
my $iCompressLevel = shift; # Set compression level
|
||||
my $iCompressLevelNetwork = shift; # Set compression level for network only compression
|
||||
|
||||
# Debug
|
||||
logDebug(OP_REMOTE_NEW, DEBUG_CALL, undef,
|
||||
{host => $strHost, user => $strUser, command => $strCommand},
|
||||
defined($strHost) ? DEBUG : TRACE);
|
||||
logTrace(OP_PROTOCOL_REMOVE_MINION_NEW, DEBUG_CALL, undef,
|
||||
{iBlockSize => $iBlockSize, iCompressLevel => $iCompressLevel, iCompressNetworkLevel => $iCompressLevelNetwork});
|
||||
|
||||
# Init object and store variables
|
||||
my $self = $class->SUPER::new(CMD_REMOTE, !defined($strHost), $strCommand, $iBlockSize, $iCompressLevel, $iCompressLevelNetwork,
|
||||
$strHost, $strUser);
|
||||
my $self = $class->SUPER::new(CMD_REMOTE, $iBlockSize, $iCompressLevel, $iCompressLevelNetwork);
|
||||
bless $self, $class;
|
||||
|
||||
return $self;
|
||||
}
|
||||
@@ -117,7 +108,7 @@ sub process
|
||||
{
|
||||
my %oParamHash;
|
||||
|
||||
$strCommand = $self->command_read(\%oParamHash);
|
||||
$strCommand = $self->cmdRead(\%oParamHash);
|
||||
|
||||
eval
|
||||
{
|
||||
@@ -171,7 +162,7 @@ sub process
|
||||
paramGet(\%oParamHash, 'destination_compress'));
|
||||
}
|
||||
|
||||
$self->output_write(($bResult ? 'Y' : 'N') . " " . (defined($strChecksum) ? $strChecksum : '?') . " " .
|
||||
$self->outputWrite(($bResult ? 'Y' : 'N') . " " . (defined($strChecksum) ? $strChecksum : '?') . " " .
|
||||
(defined($iFileSize) ? $iFileSize : '?'));
|
||||
}
|
||||
# List files in a path
|
||||
@@ -192,23 +183,23 @@ sub process
|
||||
$strOutput .= $strFile;
|
||||
}
|
||||
|
||||
$self->output_write($strOutput);
|
||||
$self->outputWrite($strOutput);
|
||||
}
|
||||
# Create a path
|
||||
elsif ($strCommand eq OP_FILE_PATH_CREATE)
|
||||
{
|
||||
$oFile->path_create(PATH_ABSOLUTE, paramGet(\%oParamHash, 'path'), paramGet(\%oParamHash, 'mode', false));
|
||||
$self->output_write();
|
||||
$self->outputWrite();
|
||||
}
|
||||
# Check if a file/path exists
|
||||
elsif ($strCommand eq OP_FILE_EXISTS)
|
||||
{
|
||||
$self->output_write($oFile->exists(PATH_ABSOLUTE, paramGet(\%oParamHash, 'path')) ? 'Y' : 'N');
|
||||
$self->outputWrite($oFile->exists(PATH_ABSOLUTE, paramGet(\%oParamHash, 'path')) ? 'Y' : 'N');
|
||||
}
|
||||
# Wait
|
||||
elsif ($strCommand eq OP_FILE_WAIT)
|
||||
{
|
||||
$self->output_write($oFile->wait(PATH_ABSOLUTE));
|
||||
$self->outputWrite($oFile->wait(PATH_ABSOLUTE));
|
||||
}
|
||||
# Generate a manifest
|
||||
elsif ($strCommand eq OP_FILE_MANIFEST)
|
||||
@@ -234,7 +225,7 @@ sub process
|
||||
$oManifestHash{name}{"${strName}"}{link_destination} : "");
|
||||
}
|
||||
|
||||
$self->output_write($strOutput);
|
||||
$self->outputWrite($strOutput);
|
||||
}
|
||||
# Archive push checks
|
||||
elsif ($strCommand eq OP_ARCHIVE_PUSH_CHECK)
|
||||
@@ -245,16 +236,16 @@ sub process
|
||||
paramGet(\%oParamHash, 'db-version'),
|
||||
paramGet(\%oParamHash, 'db-sys-id'));
|
||||
|
||||
$self->output_write("${strArchiveId}\t" . (defined($strChecksum) ? $strChecksum : 'Y'));
|
||||
$self->outputWrite("${strArchiveId}\t" . (defined($strChecksum) ? $strChecksum : 'Y'));
|
||||
}
|
||||
elsif ($strCommand eq OP_ARCHIVE_GET_CHECK)
|
||||
{
|
||||
$self->output_write($oArchive->getCheck($oFile));
|
||||
$self->outputWrite($oArchive->getCheck($oFile));
|
||||
}
|
||||
# Info list stanza
|
||||
elsif ($strCommand eq OP_INFO_LIST_STANZA)
|
||||
{
|
||||
$self->output_write(
|
||||
$self->outputWrite(
|
||||
$oJSON->encode(
|
||||
$oInfo->listStanza($oFile,
|
||||
paramGet(\%oParamHash, 'stanza', false))));
|
||||
@@ -264,11 +255,12 @@ sub process
|
||||
my ($strDbVersion, $iControlVersion, $iCatalogVersion, $ullDbSysId) =
|
||||
$oDb->info($oFile, paramGet(\%oParamHash, 'db-path'));
|
||||
|
||||
$self->output_write("${strDbVersion}\t${iControlVersion}\t${iCatalogVersion}\t${ullDbSysId}");
|
||||
$self->outputWrite("${strDbVersion}\t${iControlVersion}\t${iCatalogVersion}\t${ullDbSysId}");
|
||||
}
|
||||
elsif ($strCommand eq OP_DB_EXECUTE_SQL)
|
||||
{
|
||||
$self->output_write($oDb->executeSql(paramGet(\%oParamHash, 'script')));
|
||||
$self->outputWrite($oDb->executeSql(paramGet(\%oParamHash, 'script'),
|
||||
paramGet(\%oParamHash, 'ignore-error', false)));
|
||||
}
|
||||
# Continue if noop or exit
|
||||
elsif ($strCommand ne OP_NOOP && $strCommand ne OP_EXIT)
|
||||
@@ -280,7 +272,7 @@ sub process
|
||||
# Process errors
|
||||
if ($@)
|
||||
{
|
||||
$self->error_write($@);
|
||||
$self->errorWrite($@);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,9 +24,10 @@ use BackRest::ThreadGroup;
|
||||
use BackRest::Utility;
|
||||
|
||||
####################################################################################################################################
|
||||
# Recovery.conf file
|
||||
# File constants
|
||||
####################################################################################################################################
|
||||
use constant FILE_RECOVERY_CONF => 'recovery.conf';
|
||||
use constant FILE_RECOVERY_CONF => 'recovery.conf'; # Conf file with settings for recovery after restore
|
||||
use constant FILE_TABLESPACE_MAP => 'tablespace_map'; # Tablespace map introduced in 9.5
|
||||
|
||||
####################################################################################################################################
|
||||
# CONSTRUCTOR
|
||||
@@ -201,12 +202,12 @@ sub manifest_load
|
||||
elsif ($self->{strBackupPath} ne $strBackupLabel)
|
||||
{
|
||||
confess &log(ASSERT, "request backup $self->{strBackupPath} and label ${strBackupLabel} do not match " .
|
||||
' - this indicates some sort of corruption (at the very least paths have been renamed.');
|
||||
' - this indicates some sort of corruption (at the very least paths have been renamed)');
|
||||
}
|
||||
|
||||
if ($self->{strDbClusterPath} ne $oManifest->get(MANIFEST_SECTION_BACKUP_PATH, MANIFEST_KEY_BASE, MANIFEST_SUBKEY_PATH))
|
||||
{
|
||||
&log(INFO, 'base path remapped to ' . $self->{strDbClusterPath});
|
||||
&log(INFO, 'remap base path to ' . $self->{strDbClusterPath});
|
||||
$oManifest->set(MANIFEST_SECTION_BACKUP_PATH, MANIFEST_KEY_BASE, MANIFEST_SUBKEY_PATH, $self->{strDbClusterPath});
|
||||
}
|
||||
|
||||
@@ -253,7 +254,7 @@ sub manifest_load
|
||||
}
|
||||
|
||||
# Remap the tablespace in the manifest
|
||||
&log(INFO, "remapping tablespace ${strTablespaceKey} to ${strRemapPath}");
|
||||
&log(INFO, "remap tablespace ${strTablespaceKey} to ${strRemapPath}");
|
||||
|
||||
my $strTablespaceLink = $oManifest->get(MANIFEST_SECTION_BACKUP_PATH, $strPathKey, MANIFEST_SUBKEY_LINK);
|
||||
|
||||
@@ -292,7 +293,7 @@ sub clean
|
||||
|
||||
&log(INFO, "checking/cleaning db path ${strPath}");
|
||||
|
||||
if (!$self->{oFile}->exists(PATH_DB_ABSOLUTE, $strPath))
|
||||
if (!$self->{oFile}->exists(PATH_DB_ABSOLUTE, $strPath))
|
||||
{
|
||||
next;
|
||||
}
|
||||
@@ -595,11 +596,17 @@ sub restore
|
||||
}
|
||||
|
||||
# Log the backup set to restore
|
||||
&log(INFO, "Restoring backup set " . $self->{strBackupPath});
|
||||
&log(INFO, "restore backup set " . $self->{strBackupPath});
|
||||
|
||||
# Make sure the backup path is valid and load the manifest
|
||||
my $oManifest = $self->manifest_load();
|
||||
|
||||
# Delete pg_control file. This will be copied from the backup at the very end to prevent a partially restored database
|
||||
# from being started by PostgreSQL.
|
||||
$self->{oFile}->remove(PATH_DB_ABSOLUTE,
|
||||
$oManifest->get(MANIFEST_SECTION_BACKUP_PATH, MANIFEST_KEY_BASE, MANIFEST_SUBKEY_PATH) .
|
||||
'/' . FILE_PG_CONTROL);
|
||||
|
||||
# Clean the restore paths
|
||||
$self->clean($oManifest);
|
||||
|
||||
@@ -625,11 +632,33 @@ sub restore
|
||||
{
|
||||
foreach my $strFile ($oManifest->keys($strSection))
|
||||
{
|
||||
# Skip the tablespace_map file in versions >= 9.5 so Postgres does not rewrite links in the pg_tblspc directory.
|
||||
# The tablespace links have already been created by Restore::build().
|
||||
if ($strPathKey eq MANIFEST_KEY_BASE && $strFile eq FILE_TABLESPACE_MAP &&
|
||||
$oManifest->get(MANIFEST_SECTION_BACKUP_DB, MANIFEST_KEY_DB_VERSION) >= 9.5)
|
||||
{
|
||||
next;
|
||||
}
|
||||
|
||||
my $lSize = $oManifest->getNumeric($strSection, $strFile, MANIFEST_SUBKEY_SIZE);
|
||||
$lSizeTotal += $lSize;
|
||||
|
||||
# Preface the file key with the size. This allows for sorting the files to restore by size
|
||||
my $strFileKey = sprintf("%016d-${strFile}", $lSize);
|
||||
# Preface the file key with the size. This allows for sorting the files to restore by size.
|
||||
my $strFileKey;
|
||||
|
||||
# Skip this for global/pg_control since it will be copied as the last step and needs to named in a way that it
|
||||
# can be found for the copy.
|
||||
if ($strPathKey eq MANIFEST_KEY_BASE && $strFile eq FILE_PG_CONTROL)
|
||||
{
|
||||
$strFileKey = $strFile;
|
||||
$oRestoreHash{$strPathKey}{$strFileKey}{skip} = true;
|
||||
}
|
||||
# Else continue normally
|
||||
else
|
||||
{
|
||||
$strFileKey = sprintf("%016d-${strFile}", $lSize);
|
||||
$oRestoreHash{$strPathKey}{$strFileKey}{skip} = false;
|
||||
}
|
||||
|
||||
# Get restore information
|
||||
$oRestoreHash{$strPathKey}{$strFileKey}{file} = $strFile;
|
||||
@@ -673,6 +702,9 @@ sub restore
|
||||
|
||||
foreach my $strFileKey (sort {$b cmp $a} (keys(%{$oRestoreHash{$strPathKey}})))
|
||||
{
|
||||
# Skip files marked to be copied later
|
||||
next if ($oRestoreHash{$strPathKey}{$strFileKey}{skip});
|
||||
|
||||
$oyRestoreQueue[@oyRestoreQueue - 1]->enqueue($oRestoreHash{$strPathKey}{$strFileKey});
|
||||
}
|
||||
}
|
||||
@@ -708,6 +740,9 @@ sub restore
|
||||
{
|
||||
foreach my $strFileKey (sort {$b cmp $a} (keys(%{$oRestoreHash{$strPathKey}})))
|
||||
{
|
||||
# Skip files marked to be copied later
|
||||
next if ($oRestoreHash{$strPathKey}{$strFileKey}{skip});
|
||||
|
||||
$lSizeCurrent = restoreFile($oRestoreHash{$strPathKey}{$strFileKey}, $lCopyTimeBegin, $self->{bDelta},
|
||||
$self->{bForce}, $self->{strBackupPath}, $bSourceCompression, $strCurrentUser,
|
||||
$strCurrentGroup, $self->{oFile}, $lSizeTotal, $lSizeCurrent);
|
||||
@@ -718,7 +753,14 @@ sub restore
|
||||
# Create recovery.conf file
|
||||
$self->recovery();
|
||||
|
||||
&log(INFO, "restore complete");
|
||||
# Copy pg_control last
|
||||
&log(INFO, 'restore ' . FILE_PG_CONTROL . ' (copied last to ensure aborted restores cannot be started)');
|
||||
|
||||
restoreFile($oRestoreHash{&MANIFEST_KEY_BASE}{&FILE_PG_CONTROL}, $lCopyTimeBegin, $self->{bDelta}, $self->{bForce},
|
||||
$self->{strBackupPath}, $bSourceCompression, $strCurrentUser, $strCurrentGroup, $self->{oFile}, $lSizeTotal,
|
||||
$lSizeCurrent);
|
||||
|
||||
&log(INFO, 'restore complete');
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
@@ -158,37 +158,6 @@ sub hsleep
|
||||
return usleep($fSecond * 1000000);
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# WAIT_FOR_FILE
|
||||
####################################################################################################################################
|
||||
sub wait_for_file
|
||||
{
|
||||
my $strDir = shift;
|
||||
my $strRegEx = shift;
|
||||
my $iSeconds = shift;
|
||||
|
||||
my $lTime = time();
|
||||
my $hDir;
|
||||
|
||||
while ($lTime > time() - $iSeconds)
|
||||
{
|
||||
if (opendir($hDir, $strDir))
|
||||
{
|
||||
my @stryFile = grep(/$strRegEx/i, readdir $hDir);
|
||||
close $hDir;
|
||||
|
||||
if (scalar @stryFile == 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
hsleep(.1);
|
||||
}
|
||||
|
||||
confess &log(ERROR, "could not find $strDir/$strRegEx after ${iSeconds} second(s)");
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# COMMON_PREFIX
|
||||
####################################################################################################################################
|
||||
@@ -239,7 +208,7 @@ sub file_size_format
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# TIMESTAMP_STRING_GET - Get backrest standard timestamp (or formatted as specified
|
||||
# TIMESTAMP_STRING_GET - Get standard timestamp (or formatted as specified)
|
||||
####################################################################################################################################
|
||||
sub timestamp_string_get
|
||||
{
|
||||
@@ -278,7 +247,8 @@ sub log_file_set
|
||||
|
||||
unless (-e dirname($strFile))
|
||||
{
|
||||
mkdir(dirname($strFile)) or die "unable to create directory for log file ${strFile}";
|
||||
mkdir(dirname($strFile), oct('0770'))
|
||||
or die "unable to create directory for log file ${strFile}";
|
||||
}
|
||||
|
||||
$strFile .= '-' . timestamp_string_get('%4d%02d%02d') . '.log';
|
||||
@@ -289,7 +259,8 @@ sub log_file_set
|
||||
$bExists = true;
|
||||
}
|
||||
|
||||
open($hLogFile, '>>', $strFile) or confess "unable to open log file ${strFile}";
|
||||
sysopen($hLogFile, $strFile, O_WRONLY | O_CREAT, 0660)
|
||||
or confess &log(ERROR, "unable to open log file ${strFile}", ERROR_FILE_OPEN);
|
||||
|
||||
if ($bExists)
|
||||
{
|
||||
@@ -382,6 +353,8 @@ use constant DEBUG_RESULT => '=>';
|
||||
use constant DEBUG_MISC => '';
|
||||
push @EXPORT, qw(DEBUG_MISC);
|
||||
|
||||
use constant DEBUG_STRING_MAX_LEN => 1024;
|
||||
|
||||
sub logDebug
|
||||
{
|
||||
my $strFunction = shift;
|
||||
@@ -406,10 +379,14 @@ sub logDebug
|
||||
$strParamSet .= ', ';
|
||||
}
|
||||
|
||||
my $strValueRef = ref($$oParamHash{$strParam}) ? $$oParamHash{$strParam} : \$$oParamHash{$strParam};
|
||||
|
||||
$strParamSet .= "${strParam} = " .
|
||||
(defined($$oParamHash{$strParam}) ?
|
||||
($strParam =~ /^is/ ? ($$oParamHash{$strParam} ? 'true' : 'false'):
|
||||
$$oParamHash{$strParam}) : '[undef]');
|
||||
(defined($$strValueRef) ?
|
||||
($strParam =~ /^is/ ? ($$strValueRef ? 'true' : 'false'):
|
||||
(length($$strValueRef) > DEBUG_STRING_MAX_LEN ?
|
||||
substr($$strValueRef, 0, DEBUG_STRING_MAX_LEN) . ' ... [TRUNCATED]':
|
||||
$$strValueRef)) : '[undef]');
|
||||
}
|
||||
|
||||
if (defined($strMessage))
|
||||
@@ -435,7 +412,11 @@ sub logTrace
|
||||
my $strMessage = shift;
|
||||
my $oParamHash = shift;
|
||||
|
||||
logDebug($strFunction, $strType, $strMessage, $oParamHash, TRACE);
|
||||
if ($oLogLevelRank{&TRACE}{rank} <= $oLogLevelRank{$strLogLevelConsole}{rank} ||
|
||||
$oLogLevelRank{&TRACE}{rank} <= $oLogLevelRank{$strLogLevelFile}{rank})
|
||||
{
|
||||
logDebug($strFunction, $strType, $strMessage, $oParamHash, TRACE);
|
||||
}
|
||||
}
|
||||
|
||||
push @EXPORT, qw(logTrace);
|
||||
|
||||
@@ -16,7 +16,7 @@ use Exporter qw(import);
|
||||
# repositories or manifests can be read - that's the job of the format number.
|
||||
#-----------------------------------------------------------------------------------------------------------------------------------
|
||||
our # 'our' keyword is on a separate line to make the ExtUtils::MakeMaker parser happy.
|
||||
$VERSION = '0.78';
|
||||
$VERSION = '0.80';
|
||||
|
||||
our @EXPORT = qw($VERSION);
|
||||
|
||||
|
||||
1519
test/lib/BackRestTest/BackupCommonTest.pm
Normal file
1519
test/lib/BackRestTest/BackupCommonTest.pm
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -26,7 +26,6 @@ use BackRest::Db;
|
||||
use BackRest::File;
|
||||
use BackRest::Ini;
|
||||
use BackRest::Manifest;
|
||||
use BackRest::Protocol;
|
||||
use BackRest::Utility;
|
||||
|
||||
our @EXPORT = qw(BackRestTestCommon_Create BackRestTestCommon_Drop BackRestTestCommon_Setup BackRestTestCommon_ExecuteBegin
|
||||
@@ -237,13 +236,13 @@ sub BackRestTestCommon_TestLogAppendFile
|
||||
open($hFile, '<', $strFileName)
|
||||
or confess &log(ERROR, "unable to open ${strFileName} for appending to test log");
|
||||
|
||||
my $strHeader = "+ supplemental file: " . BackRestTestCommon_ExecuteRegAll($strFileName);
|
||||
my $strHeader = "+ supplemental file: " . BackRestTestCommon_ExecuteRegExpAll($strFileName);
|
||||
|
||||
$strFullLog .= "\n${strHeader}\n" . ('-' x length($strHeader)) . "\n";
|
||||
|
||||
while (my $strLine = readline($hFile))
|
||||
{
|
||||
$strLine = BackRestTestCommon_ExecuteRegAll($strLine);
|
||||
$strLine = BackRestTestCommon_ExecuteRegExpAll($strLine);
|
||||
$strFullLog .= $strLine;
|
||||
}
|
||||
|
||||
@@ -325,11 +324,11 @@ sub BackRestTestCommon_ExecuteBegin
|
||||
|
||||
if (defined($strModule) && $strCommandParam =~ /\/bin\/pg_backrest/)
|
||||
{
|
||||
$strCommandParam = BackRestTestCommon_ExecuteRegAll($strCommandParam);
|
||||
$strCommandParam = BackRestTestCommon_ExecuteRegExpAll($strCommandParam);
|
||||
|
||||
if (defined($strComment))
|
||||
{
|
||||
$strComment = BackRestTestCommon_ExecuteRegAll($strComment);
|
||||
$strComment = BackRestTestCommon_ExecuteRegExpAll($strComment);
|
||||
$strFullLog .= "\n${strComment}";
|
||||
}
|
||||
|
||||
@@ -417,7 +416,7 @@ sub BackRestTestCommon_ExecuteRegExp
|
||||
####################################################################################################################################
|
||||
# BackRestTestCommon_ExecuteRegExpAll
|
||||
####################################################################################################################################
|
||||
sub BackRestTestCommon_ExecuteRegAll
|
||||
sub BackRestTestCommon_ExecuteRegExpAll
|
||||
{
|
||||
my $strLine = shift;
|
||||
|
||||
@@ -446,7 +445,7 @@ sub BackRestTestCommon_ExecuteRegAll
|
||||
$strLine = BackRestTestCommon_ExecuteRegExp($strLine, 'USER', 'user"[ ]{0,1}:[ ]{0,1}"[^"]+', '[^"]+$');
|
||||
$strLine = BackRestTestCommon_ExecuteRegExp($strLine, 'USER', '^db-user=.+$', '[^=]+$');
|
||||
|
||||
$strLine = BackRestTestCommon_ExecuteRegExp($strLine, 'PORT', '--port=[0-9]+', '[0-9]+$');
|
||||
$strLine = BackRestTestCommon_ExecuteRegExp($strLine, 'PORT', 'db-port=[0-9]+', '[0-9]+$');
|
||||
|
||||
my $strTimestampRegExp = "[0-9]{4}-[0-1][0-9]-[0-3][0-9] [0-2][0-9]:[0-6][0-9]:[0-6][0-9]";
|
||||
|
||||
@@ -533,7 +532,7 @@ sub BackRestTestCommon_ExecuteEnd
|
||||
$strLine =~ s/^ //;
|
||||
$strLine =~ s/\r$//;
|
||||
|
||||
$strLine = BackRestTestCommon_ExecuteRegAll($strLine);
|
||||
$strLine = BackRestTestCommon_ExecuteRegExpAll($strLine);
|
||||
$strFullLog .= $strLine;
|
||||
}
|
||||
}
|
||||
@@ -792,14 +791,19 @@ sub BackRestTestCommon_Setup
|
||||
BackRestTestCommon_Execute($strPgSqlBin . '/postgres --version');
|
||||
|
||||
# Get the Postgres version
|
||||
my $strVersionRegExp = '(devel|((alpha|beta)[0-9]+))$';
|
||||
my @stryVersionToken = split(/ /, $strOutLog);
|
||||
@stryVersionToken = split(/\./, $stryVersionToken[2]);
|
||||
$strCommonDbVersion = $stryVersionToken[0] . '.' . trim($stryVersionToken[1]);
|
||||
|
||||
if ($strCommonDbVersion =~ /devel$/)
|
||||
# Warn if this is a devel/alpha/beta version
|
||||
if ($strCommonDbVersion =~ /$strVersionRegExp/)
|
||||
{
|
||||
$strCommonDbVersion =~ s/devel$//;
|
||||
&log(INFO, "Testing against ${strCommonDbVersion} development version");
|
||||
my $strDevVersion = $strCommonDbVersion;
|
||||
$strCommonDbVersion =~ s/$strVersionRegExp//;
|
||||
$strDevVersion = substr($strDevVersion, length($strCommonDbVersion));
|
||||
|
||||
&log(WARN, "Testing against ${strCommonDbVersion} ${strDevVersion} version");
|
||||
}
|
||||
|
||||
# Don't run unit tests for unsupported versions
|
||||
@@ -810,12 +814,6 @@ sub BackRestTestCommon_Setup
|
||||
confess "currently only version ${$strVersionSupport}[0] and up are supported";
|
||||
}
|
||||
|
||||
if ($strCommonDbVersion eq '9.5')
|
||||
{
|
||||
&log(WARN, "unit tests do not currently work with version 9.5");
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1064,12 +1062,10 @@ sub BackRestTestCommon_ConfigCreate
|
||||
|
||||
if (defined($strRemote))
|
||||
{
|
||||
$oParamHash{'global:command'}{'[comment]'} = 'backrest command';
|
||||
$oParamHash{'global:command'}{'cmd-remote'} = $strCommonCommandRemote;
|
||||
}
|
||||
|
||||
$oParamHash{'global:command'}{'[comment]'} = 'psql command and options';
|
||||
$oParamHash{'global:command'}{'cmd-psql'} = $strCommonCommandPsql;
|
||||
|
||||
if (defined($strRemote) && $strRemote eq BACKUP)
|
||||
{
|
||||
$oParamHash{'global:backup'}{'backup-host'} = $strCommonHost;
|
||||
@@ -1122,8 +1118,8 @@ sub BackRestTestCommon_ConfigCreate
|
||||
|
||||
if (($strLocal eq BACKUP) || ($strLocal eq DB && !defined($strRemote)))
|
||||
{
|
||||
$oParamHash{"${strCommonStanza}:command"}{'[comment]'} = 'cluster-specific command options';
|
||||
$oParamHash{"${strCommonStanza}:command"}{'cmd-psql-option'} = "--port=${iCommonDbPort}";
|
||||
# $oParamHash{"${strCommonStanza}:command"}{'[comment]'} = 'cluster-specific command options';
|
||||
# $oParamHash{"${strCommonStanza}:command"}{'cmd-psql-option'} = "--port=${iCommonDbPort}";
|
||||
|
||||
if (defined($bHardlink) && $bHardlink)
|
||||
{
|
||||
@@ -1142,6 +1138,8 @@ sub BackRestTestCommon_ConfigCreate
|
||||
# Stanza settings
|
||||
$oParamHash{$strCommonStanza}{'[comment]'} = "cluster-specific settings";
|
||||
$oParamHash{$strCommonStanza}{'db-path'} = $strCommonDbCommonPath;
|
||||
$oParamHash{$strCommonStanza}{'db-port'} = $iCommonDbPort;
|
||||
$oParamHash{$strCommonStanza}{'db-socket-path'} = BackRestTestCommon_DbPathGet();
|
||||
|
||||
# Comments
|
||||
if (defined($oParamHash{'global:backup'}))
|
||||
|
||||
@@ -14,11 +14,7 @@ use Carp qw(confess);
|
||||
use Cwd qw(abs_path);
|
||||
use Exporter qw(import);
|
||||
use File::Basename qw(dirname);
|
||||
use Scalar::Util 'blessed';
|
||||
#use Data::Dumper qw(Dumper);
|
||||
#use Scalar::Util qw(blessed);
|
||||
# use Test::More qw(no_plan);
|
||||
# use Test::Deep;
|
||||
use Scalar::Util qw(blessed);
|
||||
|
||||
use lib dirname($0) . '/../lib';
|
||||
use BackRest::Config;
|
||||
@@ -528,23 +524,10 @@ sub BackRestTestConfig_Test
|
||||
}
|
||||
}
|
||||
|
||||
if (BackRestTestCommon_Run(++$iRun, CMD_BACKUP . ' valid value ' . OPTION_COMMAND_PSQL))
|
||||
{
|
||||
optionSetTest($oOption, OPTION_STANZA, $strStanza);
|
||||
optionSetTest($oOption, OPTION_DB_PATH, '/db');
|
||||
optionSetTest($oOption, OPTION_COMMAND_PSQL, '/psql -X %option%');
|
||||
optionSetTest($oOption, OPTION_COMMAND_PSQL_OPTION, '--port 5432');
|
||||
|
||||
configLoadExpect($oOption, CMD_BACKUP);
|
||||
optionTestExpect(OPTION_COMMAND_PSQL, '/psql -X --port 5432');
|
||||
}
|
||||
|
||||
if (BackRestTestCommon_Run(++$iRun, CMD_BACKUP . ' default value ' . OPTION_COMMAND_REMOTE))
|
||||
{
|
||||
optionSetTest($oOption, OPTION_STANZA, $strStanza);
|
||||
optionSetTest($oOption, OPTION_DB_PATH, '/db');
|
||||
optionSetTest($oOption, OPTION_COMMAND_PSQL, '/psql -X %option%');
|
||||
optionSetTest($oOption, OPTION_COMMAND_PSQL_OPTION, '--port 5432');
|
||||
|
||||
configLoadExpect($oOption, CMD_BACKUP);
|
||||
optionTestExpect(OPTION_COMMAND_REMOTE, abs_path($0));
|
||||
@@ -829,21 +812,6 @@ sub BackRestTestConfig_Test
|
||||
optionTestExpect(OPTION_REPO_PATH, '/repo');
|
||||
}
|
||||
|
||||
if (BackRestTestCommon_Run(++$iRun, CMD_BACKUP . ' valid value ' . OPTION_COMMAND_PSQL))
|
||||
{
|
||||
$oConfig = {};
|
||||
$$oConfig{&CONFIG_GLOBAL . ':' . &CONFIG_SECTION_COMMAND}{&OPTION_COMMAND_PSQL} = '/psql -X %option%';
|
||||
$$oConfig{&CONFIG_GLOBAL . ':' . &CONFIG_SECTION_COMMAND}{&OPTION_COMMAND_PSQL_OPTION} = '--port=5432';
|
||||
iniSave($strConfigFile, $oConfig, true);
|
||||
|
||||
optionSetTest($oOption, OPTION_STANZA, $strStanza);
|
||||
optionSetTest($oOption, OPTION_DB_PATH, '/db');
|
||||
optionSetTest($oOption, OPTION_CONFIG, $strConfigFile);
|
||||
|
||||
configLoadExpect($oOption, CMD_BACKUP);
|
||||
optionTestExpect(OPTION_COMMAND_PSQL, '/psql -X --port=5432');
|
||||
}
|
||||
|
||||
# Cleanup
|
||||
if (BackRestTestCommon_Cleanup())
|
||||
{
|
||||
|
||||
@@ -23,7 +23,8 @@ use Time::HiRes qw(gettimeofday usleep);
|
||||
use lib dirname($0) . '/../lib';
|
||||
use BackRest::Config;
|
||||
use BackRest::File;
|
||||
use BackRest::Protocol;
|
||||
use BackRest::Protocol::Common;
|
||||
use BackRest::Protocol::RemoteMaster;
|
||||
use BackRest::Utility;
|
||||
|
||||
use BackRestTest::CommonTest;
|
||||
@@ -57,7 +58,11 @@ sub BackRestTestFile_Setup
|
||||
# Create the backrest private directory
|
||||
if (defined($bPrivate) && $bPrivate)
|
||||
{
|
||||
system("ssh backrest\@${strHost} 'mkdir -m 700 ${strTestPath}/private'") == 0 or die "unable to create ${strTestPath}/private path";
|
||||
system("ssh backrest\@${strHost} 'mkdir -m 700 ${strTestPath}/backrest_private'") == 0
|
||||
or die "unable to create ${strTestPath}/backrest_private path";
|
||||
|
||||
system("mkdir -m 700 ${strTestPath}/user_private") == 0
|
||||
or die "unable to create ${strTestPath}/user_private path";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -92,24 +97,21 @@ sub BackRestTestFile_Test
|
||||
#-------------------------------------------------------------------------------------------------------------------------------
|
||||
# Create remotes
|
||||
#-------------------------------------------------------------------------------------------------------------------------------
|
||||
my $oRemote = new BackRest::Remote
|
||||
my $oRemote = new BackRest::Protocol::RemoteMaster
|
||||
(
|
||||
$strHost, # Host
|
||||
$strUser, # User
|
||||
BackRestTestCommon_CommandRemoteFullGet(), # Command
|
||||
OPTION_DEFAULT_BUFFER_SIZE, # Buffer size
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL, # Compress level
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL_NETWORK, # Compress network level
|
||||
$strHost, # Host
|
||||
$strUserBackRest # User
|
||||
);
|
||||
|
||||
my $oLocal = new BackRest::Protocol
|
||||
my $oLocal = new BackRest::Protocol::Common
|
||||
(
|
||||
undef, # Name
|
||||
false, # Is backend?
|
||||
undef, # Command
|
||||
OPTION_DEFAULT_BUFFER_SIZE, # Buffer size
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL, # Compress level
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL_NETWORK, # Compress network level
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL_NETWORK # Compress network level
|
||||
);
|
||||
|
||||
#-------------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -163,7 +165,8 @@ sub BackRestTestFile_Test
|
||||
# If not exists then set the path to something bogus
|
||||
if ($bError)
|
||||
{
|
||||
$strPath = "${strTestPath}/private/path";
|
||||
$strPath = "${strTestPath}/" . ($bRemote ? 'user' : 'backrest') . "_private/path";
|
||||
|
||||
$strPathType = PATH_BACKUP_ABSOLUTE;
|
||||
}
|
||||
|
||||
@@ -270,7 +273,7 @@ sub BackRestTestFile_Test
|
||||
|
||||
if ($bSourceError)
|
||||
{
|
||||
$strSourceFile = "${strTestPath}/private/test.txt";
|
||||
$strSourceFile = "${strTestPath}/" . ($bRemote ? 'user' : 'backrest') . "_private/test.txt";
|
||||
}
|
||||
elsif ($bSourceExists)
|
||||
{
|
||||
@@ -279,7 +282,7 @@ sub BackRestTestFile_Test
|
||||
|
||||
if ($bDestinationError)
|
||||
{
|
||||
$strSourceFile = "${strTestPath}/private/test.txt";
|
||||
$strDestinationFile = "${strTestPath}/" . ($bRemote ? 'user' : 'backrest') . "_private/test.txt";
|
||||
}
|
||||
elsif (!$bDestinationExists)
|
||||
{
|
||||
@@ -357,7 +360,7 @@ sub BackRestTestFile_Test
|
||||
|
||||
if ($bError)
|
||||
{
|
||||
$strFile = "${strTestPath}/private/test.txt";
|
||||
$strFile = "${strTestPath}/" . ($bRemote ? 'user' : 'backrest') . "_private/test.txt";
|
||||
}
|
||||
elsif ($bExists)
|
||||
{
|
||||
@@ -542,7 +545,7 @@ sub BackRestTestFile_Test
|
||||
|
||||
if ($bError)
|
||||
{
|
||||
$strPath = $strTestPath . '/private';
|
||||
$strPath = "${strTestPath}/" . ($bRemote ? 'user' : 'backrest') . '_private';
|
||||
}
|
||||
elsif (!$bExists)
|
||||
{
|
||||
@@ -684,7 +687,7 @@ sub BackRestTestFile_Test
|
||||
|
||||
if ($bError)
|
||||
{
|
||||
$strPath = "${strTestPath}/private";
|
||||
$strPath = "${strTestPath}/" . ($bRemote ? 'user' : 'backrest') . '_private';
|
||||
}
|
||||
elsif (!$bExists)
|
||||
{
|
||||
@@ -792,7 +795,7 @@ sub BackRestTestFile_Test
|
||||
|
||||
if ($bError)
|
||||
{
|
||||
$strFile = "${strTestPath}/private/test.txt"
|
||||
$strFile = "${strTestPath}/" . ($bRemote ? 'user' : 'backrest') . '_private/test.txt';
|
||||
}
|
||||
elsif (!$bExists)
|
||||
{
|
||||
@@ -891,7 +894,7 @@ sub BackRestTestFile_Test
|
||||
|
||||
if ($bError)
|
||||
{
|
||||
$strFile = "${strTestPath}/private/test.txt";
|
||||
$strFile = "${strTestPath}/" . ($bRemote ? 'user' : 'backrest') . '_private/test.txt';
|
||||
}
|
||||
elsif (!$bExists)
|
||||
{
|
||||
@@ -1189,7 +1192,7 @@ sub BackRestTestFile_Test
|
||||
$oFile->copy($strSourcePathType, $strSourceFile,
|
||||
$strDestinationPathType, $strDestinationFile,
|
||||
$bSourceCompressed, $bDestinationCompress,
|
||||
$bSourceIgnoreMissing, undef, '0700', false, undef, undef,
|
||||
$bSourceIgnoreMissing, undef, '0770', false, undef, undef,
|
||||
$bChecksumAppend);
|
||||
};
|
||||
|
||||
|
||||
@@ -42,14 +42,11 @@ sub BackRestTestUtility_Test
|
||||
#-------------------------------------------------------------------------------------------------------------------------------
|
||||
# Create remote
|
||||
#-------------------------------------------------------------------------------------------------------------------------------
|
||||
my $oLocal = new BackRest::Protocol
|
||||
my $oLocal = new BackRest::Protocol::Common
|
||||
(
|
||||
undef, # Name
|
||||
false, # Is backend?
|
||||
undef, # Command
|
||||
OPTION_DEFAULT_BUFFER_SIZE, # Buffer size
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL, # Compress level
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL_NETWORK, # Compress network level
|
||||
OPTION_DEFAULT_COMPRESS_LEVEL_NETWORK # Compress network level
|
||||
);
|
||||
|
||||
#-------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -32,7 +32,7 @@ DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive
|
||||
DEBUG: Archive->getCheck=>: archiveId = 9.3-1
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000001(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: archive_get: cp 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: File->copy: local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001.backrest.tmp to absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, destination_path_create = false
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -43,7 +43,7 @@ DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive
|
||||
DEBUG: Archive->getCheck=>: archiveId = 9.3-1
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000002(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: archive_get: cp 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
DEBUG: File->copy: local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002.backrest.tmp to absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002, destination_path_create = false
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -54,6 +54,6 @@ DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive
|
||||
DEBUG: Archive->getCheck=>: archiveId = 9.3-1
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000003(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: archive_get: cp 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
DEBUG: File->copy: local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003.backrest.tmp to absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003, destination_path_create = false
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -32,7 +32,7 @@ DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive
|
||||
DEBUG: Archive->getCheck=>: archiveId = 9.3-1
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000001(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: archive_get: cp 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: File->copy: local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001.backrest.tmp to absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, destination_path_create = false
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -43,7 +43,7 @@ DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive
|
||||
DEBUG: Archive->getCheck=>: archiveId = 9.3-1
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000002(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: archive_get: cp 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
DEBUG: File->copy: local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002.backrest.tmp to absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002, destination_path_create = false
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -54,6 +54,6 @@ DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive
|
||||
DEBUG: Archive->getCheck=>: archiveId = 9.3-1
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000003(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: archive_get: cp 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
DEBUG: File->copy: local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003.backrest.tmp to absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003, destination_path_create = false
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -4,8 +4,8 @@ run 005 - rmt 1, cmp 0, exists 0
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: getting WAL segment 000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
ERROR: [130]: archive.info does not exist but is required to get WAL segments
|
||||
HINT: Is archive_command configured in postgresql.conf?
|
||||
HINT: Use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme.
|
||||
@@ -29,8 +29,8 @@ db-version="9.3"
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --stanza=db archive-get 000000090000000900000009 [TEST_PATH]/db/common/pg_xlog/RECOVERYXLOG
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: getting WAL segment 000000090000000900000009
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->getCheck=>: archiveId = 9.3-1
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000900000009, expression ^000000090000000900000009(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
INFO: 000000090000000900000009 was not found in the archive repository
|
||||
|
||||
@@ -4,8 +4,8 @@ run 006 - rmt 1, cmp 0, exists 1
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: getting WAL segment 000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
ERROR: [130]: archive.info does not exist but is required to get WAL segments
|
||||
HINT: Is archive_command configured in postgresql.conf?
|
||||
HINT: Use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme.
|
||||
@@ -29,35 +29,35 @@ db-version="9.3"
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: getting WAL segment 000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->getCheck=>: archiveId = 9.3-1
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000001(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: archive_get: cp 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: File->copy: remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001.backrest.tmp to absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, destination_path_create = false
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --stanza=db archive-get 000000010000000100000002 [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: getting WAL segment 000000010000000100000002
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->getCheck=>: archiveId = 9.3-1
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000002(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: archive_get: cp 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
DEBUG: File->copy: remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002.backrest.tmp to absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002, destination_path_create = false
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --stanza=db archive-get 000000010000000100000003 [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: getting WAL segment 000000010000000100000003
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->getCheck=>: archiveId = 9.3-1
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000003(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: archive_get: cp 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
DEBUG: File->copy: remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003.backrest.tmp to absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003, destination_path_create = false
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -4,8 +4,8 @@ run 007 - rmt 1, cmp 1, exists 0
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: getting WAL segment 000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
ERROR: [130]: archive.info does not exist but is required to get WAL segments
|
||||
HINT: Is archive_command configured in postgresql.conf?
|
||||
HINT: Use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme.
|
||||
@@ -29,8 +29,8 @@ db-version="9.3"
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --stanza=db archive-get 000000090000000900000009 [TEST_PATH]/db/common/pg_xlog/RECOVERYXLOG
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: getting WAL segment 000000090000000900000009
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->getCheck=>: archiveId = 9.3-1
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000900000009, expression ^000000090000000900000009(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
INFO: 000000090000000900000009 was not found in the archive repository
|
||||
|
||||
@@ -4,8 +4,8 @@ run 008 - rmt 1, cmp 1, exists 1
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: getting WAL segment 000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
ERROR: [130]: archive.info does not exist but is required to get WAL segments
|
||||
HINT: Is archive_command configured in postgresql.conf?
|
||||
HINT: Use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme.
|
||||
@@ -29,35 +29,35 @@ db-version="9.3"
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --stanza=db archive-get 000000010000000100000001 [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: getting WAL segment 000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->getCheck=>: archiveId = 9.3-1
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000001(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: archive_get: cp 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: File->copy: remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001.backrest.tmp to absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, destination_path_create = false
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --stanza=db archive-get 000000010000000100000002 [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: getting WAL segment 000000010000000100000002
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->getCheck=>: archiveId = 9.3-1
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000002(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: archive_get: cp 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
DEBUG: File->copy: remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002.backrest.tmp to absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002, destination_path_create = false
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --stanza=db archive-get 000000010000000100000003 [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: getting WAL segment 000000010000000100000003
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->getCheck=>: archiveId = 9.3-1
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000003(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: archive_get: cp 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
DEBUG: File->copy: remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz to local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003, source_compressed = true, destination_compress = false, ignore_missing_source = false, destination_path_create = false, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003.backrest.tmp to absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003, destination_path_create = false
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -6,12 +6,12 @@ run 001 - rmt 0, cmp 0, arc_async 0
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->path_create: backup:archive:[TEST_PATH]/backrest/archive/db, mode [undef]
|
||||
DEBUG: File->path_create: backup:archive:[TEST_PATH]/backrest/archive/db, mode 0750
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000001(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->exists: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
@@ -66,7 +66,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000002(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -77,7 +77,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000003
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000003(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -88,7 +88,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000004
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000004(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -99,7 +99,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000005(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -153,7 +153,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000006
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000006(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -164,7 +164,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000007
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000007(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -175,7 +175,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000008
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000008(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -186,7 +186,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000009(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ run 002 - rmt 0, cmp 0, arc_async 1
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/out, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/out, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
@@ -18,8 +18,8 @@ DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000001(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->exists: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
@@ -31,7 +31,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -48,7 +48,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -65,7 +65,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -88,7 +88,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-4518a0fdf41d796760b384a358270d4682589820, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -106,7 +106,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000002 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -117,7 +117,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000002(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -128,7 +128,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000003 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -139,7 +139,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000003
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000003(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -150,7 +150,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000004
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000004 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000004, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000004, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000004.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -161,7 +161,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000004
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000004(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -172,7 +172,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -183,7 +183,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000005(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -194,7 +194,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -211,7 +211,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -228,7 +228,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -251,7 +251,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-4518a0fdf41d796760b384a358270d4682589820, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -269,7 +269,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000006
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000006 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -280,7 +280,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000006
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000006(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -291,7 +291,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000007
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000007 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000007, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000007, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000007.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -302,7 +302,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000007
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000007(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -313,7 +313,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000008
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000008 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000008, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000008, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000008.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -324,7 +324,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000008
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000008(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -335,7 +335,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -346,7 +346,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000009(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -357,7 +357,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -374,7 +374,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -391,7 +391,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -414,7 +414,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009-4518a0fdf41d796760b384a358270d4682589820, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
|
||||
@@ -6,12 +6,12 @@ run 003 - rmt 0, cmp 1, arc_async 0
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->path_create: backup:archive:[TEST_PATH]/backrest/archive/db, mode [undef]
|
||||
DEBUG: File->path_create: backup:archive:[TEST_PATH]/backrest/archive/db, mode 0750
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000001(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->exists: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
@@ -66,7 +66,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000002(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -77,7 +77,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000003
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000003(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -88,7 +88,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000004
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000004(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -99,7 +99,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000005(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -153,7 +153,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000006
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000006(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -164,7 +164,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000007
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000007(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -175,7 +175,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000008
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000008(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -186,7 +186,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000009(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ run 004 - rmt 0, cmp 1, arc_async 1
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/out, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/out, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
@@ -18,8 +18,8 @@ DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000001(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->exists: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
@@ -31,7 +31,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -48,7 +48,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -65,7 +65,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -88,7 +88,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-4518a0fdf41d796760b384a358270d4682589820, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -106,7 +106,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000002 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -117,7 +117,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000002(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -128,7 +128,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000003 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -139,7 +139,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000003
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000003(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -150,7 +150,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000004
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000004 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000004, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000004, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000004.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -161,7 +161,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000004
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000004(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -172,7 +172,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -183,7 +183,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000005(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -194,7 +194,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -211,7 +211,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -228,7 +228,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -251,7 +251,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-4518a0fdf41d796760b384a358270d4682589820, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -269,7 +269,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000006
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000006 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -280,7 +280,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000006
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000006(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -291,7 +291,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000007
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000007 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000007, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000007, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000007.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -302,7 +302,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000007
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000007(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -313,7 +313,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000008
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000008 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000008, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000008, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000008.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -324,7 +324,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000008
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000008(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -335,7 +335,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -346,7 +346,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000009(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -357,7 +357,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -374,7 +374,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -391,7 +391,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -414,7 +414,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000009-4518a0fdf41d796760b384a358270d4682589820, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
|
||||
@@ -4,17 +4,17 @@ run 005 - rmt 1, cmp 0, arc_async 0
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0
|
||||
HINT: are you archiving to the correct stanza?
|
||||
@@ -23,8 +23,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000
|
||||
HINT: are you archiving to the correct stanza?
|
||||
@@ -33,8 +33,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, compressed = false, hash_type = sha1
|
||||
WARN: WAL segment 000000010000000100000001 already exists in the archive with the same checksum
|
||||
@@ -44,8 +44,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, compressed = false, hash_type = sha1
|
||||
ERROR: [120]: WAL segment 000000010000000100000001 already exists in the archive
|
||||
@@ -54,44 +54,44 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000003
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000004
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000004
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000004
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0
|
||||
HINT: are you archiving to the correct stanza?
|
||||
@@ -100,8 +100,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000
|
||||
HINT: are you archiving to the correct stanza?
|
||||
@@ -110,8 +110,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005, compressed = false, hash_type = sha1
|
||||
WARN: WAL segment 000000010000000100000005 already exists in the archive with the same checksum
|
||||
@@ -121,8 +121,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005, compressed = false, hash_type = sha1
|
||||
ERROR: [120]: WAL segment 000000010000000100000005 already exists in the archive
|
||||
@@ -131,44 +131,44 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000006
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000006
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000006
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000007
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000007
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000007
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000008
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000008
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000008
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0
|
||||
HINT: are you archiving to the correct stanza?
|
||||
@@ -177,8 +177,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000
|
||||
HINT: are you archiving to the correct stanza?
|
||||
@@ -187,8 +187,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009, compressed = false, hash_type = sha1
|
||||
WARN: WAL segment 000000010000000100000009 already exists in the archive with the same checksum
|
||||
@@ -198,8 +198,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009, compressed = false, hash_type = sha1
|
||||
ERROR: [120]: WAL segment 000000010000000100000009 already exists in the archive
|
||||
|
||||
@@ -4,19 +4,19 @@ run 006 - rmt 1, cmp 0, arc_async 1
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/local/archive/db/out, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/local/archive/db/out, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -26,13 +26,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
@@ -43,13 +43,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
@@ -60,13 +60,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
@@ -82,13 +82,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-4518a0fdf41d796760b384a358270d4682589820, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000001-4518a0fdf41d796760b384a358270d4682589820, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
@@ -99,17 +99,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000002 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -119,17 +119,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000003 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000003
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -139,17 +139,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000004
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000004 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000004, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000004, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000004.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000004
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -159,17 +159,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -179,13 +179,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
@@ -196,13 +196,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
@@ -213,13 +213,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
@@ -235,13 +235,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-4518a0fdf41d796760b384a358270d4682589820, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000005-4518a0fdf41d796760b384a358270d4682589820, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
@@ -252,17 +252,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000006
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000006 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000006
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -272,17 +272,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000007
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000007 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000007, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000007, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000007.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000007
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -292,17 +292,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000008
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000008 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000008, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000008, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000008.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000008
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -312,17 +312,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -332,13 +332,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
@@ -349,13 +349,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
@@ -366,13 +366,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
@@ -388,13 +388,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009-4518a0fdf41d796760b384a358270d4682589820, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000009-4518a0fdf41d796760b384a358270d4682589820, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
|
||||
@@ -4,17 +4,17 @@ run 007 - rmt 1, cmp 1, arc_async 0
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0
|
||||
HINT: are you archiving to the correct stanza?
|
||||
@@ -23,8 +23,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000
|
||||
HINT: are you archiving to the correct stanza?
|
||||
@@ -33,8 +33,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, compressed = false, hash_type = sha1
|
||||
WARN: WAL segment 000000010000000100000001 already exists in the archive with the same checksum
|
||||
@@ -44,8 +44,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001, compressed = false, hash_type = sha1
|
||||
ERROR: [120]: WAL segment 000000010000000100000001 already exists in the archive
|
||||
@@ -54,44 +54,44 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000003
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000004
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000004
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000004
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0
|
||||
HINT: are you archiving to the correct stanza?
|
||||
@@ -100,8 +100,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000
|
||||
HINT: are you archiving to the correct stanza?
|
||||
@@ -110,8 +110,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005, compressed = false, hash_type = sha1
|
||||
WARN: WAL segment 000000010000000100000005 already exists in the archive with the same checksum
|
||||
@@ -121,8 +121,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005, compressed = false, hash_type = sha1
|
||||
ERROR: [120]: WAL segment 000000010000000100000005 already exists in the archive
|
||||
@@ -131,44 +131,44 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000006
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000006
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000006
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000007
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000007
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000007
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000008
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000008
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000008
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0
|
||||
HINT: are you archiving to the correct stanza?
|
||||
@@ -177,8 +177,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000
|
||||
HINT: are you archiving to the correct stanza?
|
||||
@@ -187,8 +187,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009, compressed = false, hash_type = sha1
|
||||
WARN: WAL segment 000000010000000100000009 already exists in the archive with the same checksum
|
||||
@@ -198,8 +198,8 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
DEBUG: File->hash: db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009, compressed = false, hash_type = sha1
|
||||
ERROR: [120]: WAL segment 000000010000000100000009 already exists in the archive
|
||||
|
||||
@@ -4,19 +4,19 @@ run 008 - rmt 1, cmp 1, arc_async 1
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/local/archive/db/out, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/local/archive/db/out, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -26,13 +26,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
@@ -43,13 +43,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
@@ -60,13 +60,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
@@ -82,13 +82,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-4518a0fdf41d796760b384a358270d4682589820, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000001-4518a0fdf41d796760b384a358270d4682589820, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
@@ -99,17 +99,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000002 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -119,17 +119,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000003 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000003
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -139,17 +139,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000004
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000004 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000004, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000004 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000004, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000004.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000004
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000004-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -159,17 +159,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -179,13 +179,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
@@ -196,13 +196,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
@@ -213,13 +213,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
@@ -235,13 +235,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-4518a0fdf41d796760b384a358270d4682589820, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000005-4518a0fdf41d796760b384a358270d4682589820, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
@@ -252,17 +252,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000006
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000006 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000006
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -272,17 +272,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000007
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000007 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000007, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000007 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000007, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000007.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000007
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000007-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -292,17 +292,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000008
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000008 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000008, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000008 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000008, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000008.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000008
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000008-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -312,17 +312,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -332,13 +332,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
@@ -349,13 +349,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
@@ -366,13 +366,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
@@ -388,13 +388,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000009
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000009 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000009 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000009, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000009-4518a0fdf41d796760b384a358270d4682589820, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000009-4518a0fdf41d796760b384a358270d4682589820, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000009
|
||||
|
||||
@@ -4,8 +4,8 @@ run 001 - rmt 0, cmp 0, error version
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/out, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/out, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
@@ -18,8 +18,8 @@ DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000001(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->exists: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
@@ -31,7 +31,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000002 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -48,7 +48,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000003 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -71,7 +71,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -82,21 +82,21 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000002(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: archive 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000003
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000003(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: archive 000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000005(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: transferred 3 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -107,7 +107,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000006
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000006 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -118,7 +118,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000006
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000006(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
|
||||
@@ -4,8 +4,8 @@ run 002 - rmt 0, cmp 1, error version
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/out, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/out, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
@@ -18,8 +18,8 @@ DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000001(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->exists: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
@@ -31,7 +31,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000002 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -48,7 +48,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000003 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -71,7 +71,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -82,21 +82,21 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000002(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: archive 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000003
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000003(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: archive 000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000005(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: transferred 3 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
@@ -107,7 +107,7 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000006
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000006 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006.tmp to absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
@@ -118,7 +118,7 @@ DEBUG: Archive->pushCheck: backup:archive:000000010000000100000006
|
||||
DEBUG: File->exists: backup:archive:[TEST_PATH]/backrest/archive/db
|
||||
DEBUG: ArchiveInfo->new(): archiveClusterPath = [TEST_PATH]/backrest/archive/db
|
||||
DEBUG: File->list: backup:absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001, expression ^000000010000000100000006(-[0-f]+){0,1}(\.gz){0,1}$, sort forward
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/backrest/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to local backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz.tmp to absolute:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, destination_path_create = true
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/backrest/archive/db/out
|
||||
|
||||
@@ -4,19 +4,19 @@ run 003 - rmt 1, cmp 0, error version
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/local/archive/db/out, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/local/archive/db/out, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -26,13 +26,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000002 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
@@ -43,13 +43,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000003 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 2, size 32MB
|
||||
DEBUG: archive 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
@@ -66,23 +66,23 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 3, size 48MB
|
||||
DEBUG: archive 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: archive 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000003
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: archive 000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 3 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -92,17 +92,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000006
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000006 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000006
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
|
||||
@@ -4,19 +4,19 @@ run 004 - rmt 1, cmp 0, error connect
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/local/archive/db/out, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/local/archive/db/out, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -26,29 +26,27 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push --backup-host=bogus [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000002 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = bogus, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = bogus, isBackend = false, name = remote, user = [USER-1]
|
||||
ERROR: [124]: remote process terminated: no error captured because stderr is already closed
|
||||
ERROR: [124]: protocol version mismatch
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = bogus, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@bogus '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
ERROR: [124]: protocol version mismatch: ssh: Could not resolve hostname bogus: Name or service not known
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push --backup-host=bogus [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000003 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = bogus, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = bogus, isBackend = false, name = remote, user = [USER-1]
|
||||
ERROR: [124]: remote process terminated: no error captured because stderr is already closed
|
||||
ERROR: [124]: protocol version mismatch
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = bogus, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@bogus '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
ERROR: [124]: protocol version mismatch: ssh: Could not resolve hostname bogus: Name or service not known
|
||||
ERROR: local archive store max size has exceeded limit of 24MB - WAL segments will be discarded until the stop file ([TEST_PATH]/local/lock/db-archive.stop) is removed
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -60,23 +58,23 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 3, size 48MB
|
||||
DEBUG: archive 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: archive 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000003
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: archive 000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 3 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -86,17 +84,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000006
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000006 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 0, default_compress = 0
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000006
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
|
||||
@@ -4,19 +4,19 @@ run 005 - rmt 1, cmp 1, error version
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/local/archive/db/out, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/local/archive/db/out, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -26,13 +26,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000002 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
@@ -43,13 +43,13 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000003 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 2, size 32MB
|
||||
DEBUG: archive 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
@@ -66,23 +66,23 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 3, size 48MB
|
||||
DEBUG: archive 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: archive 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000003
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: archive 000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 3 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -92,17 +92,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000006
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000006 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000006
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
|
||||
@@ -4,19 +4,19 @@ run 006 - rmt 1, cmp 1, error connect
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000001
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000001 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/local/archive/db/out, mode [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000001 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000001, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->path_create: absolute:[TEST_PATH]/local/archive/db/out, mode 0750
|
||||
DEBUG: File->exists: absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000001
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -26,29 +26,27 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push --backup-host=bogus [TEST_PATH]/db/common/pg_xlog/000000010000000100000002
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000002 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000002 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000002, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = bogus, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = bogus, isBackend = false, name = remote, user = [USER-1]
|
||||
ERROR: [124]: remote process terminated: no error captured because stderr is already closed
|
||||
ERROR: [124]: protocol version mismatch
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = bogus, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@bogus '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
ERROR: [124]: protocol version mismatch: ssh: Could not resolve hostname bogus: Name or service not known
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push --backup-host=bogus [TEST_PATH]/db/common/pg_xlog/000000010000000100000003
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000003 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000003 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000003, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = bogus, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = bogus, isBackend = false, name = remote, user = [USER-1]
|
||||
ERROR: [124]: remote process terminated: no error captured because stderr is already closed
|
||||
ERROR: [124]: protocol version mismatch
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = bogus, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@bogus '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
ERROR: [124]: protocol version mismatch: ssh: Could not resolve hostname bogus: Name or service not known
|
||||
ERROR: local archive store max size has exceeded limit of 24MB - WAL segments will be discarded until the stop file ([TEST_PATH]/local/lock/db-archive.stop) is removed
|
||||
DEBUG: safe exit called, terminating threads
|
||||
|
||||
@@ -60,23 +58,23 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000005
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000005 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000005 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000005, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 3, size 48MB
|
||||
DEBUG: archive 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000002
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: archive 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000003
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: archive 000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000005
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 3 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
@@ -86,17 +84,17 @@ DEBUG: safe exit called, terminating threads
|
||||
> [BACKREST_BIN_PATH]/../bin/pg_backrest --config=[TEST_PATH]/db/pg_backrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db/common/pg_xlog/000000010000000100000006
|
||||
------------------------------------------------------------------------------------------------------------------------------------
|
||||
INFO: pushing WAL segment [TEST_PATH]/db/common/pg_xlog/000000010000000100000006 asynchronously
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/db/common/pg_xlog/000000010000000100000006 to local backup:archive:out:[TEST_PATH]/local/archive/db/out/000000010000000100000006, source_compressed = false, destination_compress = false, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: File->move: absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006.tmp to absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, destination_path_create = true
|
||||
DEBUG: No fork on archive local for TESTING
|
||||
DEBUG: starting async archive-push
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: Remote->new(): command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config "--cmd-psql=[PGSQL_BIN_PATH]/psql -X %option% -h [TEST_PATH]/db" --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, isBackend = false, name = remote, user = [USER-1]
|
||||
DEBUG: Protocol::RemoteMaster->new(): blockSize = 4194304, command = [BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, compressLevel = 6, compressLevelNetwork = 3, host = 127.0.0.1, user = [USER-1]
|
||||
DEBUG: Protocol::CommonMaster->new(): blockSize = 4194304, command = ssh -o Compression=no -o PasswordAuthentication=no backrest@127.0.0.1 '[BACKREST_BIN_PATH]/pg_backrest --no-config --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --no-fork --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', compressLevel = 6, compressLevelNetwork = 3, name = remote
|
||||
INFO: archive to be copied to backup total 1, size 16MB
|
||||
DEBUG: archive 000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031, is WAL 1, source_compressed = 0, destination_compress 1, default_compress = 1
|
||||
DEBUG: Archive->pushCheck: backup:archive:000000010000000100000006
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = [undef], user = [undef], group = [undef]
|
||||
DEBUG: File->copy: local db:absolute:[TEST_PATH]/local/archive/db/out/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031 to remote backup:archive:[TEST_PATH]/backrest/archive/db/9.3-1/0000000100000001/000000010000000100000006-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, source_compressed = false, destination_compress = true, ignore_missing_source = false, destination_path_create = true, modification_time = [undef], mode = 0640, user = [undef], group = [undef]
|
||||
DEBUG: transferred 1 WAL segment(s), calling Archive->xfer() again
|
||||
DEBUG: File->manifest: db:absolute:[TEST_PATH]/local/archive/db/out
|
||||
DEBUG: no archive logs to be copied to backup
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
13
test/test.pl
13
test/test.pl
@@ -205,29 +205,30 @@ if ($iThreadMax < 1 || $iThreadMax > 32)
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
# Make sure version number matches in README.md and VERSION
|
||||
# Make sure version number matches in the change log.
|
||||
####################################################################################################################################
|
||||
my $hReadMe;
|
||||
my $strLine;
|
||||
my $bMatch = false;
|
||||
my $strChangeLogFile = abs_path(dirname($0) . '/../CHANGELOG.md');
|
||||
|
||||
if (!open($hReadMe, '<', dirname($0) . '/../README.md'))
|
||||
if (!open($hReadMe, '<', $strChangeLogFile))
|
||||
{
|
||||
confess 'unable to open README.md';
|
||||
confess "unable to open ${strChangeLogFile}";
|
||||
}
|
||||
|
||||
while ($strLine = readline($hReadMe))
|
||||
{
|
||||
if ($strLine =~ /^\#\#\# v/)
|
||||
if ($strLine =~ /^\#\# v/)
|
||||
{
|
||||
$bMatch = substr($strLine, 5, length(BACKREST_VERSION)) eq BACKREST_VERSION;
|
||||
$bMatch = substr($strLine, 4, length(BACKREST_VERSION)) eq BACKREST_VERSION;
|
||||
last;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$bMatch)
|
||||
{
|
||||
confess 'unable to find version ' . BACKREST_VERSION . ' as last revision in README.md';
|
||||
confess 'unable to find version ' . BACKREST_VERSION . " as last revision in ${strChangeLogFile}";
|
||||
}
|
||||
|
||||
####################################################################################################################################
|
||||
|
||||
97
test/vm/Vagrantfile
vendored
97
test/vm/Vagrantfile
vendored
@@ -1,7 +1,16 @@
|
||||
Vagrant.configure(2) do |config|
|
||||
config.vm.provider :virtualbox do |vb|
|
||||
vb.memory = 1024
|
||||
vb.cpus = 4
|
||||
end
|
||||
|
||||
config.vm.define "u12" do |u12|
|
||||
u12.vm.box = "ubuntu/precise64"
|
||||
|
||||
u12.vm.provider :virtualbox do |vb|
|
||||
vb.name = "backrest-test-ubuntu-12.04"
|
||||
end
|
||||
|
||||
# Provision the VM
|
||||
u12.vm.provision "shell", inline: <<-SHELL
|
||||
# Install db
|
||||
@@ -24,18 +33,62 @@ Vagrant.configure(2) do |config|
|
||||
# Setup SSH
|
||||
adduser --ingroup=vagrant --disabled-password --gecos "" backrest
|
||||
/backrest/test/vm/ssh/setup.sh
|
||||
/backrest/test/vm/ssh/setup-cm.sh
|
||||
|
||||
# Install packages required for testing
|
||||
# Install required Perl modules
|
||||
apt-get install -y libdbd-pg-perl
|
||||
|
||||
# Run the actual test
|
||||
# /backrest/test/test.pl --db-version=all --thread-max=4
|
||||
# Install Perl modules required for building the docs
|
||||
apt-get install -y libxml-checker-perl
|
||||
SHELL
|
||||
end
|
||||
|
||||
config.vm.define "u14" do |u14|
|
||||
u14.vm.box = "ubuntu/trusty64"
|
||||
|
||||
u14.vm.provider :virtualbox do |vb|
|
||||
vb.name = "backrest-test-ubuntu-14.04"
|
||||
end
|
||||
|
||||
# Provision the VM
|
||||
u14.vm.provision "shell", inline: <<-SHELL
|
||||
# Install db
|
||||
echo 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main 9.5' >> /etc/apt/sources.list.d/pgdg.list
|
||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
||||
sudo apt-get update
|
||||
apt-get install -y postgresql-9.5
|
||||
pg_dropcluster --stop 9.5 main
|
||||
apt-get install -y postgresql-9.4
|
||||
pg_dropcluster --stop 9.4 main
|
||||
apt-get install -y postgresql-9.3
|
||||
pg_dropcluster --stop 9.3 main
|
||||
apt-get install -y postgresql-9.2
|
||||
pg_dropcluster --stop 9.2 main
|
||||
apt-get install -y postgresql-9.1
|
||||
pg_dropcluster --stop 9.1 main
|
||||
apt-get install -y postgresql-9.0
|
||||
pg_dropcluster --stop 9.0 main
|
||||
|
||||
# Setup SSH
|
||||
adduser --ingroup=vagrant --disabled-password --gecos "" backrest
|
||||
/backrest/test/vm/ssh/setup.sh
|
||||
/backrest/test/vm/ssh/setup-cm.sh
|
||||
|
||||
# Install required Perl modules
|
||||
apt-get install -y libdbd-pg-perl
|
||||
|
||||
# Install Perl modules required for building the docs
|
||||
apt-get install -y libxml-checker-perl
|
||||
SHELL
|
||||
end
|
||||
|
||||
config.vm.define "co6" do |co6|
|
||||
co6.vm.box = "chef/centos-6.6"
|
||||
|
||||
co6.vm.provider :virtualbox do |vb|
|
||||
vb.name = "backrest-test-centos-6.6"
|
||||
end
|
||||
|
||||
# Provision the VM
|
||||
co6.vm.provision "shell", inline: <<-SHELL
|
||||
# Install db
|
||||
@@ -50,21 +103,39 @@ Vagrant.configure(2) do |config|
|
||||
yum -y install postgresql93-server
|
||||
yum -y install postgresql94-server
|
||||
|
||||
# Install Perl
|
||||
yum -y install perl
|
||||
yum -y install perl-Time-HiRes
|
||||
yum -y install perl-Compress-Raw-Zlib
|
||||
yum -y install perl-IO-String
|
||||
yum -y install perl-parent
|
||||
yum -y install perl-JSON
|
||||
yum -y install perl-Digest-SHA
|
||||
# Install Perl and required modules
|
||||
yum -y install perl perl-Time-HiRes perl-IO-String perl-parent perl-JSON perl-Digest-SHA perl-DBD-Pg
|
||||
|
||||
# Setup SSH
|
||||
adduser -gvagrant -n backrest
|
||||
/backrest/test/vm/ssh/setup.sh
|
||||
SHELL
|
||||
end
|
||||
|
||||
# Install packages required for testing
|
||||
yum -y install perl-DBD-Pg
|
||||
config.vm.define "co7" do |co7|
|
||||
co7.vm.box = "chef/centos-7.1"
|
||||
|
||||
co7.vm.provider :virtualbox do |vb|
|
||||
vb.name = "backrest-test-centos-7.1"
|
||||
end
|
||||
|
||||
# Provision the VM
|
||||
co7.vm.provision "shell", inline: <<-SHELL
|
||||
# Install db
|
||||
sudo rpm -ivh http://yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-1.noarch.rpm
|
||||
sudo rpm -ivh http://yum.postgresql.org/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-1.noarch.rpm
|
||||
sudo rpm -ivh http://yum.postgresql.org/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-1.noarch.rpm
|
||||
yum -y install postgresql93-server
|
||||
yum -y install postgresql94-server
|
||||
yum -y install postgresql95-server
|
||||
|
||||
# Install Perl and required modules
|
||||
yum -y install perl perl-IO-String perl-Thread-Queue perl-JSON-PP perl-Digest-SHA perl-DBD-Pg
|
||||
|
||||
# Setup SSH
|
||||
adduser -gvagrant -n backrest
|
||||
/backrest/test/vm/ssh/setup.sh
|
||||
/backrest/test/vm/ssh/setup-cm.sh
|
||||
SHELL
|
||||
end
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
Host *
|
||||
StrictHostKeyChecking no
|
||||
StrictHostKeyChecking no
|
||||
|
||||
5
test/vm/ssh/config-cm
Normal file
5
test/vm/ssh/config-cm
Normal file
@@ -0,0 +1,5 @@
|
||||
Host 127.0.0.1
|
||||
StrictHostKeyChecking no
|
||||
ControlMaster auto
|
||||
ControlPath /tmp/%r@%h:%p
|
||||
ControlPersist 30
|
||||
5
test/vm/ssh/setup-cm.sh
Executable file
5
test/vm/ssh/setup-cm.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Copy ControlMaster ssh configs when the OS supports it
|
||||
|
||||
cp -f /backrest/test/vm/ssh/config-cm /home/vagrant/.ssh/config
|
||||
cp -f /backrest/test/vm/ssh/config-cm /home/backrest/.ssh/config
|
||||
Reference in New Issue
Block a user