1
0
mirror of https://github.com/deajan/obackup.git synced 2024-11-15 04:03:41 +01:00
Commit Graph

543 Commits

Author SHA1 Message Date
deajan
30c88daaf2 Removed gzip --rsyncable option for MacOS 2017-03-14 22:18:15 +01:00
deajan
b121d96d69 Updated TSTAMP readability 2017-03-14 22:15:25 +01:00
deajan
375f5d413b Updated installer version logic 2017-03-14 22:15:13 +01:00
deajan
9474629d31 Check remote operation before remote cmd run 2017-02-13 12:16:10 +01:00
deajan
f4d587f1d1 Revert "Check backup type before remote system URI"
This reverts commit 52161b3faf.
2017-02-11 11:23:29 +01:00
deajan
52161b3faf Check backup type before remote system URI 2017-02-11 11:17:44 +01:00
deajan
34ba82784b Don't uninstall ssh filter if needed 2017-02-10 11:42:31 +01:00
deajan
bc2705273f Funnier obfuscation :) 2017-02-10 11:06:40 +01:00
deajan
041ad4eaa7 More fine grained _REMOTE_TOKEN obfuscation 2017-02-10 10:59:56 +01:00
deajan
32c29f2ea3 Obfuscate _REMOTE_TOKEN in logs 2017-02-10 10:50:40 +01:00
deajan
bc799380a4 Don't show failed commands on stdout, only log them 2017-02-10 10:40:56 +01:00
deajan
b4829a798f Remove unnecessary spaces 2017-02-10 10:34:40 +01:00
deajan
a54577f6c8 rngd also needs sudo for travis 2017-02-09 13:30:03 +01:00
deajan
249e37db32 Fixed _REMOTE_TOKEN for rsync again (common) 2017-02-09 12:53:38 +01:00
deajan
d395e99640 Fixed wrong place for _REMOTE_TOKEN in rsync function 2017-02-09 12:49:31 +01:00
deajan
90857f4248 Fixed some typos 2017-02-09 12:48:20 +01:00
deajan
1f3da3a952 Removed debugging line 2017-02-09 12:45:54 +01:00
deajan
b5ef76bfa3 Added optional separator for SetConfFileValues 2017-02-09 12:45:27 +01:00
deajan
7a930c9aef Fixed typo 2017-02-09 12:35:33 +01:00
deajan
900783f543 Added _REMOTE_TOKEN option for ssh filter 2017-02-09 12:30:56 +01:00
deajan
30f6e4e02c Added ssh_filter token options 2017-02-09 12:22:47 +01:00
deajan
7fc7676473 Imported ssh_filter fixes from osync 2017-02-09 12:21:11 +01:00
deajan
39cc2ca4b2 Update merger from osync 2017-02-09 12:13:36 +01:00
deajan
88a0718636 Update installer from osync 2017-02-09 12:13:10 +01:00
deajan
252df96e59 Updated ofunctions from osync 2017-02-09 12:12:41 +01:00
deajan
06efa18901 Fixed some typos 2017-01-09 12:30:38 +01:00
deajan
365c93a8a3 dd bs numeric format is not mac compatible 2017-01-09 11:21:47 +01:00
deajan
84bf01f2c8 Typos in assertEquals 2017-01-09 11:15:05 +01:00
deajan
84fa92e46c More preflight checks 2017-01-09 11:13:57 +01:00
deajan
19365df1ba Added pgrep preflight check 2017-01-04 09:08:23 +01:00
deajan
2d2530c55d Rebuilt targets for v2.1beta1 2017-01-04 09:00:47 +01:00
deajan
4e0bbbcd88 Update version number 2017-01-04 08:59:22 +01:00
deajan
f96d8ba5e0 Update version number 2017-01-04 08:59:13 +01:00
deajan
cdf62e3be8 Minor fixes 2017-01-04 08:55:04 +01:00
deajan
2d1cd20f06 Fixed wrong variable used 2017-01-03 20:07:40 +01:00
deajan
da9de0acdb Fixed another missing eval statement 2017-01-03 14:30:52 +01:00
deajan
b35d883403 More fixes 2017-01-03 14:24:47 +01:00
deajan
5dba4dc808 Multiple typo fixes and forgotten cmd exec 2017-01-03 14:13:53 +01:00
deajan
6335e889ea Fixed typo (again) 2017-01-03 13:17:43 +01:00
deajan
71dd3e939d More easy debugging 2017-01-03 13:01:18 +01:00
deajan
13ad1b9372 Fixed remaining typos 2017-01-03 12:35:42 +01:00
deajan
321aba05ff Minor fixes 2017-01-03 12:32:24 +01:00
deajan
4e75fdc445 Added bootstrap warning message 2017-01-03 11:25:24 +01:00
deajan
38b1a0ee0b Simplified FILE_SIZE_LIST since local and remote code is now same 2017-01-03 11:15:03 +01:00
deajan
fe8a5c51fa TrapError should output messages to stderr 2017-01-02 23:03:07 +01:00
deajan
643ede6524 Fixed wrong file size fetched remotely 2017-01-02 22:55:43 +01:00
deajan
6a51acbb49 Fixed local RemoteLogger usage 2017-01-02 22:48:59 +01:00
deajan
c448ff3937 Added missing remotelogger in getDirectoriesSizeRemote 2017-01-02 22:42:59 +01:00
deajan
89c74723bd Added debug log 2017-01-02 22:41:05 +01:00
deajan
bc3e3e9e66 Some work comments 2017-01-02 22:35:30 +01:00
deajan
bc396270df Fixed bogus backup when no recursive directories set 2017-01-02 22:26:00 +01:00
deajan
eead765d69 Reverted exit code handling 2017-01-02 22:23:44 +01:00
deajan
2db6a9ca29 Retval and comparaison code compliance 2017-01-02 17:08:39 +01:00
deajan
6c00014520 Fixing bogus remote logging 2017-01-02 16:58:21 +01:00
deajan
e968a67c04 Fixing typo 2017-01-02 16:47:07 +01:00
deajan
0c2b52e0bf Added parallel decryption support 2017-01-02 14:08:21 +01:00
deajan
c1aee74a3e Added parallel crypt support 2017-01-02 13:15:33 +01:00
deajan
83aed0fe20 Removed debug env 2017-01-02 12:46:47 +01:00
deajan
121d78d8aa Improved testsuite 2017-01-02 12:37:07 +01:00
deajan
290821e949 Missing manual database list detection fix 2017-01-02 12:01:58 +01:00
deajan
afce24c7ec Minor decrypt tweaks 2016-12-31 12:20:50 +01:00
deajan
4524df8a76 Removed double tests 2016-12-31 00:01:31 +01:00
deajan
d16e1e13c3 Improved GPG tests 2016-12-31 00:00:32 +01:00
deajan
2b69b4b3c1 Fix typos 2016-12-29 00:47:48 +01:00
deajan
259b05ff33 Improved GPG v >= 2.1 batch support 2016-12-29 00:44:33 +01:00
deajan
53eaeb4dd7 Fixed batch encrypt support 2016-12-29 00:20:01 +01:00
deajan
dfee375b8d Fixed typos 2016-12-28 23:28:47 +01:00
deajan
b4255318e6 Simplified CreateDirectoryRemote 2016-12-28 23:25:11 +01:00
deajan
a81f741204 Reenabled all tests 2016-12-28 22:20:59 +01:00
deajan
805239e669 Update file backup paths when encryption is used 2016-12-28 22:18:59 +01:00
deajan
a8b6bcbf13 Updated functional tests 2016-12-28 22:15:44 +01:00
deajan
b6ad787e23 Removing unnecessary files 2016-12-28 22:14:45 +01:00
deajan
de44f55cb8 Updated some test paths 2016-12-28 22:13:43 +01:00
deajan
1f8fef8c52 Set of minor fixes and WIPs 2016-12-27 12:53:35 +01:00
deajan
e3c6ae3a40 Added global local os variables 2016-12-27 12:52:59 +01:00
deajan
549bb803dd Fixed installer stats don't include os 2016-12-27 12:52:37 +01:00
deajan
7eb1acd079 Fixed alert message for bogus conf items with wrong value 2016-12-24 15:45:39 +01:00
deajan
10e6ede85c Multiple minor fixes 2016-12-24 15:41:28 +01:00
deajan
582f79d38f Re-enabled all tests 2016-12-24 13:01:31 +01:00
deajan
1a23c48d3c Fixed hard max exec time can be lower that soft max exec time 2016-12-24 12:55:00 +01:00
deajan
749e4ffdbd Increased wait time for timed tests 2016-12-24 12:43:37 +01:00
deajan
92ad2ac81d soft max exec time should trigger warning 2016-12-23 22:41:31 +01:00
deajan
db5593ddb9 Updated conf filename 2016-12-23 22:36:46 +01:00
deajan
0eac2b5520 Removed unused mail 2016-12-23 22:34:59 +01:00
deajan
190c6dd3f7 Time test tweaks 2016-12-23 22:29:02 +01:00
deajan
3a4aab72b1 Mail fixes for tests 2016-12-23 22:25:23 +01:00
deajan
d934add237 Small minor fixes 2016-12-23 22:12:07 +01:00
deajan
9d6b95e7a6 Added --no-prefix option 2016-12-23 21:51:34 +01:00
deajan
33bb142467 Added timed execution tests 2016-12-23 21:46:43 +01:00
deajan
a4ad02e7f7 More old upgrade remote fixes 2016-12-23 21:35:02 +01:00
deajan
f3a7faf0dd Fixed bogus ssh port on travis 2016-12-23 21:29:02 +01:00
deajan
0d969d992b Disable REMOTE_HOST_PING on travis (again) 2016-12-23 21:23:49 +01:00
deajan
3c72bffdbf Disabled remote ping on travis 2016-12-23 20:43:58 +01:00
deajan
94b4f58740 Moved compression settings to separate function run twice after of detection 2016-12-23 20:31:47 +01:00
deajan
be559a124c Updated test email address 2016-12-23 20:20:22 +01:00
deajan
546df675e7 Fixed warnings and errors don't trigger actions on exit 2016-12-23 20:15:38 +01:00
deajan
cd1c597e68 Added encrypt / decrypt batch info output 2016-12-23 20:12:05 +01:00
deajan
c144278c2a Updated test framework 2016-12-23 19:25:26 +01:00
deajan
6cc894b69d Fixed missing REMOTE_FIND_CMD command 2016-12-23 18:23:13 +01:00
deajan
630b7d9eff Fixed Logger function when called without proper loglevel 2016-12-23 18:15:42 +01:00
deajan
40102defd6 Moved JoinString as it's needed for Logger 2016-12-23 18:13:48 +01:00
deajan
4ee20b130e Corrected wrong number of arguments checked for BackupDatabase sub functions 2016-12-23 18:02:03 +01:00
deajan
d48fe86d75 Another dev comment 2016-12-23 17:59:58 +01:00
deajan
6864cedb14 Updated shellcheck from osync 2016-12-23 17:52:24 +01:00
deajan
85e680cc75 New __CheckArguments call syntax 2016-12-23 17:51:57 +01:00
deajan
7e63f1dab2 WIP for refactoring ListRemoteDirectories 2016-12-23 17:51:15 +01:00
deajan
39cfa7e89e WIP comment 2016-12-20 22:59:09 +01:00
deajan
47b6d21480 WIP for bootstrap 2016-12-20 22:53:22 +01:00
deajan
1dbd3e9a72 Added common files from osync 2016-12-20 21:19:58 +01:00
deajan
7967251206 Added merge and bootstrap from osync 2016-12-20 21:19:31 +01:00
deajan
25fb362762 More work comments 2016-12-19 23:19:45 +01:00
deajan
6d6ea301aa Added TSTAMP suffix to tmp exec files 2016-12-19 23:02:19 +01:00
deajan
d02d26fee1 Updated ofunctions from osync 2016-12-19 22:57:36 +01:00
deajan
31eaee7993 Updated multiple comments and remote sudo execs 2016-12-19 22:57:21 +01:00
deajan
da29cf978f Updated ofunctions from obackup 2016-12-04 11:18:11 +01:00
deajan
039e057915 Some minor improvements ported from osync 2016-12-04 11:17:51 +01:00
deajan
625a65bee0 Moved trap functions later in init phase 2016-11-30 14:21:53 +01:00
deajan
ff791f2ccf Rebuilt targets 2016-11-30 14:04:41 +01:00
deajan
161599617d Updated ofunctions from osync 2016-11-30 13:59:27 +01:00
deajan
a527350afa Ported some fixes from osync 2016-11-30 13:59:15 +01:00
deajan
d7cba2acc2 Updated WaitFor & ParallelExec tests 2016-11-30 13:59:01 +01:00
deajan
b8216f8d6a Improved os detection 2016-11-30 13:28:56 +01:00
deajan
8f0efbcb46 Simplified batch tool 2016-11-30 13:28:37 +01:00
deajan
92852357e3 Updated merge for BSD / Mac compat 2016-11-30 13:28:26 +01:00
deajan
b156013598 Some Mac fixes from osync 2016-11-21 15:11:40 +01:00
deajan
e3a717c7fa Better android OS detection 2016-11-19 12:59:56 +01:00
deajan
b21fafd523 Fixed Android / CentOS 5 compat 2016-11-19 12:59:33 +01:00
deajan
b1ea1dfa2c Removed debugging exit 2016-11-17 21:19:12 +01:00
deajan
6c9e4082be Simplified cleanup functions 2016-11-17 21:05:07 +01:00
deajan
16fc043322 Rebuilt targets 2016-11-17 21:02:15 +01:00
deajan
3fe2f1eb88 Updated obackup according to new ofunctions 2016-11-17 21:01:09 +01:00
deajan
169f7b157c Updated ofunctions.sh from osync 2016-11-17 21:00:56 +01:00
deajan
2167bc8e09 More fixes from osync 2016-11-15 13:13:28 +01:00
deajan
6f697cc63f Cosmetic change 2016-11-15 13:13:05 +01:00
deajan
03f93d2576 Added --errors-only switch 2016-11-14 17:17:29 +01:00
deajan
709af82ff4 Updated ofunctions from osync 2016-11-14 17:17:17 +01:00
deajan
88a720be21 Rebuilt targets 2016-11-12 00:39:19 +01:00
deajan
321a20558a fi-Fixed 2016-11-12 00:39:06 +01:00
deajan
711465f701 Rebuilt targets 2016-11-10 16:25:37 +01:00
deajan
3975763ed2 Fixed typo 2016-11-10 16:25:07 +01:00
deajan
177321a9de Fixes from osync 2016-11-10 16:25:00 +01:00
deajan
6075b92c91 Some logging fixes 2016-11-10 16:18:29 +01:00
deajan
a8892f88d0 Implement TLS and SSL support for busybox sendmail 2016-10-23 20:28:20 +02:00
deajan
f2e0f63a33 Safer upgrade test 2016-10-23 19:01:14 +02:00
deajan
3ca39c7a0a Fixed trying other mail systems in busybox 2016-10-23 18:13:06 +02:00
deajan
e4e1273e5a Implemented SSH_PASSWORD_FILE option 2016-10-23 18:04:39 +02:00
deajan
9641b9d277 It's typo heavean 2016-10-23 17:50:10 +02:00
deajan
0a8b17814b Typo fixed and code compliance 2016-10-23 17:46:23 +02:00
deajan
caa462fee7 More busybox sendmail tests 2016-10-23 14:09:27 +02:00
deajan
7a17118305 Fixed typo 2016-10-23 14:04:23 +02:00
deajan
f2a62821d6 Basic sendemail busybox implementation 2016-10-23 14:02:52 +02:00
deajan
04524e6bec More portable quick sync check 2016-10-23 13:50:38 +02:00
deajan
b697c13c76 Another compression fix for busybox 2016-10-23 13:48:34 +02:00
deajan
4044ea6dbc Minor portability fix 2016-10-23 13:40:55 +02:00
deajan
b331ffb1f2 Further busybox compat. xz compression level not supported 2016-10-23 13:34:33 +02:00
deajan
ba8541d5f0 More portable file size functions 2016-10-23 13:27:02 +02:00
deajan
4f4fcf831a Fixed HumanToNumeric function 2016-10-23 13:26:41 +02:00
deajan
2118a27bcc Better preflight check 2016-10-19 12:27:37 +02:00
deajan
6cbb3fe5da Removed other connectivity checks 2016-09-09 12:55:45 +02:00
deajan
bcbbdc9cc3 Disabled connectivity checks 2016-09-09 12:47:37 +02:00
deajan
b838100556 Connectivity checks generate warnings instead of errors 2016-09-09 12:46:33 +02:00
deajan
281cb38ba5 Added upgrade script test 2016-09-09 12:36:30 +02:00
deajan
7e918cfbc2 Added pre-upgrade config file 2016-09-09 12:31:40 +02:00
deajan
4e9eee7c48 Rebuilt targets 2016-09-09 08:31:29 +02:00
deajan
cfbec5120b Fixed typo 2016-09-09 08:31:16 +02:00
deajan
a35edebafc Check for gpg recipient if encryption is used 2016-09-09 08:14:29 +02:00
deajan
8573ecfcb5 Rebuilt targets 2016-09-08 22:51:24 +02:00
deajan
179434e9b0 Updated common scripts 2016-09-08 22:51:00 +02:00
deajan
25cb702d22 Better GPG compatibility 2016-09-04 22:48:09 +02:00
deajan
8924ae31ff Still trying to resolve the mystery of GPG in travis 2016-09-04 22:34:42 +02:00
deajan
c6f386bf01 Trying to resolve Travis GPG mystery 2016-09-04 22:25:24 +02:00
deajan
6a1b2b9d48 Added more gpg tests 2016-09-04 22:20:18 +02:00
deajan
5a8d1ab811 Another typo bites the dust 2016-09-04 22:05:01 +02:00
deajan
e59fcdbe15 Re enabled gpg fix 2016-09-04 21:51:26 +02:00
deajan
da5d98e922 PassPhrase test 2016-09-04 21:41:05 +02:00
deajan
20cf783bdb Added gpg unit test 2016-09-04 21:37:24 +02:00
deajan
93dbcb4f74 Common travis run 2016-09-04 21:26:19 +02:00
deajan
5aae319a2e Still trying to debug travis 2016-09-04 21:16:48 +02:00
deajan
176564769c Mismatch in loglevels 2016-09-04 21:16:32 +02:00
deajan
f0170d949a Trying to debug travis run 2016-09-04 21:11:05 +02:00
deajan
e741aa6bc2 Fixed typo 2016-09-04 19:42:22 +02:00
deajan
e0a8c5567d Added SetEncryption before all functions 2016-09-04 09:38:11 +02:00
deajan
1187360b62 Run all tests 2016-09-04 09:33:29 +02:00
deajan
099575fb88 Work in progress on encrpytion 2016-09-04 09:30:12 +02:00
deajan
272adb24e7 Fixed typos 2016-09-04 08:37:21 +02:00
deajan
c84e4eae9e Updated tests 2016-09-04 08:07:17 +02:00
deajan
69b41e01dd Fixed double error count in WaitForTaskCompletion 2016-09-04 08:03:28 +02:00
deajan
af9924a648 Updated tests 2016-09-03 14:18:03 +02:00
deajan
2346594adc Kept IsNumeric expand for variable variables 2016-09-03 13:30:38 +02:00
deajan
cd3da2d589 Added Integer test function 2016-09-03 13:10:14 +02:00
deajan
65a3a0a19a Fixed unit tests 2016-09-02 23:22:29 +02:00
deajan
26664835c0 Updated unit test config files 2016-09-02 23:20:48 +02:00
deajan
cf8f3f20ef Minor fixes 2016-09-02 23:20:07 +02:00
deajan
fc8ef801a4 Fix EscapeSpaces on bash >= 4.3 2016-09-02 21:18:18 +02:00
deajan
3b090d8e43 Changed travis ssh config 2016-09-02 20:36:45 +02:00
deajan
3134131975 Made tee work with push command 2016-09-02 20:32:17 +02:00
deajan
bfbd57490b Added known_hosts workaround for ssh tests 2016-09-02 20:31:49 +02:00
deajan
064b3f875b Debugging travis 2016-09-02 16:33:49 +02:00
deajan
dd42cd08b0 Fixed problem with gpg 1 2016-09-02 16:33:23 +02:00
deajan
05590e1266 Debug Travis CI tests 2016-09-02 16:08:23 +02:00