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
58d6c37f4a
Changed permission to mode in manifest.
2015-03-23 17:17:43 -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
3d0d308a98
Made all warnings FATAL.
...
Fixed one bug that was exposed.
2015-03-03 00:57:20 -05:00
David Steele
7dbb11e8b8
Added buffer-size param and added config validation improvements.
2015-03-02 22:58:32 -05:00
David Steele
8e8f2f3c77
New config options compress-level and compress-level-network to control compression levels.
2015-03-02 20:36:12 -05:00
David Steele
23102f19e5
All copy() cases generate checksums during copy.
...
Unit tests for bAppendChecksum option for copy().
2015-03-01 22:23:52 -05:00
David Steele
28326d6b4c
File->copy now returns hash and size in all cases, though the local copies are not optimal. They just call hash_size().
2015-02-28 19:07:29 -05:00
David Steele
260a6cb8f1
Working on calculating hash and file size in binary_xfer().
2015-02-28 15:54:49 -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
91b06bef47
File->manifest detects files that are modified in the future.
2015-01-03 14:22:59 -05:00
David Steele
2c173ba53e
Removed moose from File object.
2014-10-10 15:13:28 -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
4cbc6c650a
File->hash now works on compressed files.
2014-10-02 13:54:26 -04:00
David Steele
991afe3b16
Merge from dev-0.30.
...
Squashed commit of the following:
commit f3a012eb86702297ac06c9ae7c3da6a2eae41136
Author: David Steele <david@pgmasters.net>
Date: Wed Oct 1 19:05:57 2014 -0400
Fixed an issue where archive-get was not returning 1 if the archive directory did not exist. This happens when it is trying to retrieve archive log 00 and that has not been pushed from the master yet.
2014-10-02 10:55:38 -04:00
David Steele
bdbdaf39d3
Work in progress - new hash method.
2014-09-29 19:08:08 -04:00
David Steele
3ab81752c0
Using ' instead of " where appropriate.
2014-09-18 11:50:27 -04:00
David Steele
6b4a8fbc21
Unit tests now working on Ubuntu 12.04
2014-08-10 21:22:17 -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
934b7dbe9b
De/compression is now done in threads instead of forked processes.
2014-06-29 17:23:34 -04:00
David Steele
f9ec149ffe
Working on unit tests.
2014-06-28 14:32:34 -04:00
David Steele
e1829bb2d2
First fully working backup in a while.
2014-06-23 18:54:00 -04:00
David Steele
5d01aac92e
Working on backup - mostly working except for the last archive step.
2014-06-22 16:05:00 -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
0dd15dd216
Cleanup.
2014-06-21 20:08:49 -04:00
David Steele
753fa11b5d
remove() and hash() now working.
2014-06-21 19:16:55 -04:00
David Steele
7c161be995
manifest() and list() are working.
2014-06-21 18:19:37 -04:00
David Steele
53f1d3c78e
path_create() working.
2014-06-21 15:46:26 -04:00
David Steele
7bc464a44b
Working on BackRest::File methods.
2014-06-21 15:17:09 -04:00
David Steele
936b8d0db0
move() is working.
2014-06-21 14:19:03 -04:00
David Steele
80206a28e9
Ignore missing source in copy() working.
2014-06-21 12:22:25 -04:00
David Steele
4a113cae66
Better error handling for missing source file in copy().
2014-06-21 10:05:49 -04:00
David Steele
3af5239800
Various compression options working in copy().
2014-06-21 08:42:30 -04:00
David Steele
0b3b743f5a
Stupid compress issue was in the unit test - but did tighten up the code a bit.
2014-06-15 19:18:26 -04:00
David Steele
d162ce203d
Trying to get various compression options working in copy().
2014-06-15 18:32:43 -04:00
David Steele
adf654edb3
In-stream compression now working in copy.
2014-06-15 15:56:45 -04:00
David Steele
f51c06119c
copy() works through multiple runs an multiple remotes.
2014-06-15 09:32:11 -04:00
David Steele
d568b6525b
copy() works with remote in either direction.
2014-06-14 20:47:32 -04:00
David Steele
79f85fe6c4
Finally a working copy() with new protocol.
2014-06-14 19:50:54 -04:00
David Steele
3a32363a56
Working on copy.
2014-06-12 21:56:20 -04:00
David Steele
166318d00d
Moved remaining libraries and other files.
2014-06-07 16:25:20 -04:00
David Steele
31b05eaab3
Moved pg_backrest_utility.
2014-06-07 16:13:41 -04:00
David Steele
ea1a158d82
Improved logging.
2014-06-07 15:30:13 -04:00
David Steele
e07a6b4e3f
Cleaner remote implementation.
2014-06-07 13:15:55 -04:00
David Steele
ae130229ef
Working on remote protocol.
2014-06-06 21:16:24 -04:00
David Steele
e44cd6c1ca
More paths through copy() working.
2014-06-05 22:42:47 -04:00
David Steele
ca6b435c4f
June Hackathon: copy_in and copy_out functions written, some paths through File->copy() working, basic unit tests setup.
2014-06-05 16:40:05 -04:00