David Steele
|
e95631f82a
|
Abortive attempt at cleaning up some thread issues - I realized the issue is in mixing threads and objects too liberally. Trying another approach but want to keep this code for historical and reference purposes.
|
2015-01-30 14:55:55 -05:00 |
|
David Steele
|
499d6c8422
|
Added tests for all --delta --force combinations.
Added error check for postmaster running.
Added error check for path not empty.
|
2015-01-28 13:14:46 -05:00 |
|
David Steele
|
60550cd45b
|
Archive async now works local, but there is a pending bug to make sure archive::path != backup::path.
Added code to be sure that restore will not try to log into the backup path unless it is local.
|
2015-01-28 00:28:21 -05:00 |
|
David Steele
|
b98b2df9f8
|
Fixed wait_for_file() so that it will not error if the path does not yet exist.
|
2015-01-28 00:26:20 -05:00 |
|
David Steele
|
a59bd8c328
|
Restores except for type=none are mostly working. There are some failing unit tests to fix.
|
2015-01-27 22:59:59 -05:00 |
|
David Steele
|
13544d51bf
|
Recovery is working for none and default, but unit tests are not complete.
|
2015-01-27 11:44:23 -05:00 |
|
David Steele
|
f59aae101d
|
Ready to start writing recovery unit tests.
|
2015-01-26 14:59:58 -05:00 |
|
David Steele
|
ac22c314a9
|
Working on plumbing for recovery options.
|
2015-01-26 11:01:24 -05:00 |
|
David Steele
|
eeffd62a12
|
Working on recovery options.
|
2015-01-25 17:27:46 -05:00 |
|
David Steele
|
6db49e1083
|
Cleaned up some time functions.
|
2015-01-25 12:20:12 -05:00 |
|
David Steele
|
e1c5f7f8ed
|
Now able to check for specific errors in unit tests - as long as they are raised with an error code.
|
2015-01-23 18:28:39 -05:00 |
|
David Steele
|
21c715b25c
|
Restore tablespace remaps are working.
|
2015-01-22 20:11:33 -05:00 |
|
David Steele
|
df4b50b977
|
Restore with base path remap working.
|
2015-01-22 19:04:55 -05:00 |
|
David Steele
|
82969eb497
|
Wrote some helper functions to make backup unit tests simpler.
Fixed an issue with checksum generation in resume.
|
2015-01-22 17:43:19 -05:00 |
|
David Steele
|
b53cb9f64e
|
Unit tests for backup resume.
Improved warning message when a backup cannot be resumed.
|
2015-01-22 10:54:02 -05:00 |
|
David Steele
|
fc2838d60f
|
All references to old-style manifest eliminated (hopefully).
|
2015-01-21 18:37:49 -05:00 |
|
David Steele
|
ade9ad78b4
|
Allow file keys to be validated on remove.
|
2015-01-21 13:57:58 -05:00 |
|
David Steele
|
ba7a939798
|
More migration to manifest object.
|
2015-01-21 10:44:08 -05:00 |
|
David Steele
|
a938813c01
|
More migration to manifest object.
|
2015-01-20 19:04:45 -05:00 |
|
David Steele
|
c33bc1e899
|
More migration to manifest object.
|
2015-01-20 18:00:03 -05:00 |
|
David Steele
|
26c568b7bc
|
Manifest checksum failure shows expected value to allow manual fix - though not recommended.
|
2015-01-20 16:20:27 -05:00 |
|
David Steele
|
92c9ed8963
|
Added checksum to manifest to detect corruption.
|
2015-01-20 16:05:15 -05:00 |
|
David Steele
|
44fad1f4a4
|
Improvements to manifest save.
|
2015-01-20 14:42:22 -05:00 |
|
David Steele
|
8a7ee1bb1f
|
Integration of new Manifest object.
|
2015-01-20 14:13:35 -05:00 |
|
David Steele
|
425e9485aa
|
Re-added File-hash() - accidentally deleted it when working on owner().
|
2015-01-08 16:36:45 -05:00 |
|
David Steele
|
131d910906
|
New structure for --delta and --force params.
|
2015-01-08 15:43:43 -05:00 |
|
David Steele
|
2e09df2cec
|
More work on new manifest object.
|
2015-01-08 12:04:56 -05:00 |
|
David Steele
|
0085e88966
|
Added File-owner()
|
2015-01-07 12:58:21 -05:00 |
|
David Steele
|
4f5ad8496d
|
Integrating new manifest object.
|
2015-01-07 10:59:43 -05:00 |
|
David Steele
|
d6d57e654e
|
Fixed the way wait was done after the manifest is created. Previously, waits were done for base and each tablespace which is not very efficient. Now one wait is done after the entire manifest is built. Also storing the exact time that copy began.
|
2015-01-06 13:08:56 -05:00 |
|
David Steele
|
43098086af
|
Implemented timestamp last modified to record the time of the last modified file in the backup. Also added timestamp-db-start and timestamp-db-stop to for more info. timestamp-db-start can be used for PITR.
|
2015-01-03 16:49:26 -05:00 |
|
David Steele
|
91b06bef47
|
File->manifest detects files that are modified in the future.
|
2015-01-03 14:22:59 -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
|
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
|
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
|
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 |
|