Commit Graph

1125 Commits

Author SHA1 Message Date
deajan 34724352f7 Update texte files 2018-10-18 00:02:23 +02:00
deajan 27f6d2a948 Rebuilt targets 2018-10-17 23:53:13 +02:00
deajan b8f18ac860 Update coding conventions 2018-10-17 23:52:46 +02:00
deajan 01e4ec9ef1 Update tests 2018-10-17 23:33:52 +02:00
deajan fb1fd00f0e Fixed multiple race conditions 2018-10-17 23:33:30 +02:00
deajan 569048c19b Fixed bogus WAIT_FOR_TASK_COMPLETION_ return from ExecTasks 2018-10-15 19:23:48 +02:00
deajan efd8dca58e Fixed another batch of wrong ExecTaks ids 2018-10-14 23:15:38 +02:00
deajan 92dbd6b2fc Fixed partial WAIT_FOR_TASK_COMPLETION_ output 2018-10-14 23:10:34 +02:00
deajan 7e7388a9eb Fixed variable leak 2018-10-14 23:08:03 +02:00
deajan 109f0a0887 Fixed bogus ExecTasks id checks 2018-10-14 23:06:19 +02:00
deajan 54a665fe7e Removed debugging code 2018-10-14 22:51:01 +02:00
deajan 255be72c43 Removed diagnostic lines 2018-10-14 22:41:18 +02:00
deajan 04f11fcab8 Reactivated all tests 2018-10-14 19:14:22 +02:00
deajan 39e5bb92f0 Removed travis debug lines 2018-10-14 19:13:04 +02:00
deajan 0f0ba9b001 Change remote RUN_DIR for unit tests only 2018-10-14 19:12:16 +02:00
deajan 330495b1e8 Prevent variable leak in Logger 2018-10-14 16:35:34 +02:00
deajan 203400000f Minor code cleanup 2018-10-14 16:17:58 +02:00
deajan 85ac20080b ExecTasks debug __CheckArguments should happen before debug log 2018-10-14 16:06:07 +02:00
deajan a28c20d9bd Fixed variable mismatch 2018-10-14 10:51:11 +02:00
deajan c9bc7f4b6c Change all occurences of '-' in ExecTasks id 2018-10-13 23:41:13 +02:00
deajan 17cf11eb0b ExecTasks ids may not include dots 2018-10-13 17:20:18 +02:00
deajan 39053f59e3 More precise ExecTasks ids 2018-10-13 17:05:53 +02:00
deajan 295c74ca58 More logging for ExecTasks 2018-10-13 17:02:02 +02:00
deajan 1896ec793e Removed empty line making missing shebang 2018-10-13 10:43:11 +02:00
deajan 5c6132dd2c Moved rsyncCmd background execution to eval 2018-10-13 10:36:31 +02:00
deajan 438c85b777 Removed unnecessary ExecTasks from _getFileCtimeMtimeRemote function 2018-10-12 19:42:39 +02:00
deajan bbc960d566 No more ping/ping between initiator/target daemons 2018-10-10 20:58:28 +02:00
deajan c963d71ecd Fixing ping/pong between initiator and targets 2018-10-10 20:57:48 +02:00
deajan 1b8f2ea7fc Added daemon mode known issue 2018-10-10 20:57:22 +02:00
deajan 4c999ec229 Remote deletion returns error when no error has happened 2018-10-10 20:47:11 +02:00
deajan a2e3e96827 WIP for target-helper 2018-10-10 20:39:49 +02:00
deajan 4be8429b96 Allow setting MIN_WAIT and MAX_WAIT on the fly 2018-10-10 15:19:32 +02:00
deajan 0e103cd98b Added push file exclusion in RSYNC_FULL_PATTERNS 2018-10-10 15:13:36 +02:00
deajan 83cfabed6f Litte performance improvement by not running code again 2018-10-10 15:02:00 +02:00
deajan dfe09f2fa3 Rebuilt targets 2018-10-10 02:19:59 +02:00
deajan ff26961e82 Fixed BSD daemon mode 2018-10-10 02:19:38 +02:00
deajan ca63bfabe0 Testing for directories in triggerupdate functions 2018-10-10 02:12:57 +02:00
deajan 2aa36b626a Replaced Logger with RemoteLogger in triggerUpdate 2018-10-10 02:09:46 +02:00
deajan f0336c0dec Added target-helper syncdir checks 2018-10-10 01:57:20 +02:00
deajan 3dc8478ba7 Added default MIN_WAIT and MAX_WAIT values 2018-10-10 01:45:39 +02:00
deajan 633e6397d0 Fixed missing equal sign for password-file 2018-10-10 01:40:26 +02:00
deajan babeea9d9a Fixed unlocking 2018-10-10 01:33:31 +02:00
deajan 9cb6cc57af Fixed typos 2018-10-10 01:31:12 +02:00
deajan 7eb4ee68ae Added unlockReplica pid initialisation 2018-10-10 00:05:46 +02:00
deajan 660e856986 Unlocking only when locks exist 2018-10-10 00:04:30 +02:00
deajan ac31de2388 Cleanup also called when bogus config detected 2018-10-09 23:57:53 +02:00
deajan ae64a967f6 Continuing isolating ConflictLog detection issue 2018-10-08 22:40:41 +02:00
deajan 2ca8803b3a No need for paranoia debug in CleanUp for remote exec 2018-10-08 21:53:30 +02:00
deajan ad9d978fc2 Typo fixing 2018-10-08 21:50:35 +02:00
deajan 7570794632 Improved remote execution results 2018-10-08 21:40:57 +02:00
deajan 4651ff0e06 Added remote detection 2018-10-08 21:34:41 +02:00
deajan 0e2189c441 Added RUN_DIR subset 2018-10-08 21:29:47 +02:00
deajan 1ab6042a62 Fixed typo in _getFileCtimeMtimeRemote 2018-10-08 21:17:36 +02:00
deajan a5f5b3a800 Rebuilt targets 2018-10-08 20:12:59 +02:00
deajan b95474a8e6 Updated expr to not use extended regular expressions 2018-10-08 20:11:39 +02:00
deajan e3855c4256 Revert work on _getCtimeMtimeFileRemote error detection 2018-10-07 17:51:15 +02:00
deajan 51f6dcbd71 Trying to identify concurrency issue with ConflictDetection 2018-10-07 17:50:37 +02:00
deajan 3d68a135a4 Conflict detection random bug isolation 2018-10-07 14:43:31 +02:00
deajan 9e17e114f7 Rebuilt targets 2018-10-07 14:42:41 +02:00
deajan 94a71620a1 Made ctime.mtime functions more clear in syntax 2018-10-07 13:23:45 +02:00
deajan bad7767809 Harmonize ExecTasks calls 2018-10-07 12:59:56 +02:00
deajan fa5cf2de57 Another set of conflictLog issue isolation 2018-10-07 12:25:53 +02:00
deajan 9eb29c3454 Rebuilt targets 2018-10-07 12:25:27 +02:00
deajan 4129dfff37 Typo fix 2018-10-07 12:25:07 +02:00
deajan c452bd45e6 Increased TSTAMP randomization 2018-10-07 12:24:35 +02:00
deajan 6b0bab0984 Removed unused variable 2018-10-07 12:23:59 +02:00
deajan 89d63d83b8 Removed unused variable 2018-10-06 22:16:11 +02:00
deajan e0f177f5c2 Added comment about unit file verification 2018-10-06 21:57:11 +02:00
deajan 6bd5862702 Removed unused argument from conflictList 2018-10-06 21:41:58 +02:00
deajan eb8c780d84 Rebuilt targets 2018-10-06 20:03:58 +02:00
deajan 58e5c654d3 Isolate conflict detect bug 2018-10-05 00:51:20 +02:00
deajan e411c81f3d Removed double debug logs 2018-10-05 00:46:11 +02:00
deajan 57647b8960 Isolate ConflictDetection function 2018-10-05 00:39:48 +02:00
deajan 5b395b3c04 Travis debug can fail 2018-10-02 23:37:33 +02:00
deajan 4bd4bbc247 Reverted travis debug lines 2018-10-02 23:26:04 +02:00
deajan 4de784d90f Added default umask 2018-10-02 23:20:26 +02:00
deajan 6c1b7a541b Fixed bogous CreateDir rights 2018-10-02 23:06:33 +02:00
deajan 6e7b99debb IsInteger should be part of ofunctions micro/mini 2018-10-02 23:00:54 +02:00
deajan 996e6251e1 Added missing IsInteger function 2018-10-02 22:43:24 +02:00
deajan a265ca4eef Travis here and travis there 2018-10-02 22:38:57 +02:00
deajan 306d5ff1ad Added permissions on CreateDir 2018-10-02 22:36:30 +02:00
deajan 74271d220c I f*cking hate travis 2018-10-02 21:27:12 +02:00
deajan 8a350333a8 Travis debug... 2018-10-02 19:32:21 +02:00
deajan e9daf2b2bf Removed unused code 2018-10-02 19:30:36 +02:00
deajan d58071c898 Why is travis so bad... 2018-10-02 19:29:15 +02:00
deajan b07ee4a645 Fixed installer directive 2018-10-02 19:26:57 +02:00
deajan 9537b92bf6 Rebuilt targets 2018-10-02 19:02:31 +02:00
deajan 2c857a1e83 Fixed removing directories on soft deletion 2018-10-02 19:01:44 +02:00
deajan 6f2e1af3d7 Added release policy 2018-10-02 18:24:40 +02:00
deajan 0b7b6808d5 Add shellcheck exclusions 2018-10-02 18:22:36 +02:00
deajan 7eab6df734 Better log message 2018-10-02 18:19:32 +02:00
deajan bc6ebdb80e Fixed merge paths and removed unused code 2018-10-02 18:13:48 +02:00
deajan 0d6f7e0ca0 Merge cleanup 2018-10-02 18:11:01 +02:00
deajan 49948dd637 Fixed installer 2018-10-02 18:09:21 +02:00
deajan f35d5841c2 Added cleanup routine 2018-10-02 18:09:12 +02:00
deajan 81148db1fa Fixed merge producing rogue logs 2018-10-02 18:08:03 +02:00
deajan 250ac48ed6 Indentation fix 2018-10-02 11:41:46 +02:00
deajan 65d4c3c3ff Random generator improvements 2018-10-02 11:37:46 +02:00
deajan bbfa4c9d3b Rebuilt targets 2018-10-02 10:52:25 +02:00
deajan 25070032c4 Typo fix 2018-10-02 10:51:45 +02:00
deajan 4f76bb4ad2 Simpler merge process 2018-10-02 10:49:28 +02:00
deajan 465a3b9b80 IsNumeric and IsNumericExpand are now busybox compatible 2018-10-02 10:49:16 +02:00
deajan a9434e605b Removed unused dummy function 2018-10-02 10:09:40 +02:00
deajan 06004ac05d Function reorganisation 2018-10-02 10:07:01 +02:00
deajan b2463d2e08 Added includes to batcher 2018-10-02 09:37:25 +02:00
deajan 13286c2720 [WIP] Merge simplifications 2018-10-02 09:35:48 +02:00
deajan a734dadfde Don't dev at night kids... 2018-10-02 09:24:15 +02:00
deajan c694580ae5 Yet another typo fix 2018-10-02 09:22:41 +02:00
deajan 4f3e6a11d2 Fixed typo 2018-10-02 09:17:59 +02:00
deajan f028f3b6d2 Added preprocessing to batch runner 2018-10-02 09:07:19 +02:00
deajan 2e6e17962c Removed space 2018-10-01 21:04:41 +02:00
deajan 52cf42a53c Add TSTAMP and SCRIPT_PID variables 2018-10-01 21:03:00 +02:00
deajan 5bc77dfe76 Add PoorMansRandomGenerator subset 2018-10-01 21:02:47 +02:00
deajan 1869b1e82f Added Trapquit to trigger CleanUp 2018-10-01 20:49:53 +02:00
deajan 3532b50c38 Added CleanUp subset 2018-10-01 20:46:55 +02:00
deajan d0b40257fa Added cleanup function to installer 2018-10-01 20:46:21 +02:00
deajan 59b7562a3e Fixed Logger missing RUN_DIR 2018-10-01 20:43:27 +02:00
deajan c99a1293c7 Debug conflictLog in travis 2018-10-01 20:28:46 +02:00
deajan eb609f7faa Some release details 2018-10-01 20:13:58 +02:00
deajan 7e678b6480 Debug output for travis conflictDetect tests 2018-10-01 20:01:26 +02:00
deajan b4cd0834cd Fixed shellcheck SC2027 in RsyncPatterns 2018-10-01 14:13:05 +02:00
deajan 55534e0669 Fixed shellcheck SC2053 in Vercomp 2018-10-01 14:10:16 +02:00
deajan 2eba91a58f Removed unused variables 2018-10-01 14:09:20 +02:00
deajan 01864e4980 Rebuilt targets 2018-10-01 14:03:09 +02:00
deajan 87cdc8eb98 Removed extra output from PoorMansRandomGenerator 2018-10-01 14:02:44 +02:00
deajan 740d5277cc Rebuilt targets 2018-10-01 11:31:22 +02:00
deajan a230d32042 Improve PoorMansRandomGenerator function 2018-10-01 11:27:01 +02:00
deajan dde31090fe Improved inotifywait call 2018-10-01 10:49:35 +02:00
deajan 88597d6a7a Initial target-helper mode working 2018-10-01 10:27:01 +02:00
deajan 6bce2e1755 [WIP] Less restrictive preflight checks in target-helper mode 2018-10-01 10:08:22 +02:00
deajan fe808ca909 [WIP] target_helper switch should not be a half bool half char 2018-10-01 10:01:00 +02:00
deajan 90a09c422b [WIP] Use same variable names in target-helper mode 2018-10-01 09:57:27 +02:00
deajan 47bb01b0dc [WIP] Pass initiator ssh uri on target-helper mode 2018-10-01 09:54:24 +02:00
deajan f50048180a Rebuilt targets 2018-10-01 07:27:20 +02:00
deajan 5945988e96 Fix wrong log message on MacOS 2018-10-01 07:26:56 +02:00
deajan 07775d7390 [WIP] osync-target-helper mode 2018-09-30 21:24:09 +02:00
deajan af7542d8f5 [WIP] target helpder service in osync 2018-09-30 16:08:12 +02:00
deajan b44c0c13ad Rebuilt targets 2018-09-30 14:50:51 +02:00
deajan d727bc353c Fixed rsync args built logic 2018-09-30 14:50:00 +02:00
deajan 3af0bc7a11 Rebuilt targets 2018-09-30 14:07:09 +02:00
deajan f1e40d54e4 Fixed typo 2018-09-30 14:06:24 +02:00
deajan 76f9f31e6d Moved RSYNC_ARGS to RSYNC_DEFAULT_ARGS 2018-09-30 13:57:57 +02:00
deajan 50496070f6 Merge branch 'master' of https://github.com/deajan/osync 2018-08-08 11:45:08 +02:00
deajan 1eec242cb0 Rebuilt targets 2018-08-08 11:31:58 +02:00
deajan 4cf697cd28 Bump osync version 2018-08-08 11:31:11 +02:00
deajan 23a9f357fe Bump ofunctions version 2018-08-08 11:30:45 +02:00
Orsiris de Jong 7c11240034
Change logger date output to be language agnostic 2018-07-14 15:37:14 +02:00
deajan 6222fd6872 Fixed variable leak 2018-07-09 15:01:45 +02:00
deajan cabd90c570 Fixed error log color not working in busybox #151 2018-07-09 15:00:38 +02:00
deajan 3f46c69c6d Removed redundant partial exclude dir from daemon 2018-07-08 13:19:30 +02:00
deajan 24599c3057 Fix for #119 2018-07-08 13:18:26 +02:00
deajan fa64c49244 Added EscapeDoubleQuotes function 2018-07-03 17:29:51 +02:00
deajan cf609998aa Updated shunit test framework 2018-07-02 23:25:49 +02:00
deajan 82e60bdffe Tidyup 2018-07-02 22:40:55 +02:00
deajan 83321db4ea WIP on conflict detection 2018-07-02 22:40:23 +02:00
deajan 76ed396602 More comment fixes 2018-07-02 22:21:36 +02:00
deajan f3215c0474 Quick typo fix 2018-07-02 22:17:17 +02:00
deajan 7cb987a32b More email checks 2018-07-02 22:09:28 +02:00
deajan f79acad239 Fixed conflictLsit output and typos 2018-07-02 22:09:18 +02:00
deajan 548c766920 Fixed conflict list initialization 2018-07-02 18:19:47 +02:00
deajan 9b3af0596e Comment tidyup 2018-07-02 17:29:50 +02:00
deajan b45e50584f Comment tidyup 2018-07-02 17:29:18 +02:00
deajan 1ea4584027 Fix typo 2018-07-02 15:46:45 +02:00
deajan 61f7ebe156 WIP: no conflictDetection tests while working on it 2018-07-02 15:44:27 +02:00
deajan 41144f5705 Fixed fakeroot for ssh_filter 2018-07-02 15:41:30 +02:00
deajan 5438941c88 Help..travis is killing me 2018-07-02 15:37:35 +02:00
deajan 888309f420 Well... change FAKEROOT from /tmp to /home 2018-07-02 15:34:53 +02:00
deajan 704d3d20a7 Travis... travis...travis... 2018-07-02 15:33:49 +02:00
deajan 503e325e14 Comment reorganization 2018-07-02 15:32:48 +02:00
deajan 182e3921d5 Why do you do this travis ? 2018-07-02 15:23:44 +02:00
deajan e094e04038 Travis sudo to create a tmp file... 2018-07-02 15:15:39 +02:00
deajan a2a6d843b9 More travis tests 2018-07-02 15:12:02 +02:00
deajan 7ddd13f122 Trying various travis fixes 2018-07-02 14:44:16 +02:00
deajan f0f3cd64b1 Added email encoding comment 2018-07-02 10:42:32 +02:00
deajan 9cac01d9fd Unexpanded and removed work comments 2018-07-02 10:40:10 +02:00
deajan c04e0fa21a Some comment love 2018-07-02 10:20:34 +02:00
deajan 9e869e2bc4 Fix travis won't allow file creating in /tmp/osync_test_install 2018-07-02 10:12:16 +02:00
deajan 948a2b2f87 Log messages improvements for travis 2018-07-02 10:07:48 +02:00
deajan c3b468d932 Travis related test 2018-07-02 10:00:38 +02:00
deajan 2f5e21caea Fixed typo 2018-07-02 09:58:25 +02:00
deajan 0a8811cfb9 Temporarily disabled conflictList test 2018-07-01 10:55:07 +02:00
deajan 4d322f7e6b WIP: initialization should take create conflict list possibility 2018-07-01 10:54:17 +02:00
deajan 9b4914c49e cmdline arg improvements 2018-07-01 10:46:16 +02:00
deajan 21bc4e1ee7 WIP: conflict detection and fakeroot install 2018-06-30 19:46:11 +02:00
deajan 3d6eaef447 Bumped version to 1.3-dev 2018-06-30 19:40:24 +02:00
deajan 381313dc41 Fixed typo 2018-06-29 22:11:33 +02:00
deajan b3cccc373a Quick OS detection fix 2018-06-26 09:56:54 +02:00
deajan 42ed3b156a Rebuilt targets 2018-06-26 00:23:01 +02:00
deajan de57e37217 Added OpenRC support 2018-06-26 00:21:00 +02:00
deajan bf54ce8693 Finished WIP on --summary for deletions 2018-06-25 23:59:06 +02:00
deajan 7621f3ec25 Implemented --initialize 2018-06-25 23:55:13 +02:00
deajan ad22361ee5 Updated os detection 2018-06-25 15:10:11 +02:00
deajan 494fcda098 Fixed BASHVERBOSE variable 2018-06-25 14:49:15 +02:00
deajan bd2e5a16c6 Replaced QuickLogger with Logger for #148 2018-06-25 14:12:05 +02:00
deajan 844cf56307 Replaced QuickLogger with Logger 2018-06-25 14:11:46 +02:00
deajan 8dfe59220a Removed quicklogger function 2018-06-25 14:11:29 +02:00
deajan c39544d79c Removed finished working comments 2018-06-25 11:18:53 +02:00
deajan 0ccc737631 Conflict log line only appears if used 2018-06-25 11:16:57 +02:00
deajan d9f749e28a Less verbose ExecTasks logging 2018-06-24 19:10:35 +02:00
deajan 1ed49b7d41 Quick note about file updates 2018-06-24 19:10:23 +02:00