1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
Commit Graph

158 Commits

Author SHA1 Message Date
David Steele
760baab6b2 Implemented issue #111: Add the psql path for *BSD.
Author: Eric Radman
Modified by Committer
2015-06-22 14:35:25 -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
61dfeca3c1 Fixed issue #108: Incompatibility with Perl 5.10.1 2015-06-21 12:06:13 -04:00
David Steele
22e126eda7 Fix for logic that removes trailing spaces from code. 2015-06-17 15:40:12 -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
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
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
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
cb153f7242 Docs and comment fixes. 2015-04-19 17:27:40 -04:00
David Steele
43d86e64a4 First pass at tests comparing rsync to backrest. Decent results, but room for improvement.
All tests local over SSH with rsync default compression, 4 threads and default compression on backrest.  Backrest default is gzip = 6, assuming rsync is the same.

On a 1GB DB:

rsync time = 32.82
backrest time = 19.48

backrest is 171% faster.

On a 5GB DB:

rsync time = 171.16
backrest time = 86.97

backrest is 196% faster.
2015-04-07 18:36:59 -04:00
David Steele
3f651a8ce8 Unit tests will now work across all installed versions of Postgres.
Created a function to list all supported versions.  Now used for all version checking.
2015-04-02 22:07:23 -04:00
David Steele
984fceea67 Moved archive functions from pg_backrest.pl and Backup.pl to Archive.pm.
Moved Remote code from pg_backrest.pl to Config.pm.
Added version specific code to regression tests and Db.pm.
archive-push checks for duplicate WAL in the archive.
archive-push reads the db sys id to match up WAL to the correct archive.
2015-04-01 15:58:33 -04:00
David Steele
882f068254 All config options can now be provided on the command-line.
Lots of name changes, but more thought needed there.
Still needs cleanup.
2015-03-12 12:15:19 -04:00
David Steele
ae6bdecfaf Split command-line parameter processing out into a separate file. This is in preparation allowing all parameters to be specified/overridden on the command line, with pg_backrest.conf being option. 2015-03-08 13:26:09 -04:00
David Steele
5d10a18b25 Added thread-max parameter to test.pl to allow backup threads to be specified. 2015-02-28 10:21:36 -05:00
David Steele
d6205d9501 Looks like all unit tests pass - now for a long test run to see if that is really true. And to see if the old lockup is gone. 2015-02-27 23:31:39 -05:00
David Steele
e20f93ef1b Cleaned up test usage. 2015-01-12 09:05:26 -05:00
David Steele
84abcd7d61 Minor fixes. 2015-01-11 11:53:03 -05:00
David Steele
34116d3816 Added usage to test.pl and automatic search for psql-bin. 2015-01-11 11:52:16 -05:00
David Steele
06ad947102 Using ' instead of " where appropriate. 2014-09-16 11:22:55 -04:00
David Steele
6b4a8fbc21 Unit tests now working on Ubuntu 12.04 2014-08-10 21:22:17 -04:00
David Steele
06b5ee3f75 Working on new config load/save functions and unit tests. 2014-07-16 23:38:38 -04:00
David Steele
9d9dae418b Added archive-put unit tests.
Lots of other unit test improvements.
2014-07-15 22:32:41 -04:00
David Steele
375545320d Added tests for large files (16MB archive log).
Fixed a sync error in binary_xfer().
2014-07-13 09:13:19 -04:00
David Steele
ed4bcf3e46 Whitespace is now cleaned in test.pl 2014-07-12 19:36:12 -04:00
David Steele
88bbbb4222 Fighting with a relative path issue in archive logging. 2014-06-22 20:19:13 -04:00
David Steele
8fff74ccfb Backup unit test able to create and drop clusters. 2014-06-22 11:56:01 -04:00
David Steele
3c748c4b10 More work on unit tests. 2014-06-22 10:54:31 -04:00
David Steele
0b597d8da9 Working on getting backup running again. 2014-06-22 10:30:17 -04:00
David Steele
7bc464a44b Working on BackRest::File methods. 2014-06-21 15:17:09 -04:00
David Steele
976bafca9e Added new tests. 2014-06-07 17:29:11 -04:00
David Steele
c2dd53f908 Changes to allow specific tests to be run. 2014-06-05 10:20:03 -04:00
David Steele
1b9782cb9e Converted path_create(), improved unit tests. 2014-06-03 21:22:07 -04:00
David Steele
0338369193 Working on more robust file functions. 2014-06-01 17:23:33 -04:00
David Steele
3e12f9230b Working on unit tests for file_copy. Still need to add specific error tests, timestamp, and permissions. 2014-05-14 15:07:37 -04:00
David Steele
194696f674 Working on unit tests. 2014-04-02 17:25:37 -04:00
David Steele
27b820cfb4 Backup handles files that were removed by the db 2014-02-18 15:42:51 -05:00
David Steele
a78d677b1e Wait for archive files. 2014-02-13 20:29:42 -05:00
David Steele
219120ba81 Archiving and flag changes. 2014-02-12 07:39:42 -05:00
David Steele
9d08f2a644 More robust config. Retention is read from config. 2014-02-06 12:49:54 -05:00
David Steele
7ffade2453 Fixed file mod time and permissions 2014-02-05 11:35:09 -05:00
David Steele
c1e5904880 Fixed xlog copy - working on correctness 2014-01-12 01:46:27 -05:00
David Steele
ba5075a3e0 New implementation for archive logging 2014-01-03 21:19:41 -05:00
David Steele
2ba26ffc26 More refactoring. 2013-12-14 13:14:59 -05:00
David Steele
0dba2ab8c7 Added backup command 2013-12-10 20:16:43 -05:00
David Steele
0bdccd2982 Reversed order of tests. 2013-12-10 19:18:41 -05:00
David Steele
f09505f60e Working on unit tests for archiving. 2013-12-10 19:11:54 -05:00
David Steele
39989dd01c Working on manifest. 2013-12-09 17:26:47 -05:00
David Steele
02a9a693b8 Working on backup. 2013-12-06 20:24:14 -05:00
David Steele
a2c98391df Starting on configuration. 2013-12-02 14:34:37 -05:00
David Steele
2be8c5d9e7 Working on unit tests. 2013-11-23 20:05:04 -05:00
David Steele
5d0251be2f Working on archive-local and beefing up unit tests. 2013-11-23 19:16:09 -05:00
David Steele
8b37786e5b Now connecting to db. 2013-11-22 23:24:37 -05:00
David Steele
8db52c115a Fixed whitespace. 2013-11-22 17:29:01 -05:00
David Steele
d86e7eb627 Added checksums. 2013-11-20 22:30:26 -05:00
David Steele
bc46aefe61 Fixed for OSX. Do not every use TextEditor on code! 2013-11-20 22:24:30 -05:00
David Steele
e67821a230 Working on OSX port. 2013-11-20 21:49:07 -05:00
David Steele
548578c8c9 Working on unit test. 2013-11-17 13:58:21 -05:00