David Steele
61c729b37b
Worked on issue #122 : 9.5 Integration.
...
Skip copying tablespace_map instead of deleting it later.
Cleaned up the skip code for pg_control as well.
2015-08-07 10:21:08 -04:00
David Steele
4e7bd4468a
Worked on issue #122 : 9.5 Integration.
...
Most tests are working now. What's not working:
1) --target-resume option fails because pause_on_recovery setting was removed. Need to implement to the new 9.5 option and make that work with older versions in a consistent way.
2) No tests for the new .partial WAL segments that can be generated on timeline switch.
2015-08-06 16:36:55 -04:00
David Steele
8b57188bc1
Fixed issue #120 : Wrong "oldest backup timestamp" in info output.
2015-08-05 23:37:46 -04:00
David Steele
a10dd8ba98
Implemented issue #121 : Check data from db against what's passed to backrest.
2015-08-05 22:05:45 -04:00
David Steele
23e6267adc
Implemented issue #20 : Convert Postgres calls from psql to DBD::Pg.
2015-08-05 12:32:12 -04:00
David Steele
f8a2da9400
Work on issue #48 : Abandon threads and go to processes
...
* Major refactoring of the protocol layer to support this work.
* Fixed protocol issue that was preventing ssh errors (especially connect) from being logged.
2015-08-05 08:43:41 -04:00
David Steele
021afa8046
Ensure that info output is terminated by a linefeed.
...
On some systems the JSON->encode() function was adding a linefeed and on others it was not. This was causing regression test failures in in the test logs and may have also been inconvenient for users.
2015-08-01 17:26:15 -04:00
David Steele
1b0f997f59
Implemented issue #119 : Make sure all repo permissions are 640/750.
...
Updated remaining test logs.
2015-07-24 18:05:06 -04:00
David Steele
97c036973c
Implemented issue #119 : Make sure all repo permissions are 640/750.
2015-07-23 13:11:38 -04:00
David Steele
f3199d13b1
Implement issue #115 : When restoring copy pg_control last.
2015-07-16 11:12:48 -04:00
David Steele
ea7914d980
Wait now uses a Fibonacci backoff rather than exponential.
2015-07-11 19:07:28 -04:00
David Steele
e9ce4efedf
Removed dependency on dequeue_timed() which eliminates the CPAN install.
...
Added vagrant config for CentOS 6.
2015-07-10 09:20:28 -04:00
David Steele
8b7fd99637
Added vagrant configuration for Ubuntu 12.04.
...
Changes to regression tests to work better with VMs.
2015-07-06 21:00:48 -04:00
David Steele
38f48be3cf
Improvements to help to make it more dynamic depending on environment.
...
Changed PgBackRest to pgBackRest.
2015-07-02 10:05:13 -04:00
David Steele
7248795b91
Work on issue #48 : Abandon threads and go to processes
...
Replaced IPC::System::Simple and Net::OpenSSH with IPC::Open3 to eliminate CPAN dependency for multiple distros. Using open3 will also be used for local processes so it make sense to switch now.
2015-06-29 22:07:42 -04:00
David Steele
dcad0f7007
Merged issue #111 : Print the real exception when DBH->connect fails.
...
Author: Eric Radman
2015-06-22 14:20:56 -04:00
David Steele
f210fe99c3
Implemented issue #109 : Move VERSION into source code.
...
Also stopped replacing FORMAT number which explains the large number of test log changes. FORMAT should change very rarely and cause test log failures when it does.
2015-06-22 13:11:07 -04:00
David Steele
3f841fcd95
Improved issue #110 : 'db-version' is required but not defined.
...
Improved the error message and added hints.
2015-06-22 09:51:16 -04:00
David Steele
61dfeca3c1
Fixed issue #108 : Incompatibility with Perl 5.10.1
2015-06-21 12:06:13 -04:00
David Steele
06c2904212
Change operation constants and functions to command.
2015-06-18 16:55:09 -04:00
David Steele
4e2c14623b
Work on issue #48 : Abandon threads and go to processes
...
More separation of the protocol and remote layers than was done in issue #106 .
Settings are passed to the remote via command-line parameters rather than in the protocol.
2015-06-18 15:39:30 -04:00
David Steele
22e126eda7
Fix for logic that removes trailing spaces from code.
2015-06-17 15:40:12 -04:00
David Steele
a050b76fa9
Implement issue #107 : Better debug commands.
2015-06-17 15:33:58 -04:00
David Steele
a5d9d6d84d
Added file and directory syncs to the File object for additional safety during backup and archiving.
2015-06-17 12:53:33 -04:00
David Steele
9511f9c35c
Implemented issue #106 : Roll pg_backup_remote into pg_backrest
2015-06-17 11:26:07 -04:00
David Steele
b865070edd
Experimental 9.5 support. Unit tests are not working yet.
2015-06-14 10:12:36 -04:00
David Steele
0b6f81a812
Implemented issue #50 : Reverse ordering by file size.
2015-06-14 09:36:58 -04:00
David Steele
57640d1ac3
Implemented issue #96 : Executable names
2015-06-14 08:37:37 -04:00
David Steele
148836fe44
Implemented issue #26 : Info command.
...
* Includes updating the manifest to format 4. It turns out the manifest and .info files were not very good for providing information. A format update was required anyway so worked through the backlog of changes that would require a format change.
* Multiple database versions are now supported in the archive. Does't actually work yet but the structure should be good.
* Tests use more constants now that test logs can catch name regressions.
2015-06-13 18:25:49 -04:00
David Steele
af98f164cd
Fixed issue #97 : Interleaved log lines during parallel operations.
2015-06-02 09:42:56 -04:00
David Steele
95d62a82d9
Minor log changes for formatting and consistency.
2015-05-31 09:50:42 -04:00
David Steele
e7d2d704fe
Fixed issue #91 : Race condition in async archive-push.
2015-05-29 16:31:12 -04:00
David Steele
5fd4f3bd5b
Improvements to log testing.
...
Replaced tokens are now numbered to give a more accurate rendition of the logs.
Some formatting improvements.
2015-05-29 14:39:43 -04:00
David Steele
d321ef0b6d
Implement issue #89 : Make confess backtraces log-level dependent.
...
ASSERTs still dump stack traces to the console and file in all cases. ERRORs only dump stack traces to the file when the file log level is DEBUG or TRACE.
2015-05-29 12:26:31 -04:00
David Steele
13e4eec629
Implement issue #90 : Move archive-max-mb archive-stop checks to end of archive-push.
2015-05-29 11:41:19 -04:00
David Steele
7ace66e544
Implement issue #68 : Allow duplicate WAL to be pushed if the checksum matches.
2015-05-29 08:12:39 -04:00
David Steele
6d2f2d3f91
Fix for issue #74 : More helpful message when targeting missing stanzas.
2015-05-28 20:52:42 -04:00
David Steele
3083e5fc7e
Fix for issue #83 : Provide more helpful error message during archive-stop situations.
...
Fix for issue #84 : archive-async in combination with archive-max-mb doesn't work as documented.
Unit tests for archive stop.
2015-05-28 13:17:34 -04:00
David Steele
a4974f8996
Fix for issue #70 : command line help improvements
2015-05-26 15:29:42 -04:00
David Steele
ca0c866d3b
Implement issue #71 : log a message when waiting for a checkpoint
...
Some other log improvements
2015-05-26 12:26:59 -04:00
David Steele
5c43e7035a
Implement issue #79 : Support comment characters in config file
2015-05-26 11:36:03 -04:00
David Steele
d5335b40e8
Fix for issue #80 : enabling archive-copy causes failing differential & incremental backups
2015-05-22 14:49:14 -04:00
David Steele
5ada7fb5ad
Use JSON::PP instead of JSON since it is shipped with core Perl.
2015-05-12 15:44:10 -04:00
David Steele
9aa41ee76b
Added tablespace setting to allow compact database restores for development, staging, etc.
2015-05-08 18:34:27 -04:00
David Steele
a0d985b7ad
Fixed an issue where an absolute path was not written into recovery.conf when the restore was run with a relative path.
2015-05-07 17:37:25 -05:00
David Steele
1ac4b781fd
Better info logging for restore. Most of the messages were debug before and some important ones were missing.
2015-05-07 15:56:56 -06:00
David Steele
095a9a0b83
Added resume setting to allow disabling resume feature.
2015-05-07 10:29:30 -06:00
David Steele
328c2ca5c0
Much better resume:
...
1) Re-checksums files that have checksums in the manifest
2) Recopies files that do not have a checksum
3) Saves the manifest at regular intervals to preserve checksums
4) Unit tests for all cases (that I can think of)
2015-05-06 18:24:34 -06:00
David Steele
56588f6fdd
Log testing can now be enabled for certain deterministic tests. This works by comparing the generated logs against a previous copy. Currently only enabled for the backup/synthetic tests.
2015-05-05 11:08:48 -06:00
David Steele
174896e797
Centralized wait functions.
2015-04-23 20:52:41 -04:00