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

810 Commits

Author SHA1 Message Date
David Steele
91b06bef47 File->manifest detects files that are modified in the future. 2015-01-03 14:22:59 -05:00
David Steele
2449d7384c Wrote a new test to check rsync collisions. 2015-01-03 12:56:44 -05:00
David Steele
2e080eedb8 Added an optional delay after manifest build so that files are not copied in the same second that the manifest is built. This can result in (admittedly unlikely) race conditions that can produce an invalid backup. I was also able to reduce the sleep types when waiting for thread termination - so unit test times are improved by almost 100%. 2015-01-02 14:18:07 -05:00
David Steele
297b22cb2b Added INFO level logging when paths/files/links are removed during the clean phase of restore deltas. 2015-01-02 14:15:15 -05:00
David Steele
32b37335a1 Trying to find realistic conditions where a file can be changed without the timestamp changing between backups. So far, this is the only case I can make work - it looks like adding a 1 second pause after creation of the manifest would cover this case. 2014-12-31 19:03:03 -05:00
David Steele
59e901684d Working on improved backup/restore unit tests. 2014-12-31 14:59:33 -05:00
David Steele
fb948de559 Fixed some minor issues in ownership code found by unit tests. 2014-12-31 12:28:16 -05:00
David Steele
7e083e8749 Restore as root is now working. 2014-12-31 11:20:46 -05:00
David Steele
0805055d4b More work on restore ownership code. 2014-12-30 15:41:43 -05:00
David Steele
46ba3a18df Ownership code runs through - may not work for all cases. 2014-12-30 11:59:57 -05:00
David Steele
9f8f33f957 Working on restore options and integration with unit tests. 2014-12-23 18:52:38 -05:00
David Steele
a96b83beb8 Restore can now remap base/tablespace locations.
Made Restore more modular.
2014-12-23 15:03:06 -05:00
David Steele
653ab486af All restore module variables are now object local. 2014-12-23 12:48:25 -05:00
David Steele
51544edc70 Some cleanup in restore. 2014-12-23 11:48:51 -05:00
David Steele
2db71e91ad Basic restore functionality is working. 2014-12-22 11:24:32 -05:00
David Steele
9086728b73 Restore removes paths/files/links and recreated paths/links. 2014-12-21 10:11:17 -05:00
David Steele
1557327d2b Restore cleans out missing files and some basic unit tests. 2014-12-19 17:49:56 +00:00
David Steele
161a73159e Added some constants. 2014-12-18 22:05:06 +00:00
David Steele
b9d9c7fa66 Incremented version to .50 since restore functionality if going in. 2014-12-18 16:47:03 +00:00
David Steele
1dc00c9d4b Starting on restore functionality, finally. 2014-12-18 16:42:54 +00:00
David Steele
1a3c5cd9db Added latest link so it is easy to get to the last backup. 2014-12-18 16:14:30 +00:00
David Steele
7d19504d3a Removed some tests in full that were redundant with the tests in backup. 2014-12-18 14:58:07 +00:00
David Steele
93c7ef3c9e Moved some code into a more logical order. 2014-12-18 14:56:01 +00:00
David Steele
c76a8d64d0 Moved more config logic to Config.pm 2014-12-16 17:41:54 +00:00
David Steele
6124558347 Moved config functions to a new file. 2014-12-15 22:20:42 +00:00
David Steele
6dd9e881dc Added reminder. 2014-11-27 14:07:09 +00:00
David Steele
602db70d6a More backup unit tests. 2014-10-20 11:44:36 -04:00
David Steele
9765b4e20b Backup unit test - more work on tablespaces and references. 2014-10-19 17:41:11 -04:00
David Steele
66a5da6fd1 More work on backup unit tests - added tablespace tests. 2014-10-19 16:30:16 -04:00
David Steele
4de1d9aa5a Backup unit tests are working. 2014-10-19 11:46:01 -04:00
David Steele
1d43c63326 Working on better backup unit tests. 2014-10-18 13:25:20 -04:00
David Steele
ed5777101f Changes in how paths are removed. 2014-10-16 13:22:34 -04:00
David Steele
b6e0bb2ae5 Small unit test changes. 2014-10-16 08:58:11 -04:00
David Steele
5c216c93d5 Working on backup unit tests. 2014-10-15 19:11:09 -04:00
David Steele
f9ff7c6ec7 Comments. 2014-10-14 23:58:17 -04:00
David Steele
0ba838cd3e Checksums seem to be working again - still waiting on the new backup unit tests to confirm. 2014-10-14 21:44:42 -04:00
David Steele
59a267d638 Fixed typos. 2014-10-14 15:46:03 -04:00
David Steele
b19dd9b552 Changes to the aborted backups code. 2014-10-14 15:44:50 -04:00
David Steele
3a54eaf9de Last backup type is now checked - still need a unit test for it. 2014-10-14 08:27:50 -04:00
David Steele
c8aeadce8e Comments. 2014-10-11 00:16:34 -04:00
David Steele
aafc0fef69 Removed Moose from the Db object. 2014-10-10 16:03:33 -04:00
David Steele
2c173ba53e Removed moose from File object. 2014-10-10 15:13:28 -04:00
David Steele
c1d6890c60 More Moose removal. 2014-10-09 16:01:06 -04:00
David Steele
3d86adadb5 Remote object now using ProcessAsync for de/compression.
Removed dependency on Moose from Remote.
2014-10-08 13:54:31 -04:00
David Steele
16ebbd2279 Documentation fixes. 2014-10-06 20:53:34 -04:00
David Steele
74cae73ee0 Moved version number to v0.31. 2014-10-05 20:21:15 -04:00
David Steele
4bc4d97f2b 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 (see INSTALL.md).

* Numerous other changes that can only be identified with a diff.
2014-10-05 19:49:30 -04:00
David Steele
de35cedc27 Working on getting async process thread into Remote.pl 2014-10-05 18:52:05 -04:00
David Steele
122dc65351 Added compress and checksum settings to backup manifest. 2014-10-03 09:31:23 -04:00
David Steele
fbc2ae1325 Fixed function names in comments. 2014-10-02 14:34:58 -04:00