2
0
mirror of https://github.com/deajan/osync synced 2024-11-15 12:12:56 +00:00
Commit Graph

386 Commits

Author SHA1 Message Date
deajan
745688d982 Improved timed execution of sync function 2016-11-29 20:28:00 +01:00
deajan
8500bfa5d9 Work on WaitForTaskCompletion ongoing 2016-11-25 22:15:03 +01:00
deajan
0baed43267 Updated osync with new WaitForTaskCompletion syntax 2016-11-24 09:40:55 +01:00
deajan
f45911a548 Fixed summary does reset logger prefix 2016-11-22 19:08:05 +01:00
deajan
da302b0f3a inotifywait timeout emulation only needed on mac 2016-11-22 17:18:35 +01:00
deajan
85466e0ab0 Added MAX_WAIT support for MacOS daemon mode 2016-11-21 19:18:22 +01:00
deajan
d55ecf7781 Added QaD daemon mode for Mac 2016-11-21 17:02:05 +01:00
deajan
2b8fe18217 Disable ACL and XATTR preserve by default on Mac 2016-11-21 15:13:15 +01:00
deajan
6987a7f0f3 Better check if remote deletion file is present 2016-11-21 13:21:26 +01:00
deajan
5d7e54c743 Remote deletion log is always ERROR level 2016-11-21 11:34:54 +01:00
deajan
ec95b8683c Added missing log from remote deletion 2016-11-21 10:55:35 +01:00
deajan
8190bef067 Fix for failed deletion repropagation in BSD 2016-11-20 19:25:19 +01:00
deajan
56dabb97c1 Fixed bypassing some taks for android 2016-11-19 12:54:24 +01:00
deajan
cc16c29c2c Disable PRESERVE ACL & ATTR by default for compat reasons 2016-11-19 12:49:19 +01:00
deajan
630f26f8d2 Corrected variable # of arguments for _WriteLockFiles 2016-11-19 12:47:17 +01:00
deajan
8ba36de138 Fixing issues between android and centos 5 2016-11-19 12:37:26 +01:00
deajan
d89980e1bd Fixed _CheckDiskSpaceRemote compat on CentOS 5 2016-11-18 12:53:07 +01:00
deajan
f6682dabf6 Fixed CheckDiskSpace compat on CentOS 5 2016-11-18 12:49:48 +01:00
deajan
28a9c908d5 Moved cleanup function according to new ofunctions 2016-11-17 21:04:42 +01:00
deajan
5e1452a92f Minor logger changes 2016-11-17 20:01:12 +01:00
deajan
853f2692dd Some work on Logger function 2016-11-17 20:00:23 +01:00
deajan
0dd472f2c2 Some semantic updates for locking functions 2016-11-17 13:29:34 +01:00
deajan
c4302a46ef Fixed locking checks 2016-11-17 12:13:56 +01:00
deajan
ae20963871 Fixed skip deletions from config file not handled properly 2016-11-16 15:47:42 +01:00
deajan
8884d77be0 Added default separator char in quicksync mode 2016-11-15 22:32:33 +01:00
deajan
317791da5a Fixed failed delete rerun & fixed logger flags in subprocesses 2016-11-15 21:27:32 +01:00
deajan
02e26538c7 Added ACL/Xattr default values for quicksync 2016-11-15 19:25:22 +01:00
deajan
caad06379d Fixed wrong number of arguments for _SummaryFromFile checks 2016-11-15 19:21:24 +01:00
deajan
fe0492d052 Fixed backups gone to the wrong directory 2016-11-15 13:49:00 +01:00
deajan
b68162fd8e More accurate syncattr skip check 2016-11-15 13:25:35 +01:00
deajan
229abbf9c1 Removed unnecessary local variables 2016-11-15 13:12:30 +01:00
deajan
e4d940c5c8 Cosmetic change 2016-11-15 13:11:59 +01:00
deajan
ce7c712329 Finished work on summary function 2016-11-15 13:10:47 +01:00
deajan
e4188b0f4c Minor fixes 2016-11-14 22:17:02 +01:00
deajan
111d3569a7 WIP on summary 2016-11-14 21:14:10 +01:00
deajan
63c64c5d5e Added --summary and --no-prefix arguments 2016-11-14 19:17:30 +01:00
deajan
8ccad34d01 Fixed option name 2016-11-14 17:20:26 +01:00
deajan
10f5fa9c0f Added --errors-only switch 2016-11-14 17:11:50 +01:00
deajan
f4a59e8897 Fixed typo preventing remote ACL sync 2016-11-13 20:12:09 +01:00
deajan
4869e3e89a Fixed checking remote pings regarless of mode 2016-11-13 15:59:12 +01:00
deajan
6f7a87b2de Fixed bogus value shown with preflight checks 2016-11-13 15:53:16 +01:00
deajan
afff4eff67 Updated changelog and readme.md 2016-11-13 14:46:59 +01:00
deajan
6321951bd2 Fixed typo 2016-11-10 16:23:43 +01:00
deajan
a640726d94 More logging fixes 2016-11-10 16:15:29 +01:00
deajan
06d2171a31 Code compliance 2016-10-23 13:28:28 +02:00
deajan
80a5bb0102 More portable grep -E treeList 2016-10-23 11:04:24 +02:00
deajan
6fa212bbca Added dirty workaround for human readable df output in busybox 2016-10-23 10:35:55 +02:00
deajan
a450cf39d0 busybox working now 2016-10-23 09:46:20 +02:00
deajan
101cb26549 Cosmetic fixes 2016-10-22 20:59:50 +02:00
deajan
620484a6d8 More busybox love again 2016-10-22 20:56:14 +02:00
deajan
d71540d609 More busybox love 2016-10-22 20:47:10 +02:00
deajan
ff16854b88 Fixed introduced bug with IsNumericExpand 2016-10-21 21:46:59 +02:00
deajan
67be5560af Removed SC2002 warning 2016-10-21 18:25:53 +02:00
deajan
beea979440 Another check for log writing 2016-10-21 18:23:45 +02:00
deajan
1366b0c10c Prefered C style boolean values 2016-10-21 15:29:49 +02:00
deajan
9c212c1bd1 Added SKIP_DELETION support 2016-10-21 12:38:03 +02:00
deajan
d68e4d1e1b Prevent locking race conditions 2016-10-19 13:30:08 +02:00
deajan
5e52e395ef Added ssh password test 2016-10-19 12:44:52 +02:00
deajan
408eb170c4 Added ssh password file support 2016-10-19 12:28:11 +02:00
deajan
a57d4ab98a Fixed deletion detection when bad symlinks present 2016-10-17 09:56:40 +02:00
deajan
c2959fb98b Removed SC2086 from __CheckArguments call 2016-10-16 22:08:16 +02:00
deajan
b63e4da847 Fixed deletion propagation after last code simplification 2016-10-16 22:00:31 +02:00
deajan
a37bb85e65 Simplified function calls due to code compliance 2016-10-16 14:25:29 +02:00
deajan
e77d3be37f Simplified deleted_list function 2016-10-16 12:33:53 +02:00
deajan
130b0ed113 Added symlink delete and broken symlink detection support 2016-10-16 12:12:59 +02:00
deajan
7505832914 Fixed semantic 2016-09-16 17:18:48 +02:00
deajan
951f6b1996 Allow default inclusion / exclusions for quicksync 2016-09-16 10:11:59 +02:00
deajan
6ac9e6f235 Fixing typo renaming initiator type 2016-09-16 09:48:58 +02:00
deajan
b94dd28a6c Rebuilt targets 2016-09-02 21:43:14 +02:00
deajan
9dd21ae3cb Moved email alert after last log message 2016-08-30 12:28:26 +02:00
deajan
90d16862d2 Rendered associative like arrays bash 3 compatible 2016-08-30 12:19:12 +02:00
deajan
e552a2d9bc Bumped version to v1.2-beta 2016-08-30 11:54:00 +02:00
deajan
9804334821 Removed finished working comments 2016-08-30 11:36:29 +02:00
deajan
2db1046fee Fixed initiator and target arrays aren't global 2016-08-30 11:29:11 +02:00
deajan
d48e3c4f26 Made replica array indexes more clear 2016-08-30 11:01:53 +02:00
deajan
bd0c36071a Fixed sync_update steps 2016-08-29 21:59:40 +02:00
deajan
4be3823b27 Various minor fixes 2016-08-29 21:54:51 +02:00
deajan
b77e28b5d6 Added some work comments 2016-08-29 21:30:36 +02:00
deajan
b2b1b0ba18 Removed finished todo 2016-08-29 21:09:03 +02:00
deajan
aabb67d4b6 Improved soft deletion messages 2016-08-29 21:05:46 +02:00
deajan
fe8b254b01 Fixed 1 instead of true 2016-08-29 20:47:21 +02:00
deajan
854accdcd2 Fixed remote deletion logs 2016-08-29 20:40:29 +02:00
deajan
a17872282c Fixed typo 2016-08-29 18:59:53 +02:00
deajan
109e67e5b2 Simplified usage of verbose 2016-08-29 18:08:30 +02:00
deajan
2764930dc4 Replaced 0/1 with bolean logic 2016-08-29 17:37:48 +02:00
deajan
472e5e2251 Replaced 0,1 with false,true 2016-08-29 13:54:24 +02:00
deajan
e18bacedfd Fixed deletion propagation 2016-08-29 13:16:07 +02:00
deajan
edfb092ff7 Removed elder comments 2016-08-28 21:17:13 +02:00
deajan
0aa2d49678 Another lock/unlock fix 2016-08-28 21:07:40 +02:00
deajan
52b31f7bca Fixed locking / unlocking mechanism 2016-08-28 18:40:39 +02:00
deajan
7190ffeae5 Indented function chronology description 2016-08-28 18:26:12 +02:00
deajan
7e51ad5497 WIP: fixing unlocking depending on lock success 2016-08-28 18:22:37 +02:00
deajan
c5f6874ad8 Added some preflight checks 2016-08-28 17:58:03 +02:00
deajan
e1bcaea6a3 Updated serials 2016-08-22 09:07:58 +02:00
deajan
ff6a0b95fc Fixed RunAfterHook not executed on normal runs 2016-08-22 08:32:24 +02:00
deajan
1db8adfa98 Reenabled path comparaison 2016-08-20 10:43:22 +02:00
deajan
c1e4f9fa51 Fixed typo 2016-08-19 10:55:02 +02:00
deajan
a753e988c3 Improved resume to bypass succeed substeps 2016-08-19 10:53:13 +02:00
deajan
a1044687b5 Updated WaitFor functions & comments 2016-08-18 23:28:25 +02:00
deajan
09601664a5 Fixed soft deletion when SUDO_EXEC enabled 2016-08-13 11:55:08 +02:00
deajan
1186ff0de7 Updated comments 2016-08-09 22:24:50 +02:00
deajan
8b19d51042 Parallelized sync functions 2016-08-09 22:14:17 +02:00
deajan
a3145519b7 Skip attr sync if RSYNC_ATTR_ARGS is empty 2016-08-09 13:51:14 +02:00
deajan
0162721513 Added missing fi 2016-08-09 13:48:21 +02:00
deajan
8efb5019c8 Added -r to while statements 2016-08-08 19:05:57 +02:00
deajan
51487be79c Replaced IFS for loops with while 2016-08-08 18:06:03 +02:00
deajan
bf0051c63d Refactored wait functions 2016-08-07 23:54:46 +02:00
deajan
bef9a92526 Rebuilt targets 2016-08-06 13:26:16 +02:00
deajan
4418b28846 Various fixes 2016-08-04 11:52:28 +02:00
deajan
c519639aec more and more parallelisation 2016-08-04 00:52:05 +02:00
deajan
3a6d2b405a Made disk space tests non mandatory 2016-08-04 00:02:20 +02:00
deajan
29c99dae67 Added new _LOGGER variables 2016-08-03 23:58:38 +02:00
deajan
a444d24de8 Better parellelization 2016-08-03 10:02:18 +02:00
deajan
0e5b000679 Fixed soft deletion always enabled remotely 2016-08-02 22:09:19 +02:00
deajan
87ee14ba48 Fix attribute list 2016-08-02 13:24:48 +02:00
deajan
7578d0a047 Various fixes 2016-08-02 12:53:41 +02:00
deajan
2cbe7a2f86 Fixed typo 2016-08-02 11:10:09 +02:00
deajan
2a007b4e83 Ported fixes from v1.1-maint branch 2016-08-02 10:01:48 +02:00
deajan
62676fee40 Misc fixes 2016-08-01 18:04:35 +02:00
deajan
554ca98c1b Removed parallelism from unlock function for now 2016-07-27 17:55:31 +02:00
deajan
3e9bc05d67 More parallism 2016-07-27 14:10:59 +02:00
deajan
4101e11f67 Trying parallelism patch 2016-07-27 13:53:31 +02:00
deajan
166f67bb55 Added lock check before unlocking 2016-07-27 12:04:27 +02:00
deajan
e685da33fa Removed trivial sleep after heredoc 2016-07-27 11:49:57 +02:00
deajan
9262ac8d1c Bumped version for release 2016-07-27 11:42:08 +02:00
deajan
eab13fea4d Fixed wrong log output for attr updates 2016-07-18 10:11:49 +02:00
deajan
d48c11b4d8 Rebuild after #51 merge 2016-07-06 17:22:46 +02:00
Filip Balos
a4452e7382 Fixes two typos. 2016-06-03 14:41:34 -04:00
deajan
f727db8f86 Fixed sed -i for BSD & Mac 2016-05-26 22:11:00 +02:00
deajan
bcd79fc139 Reverted regression introduced with 5cdc840 on BSD/Mac 2016-05-26 11:06:09 +02:00
deajan
bbb44ad01d Bumped version to v1.1-RC1 2016-05-25 20:10:08 +02:00
deajan
0c439052f1 Fixing daemon stops if no internet in remote mode 2016-04-07 18:17:10 +02:00
deajan
aabdb997ec Daemon related changes 2016-04-07 17:59:13 +02:00
deajan
765dfa7150 Added more preflight checksé 2016-04-06 21:06:14 +02:00
deajan
d52b6dd5e6 Added an option to run after exec cmds on error 2016-04-06 20:51:29 +02:00
deajan
d6e543f1d6 Logging begins before remote connections 2016-04-06 20:32:10 +02:00
deajan
335d94367f Fixed dramatic typo for deletion propagation 2016-04-06 20:14:07 +02:00
deajan
8882f17509 Added logging to home directory for userland services 2016-04-06 20:12:32 +02:00
deajan
0d08c42ecd Rendered sync_attr function BSD compatible 2016-04-03 16:06:45 +02:00
deajan
3f204212ee Bugfixing remote sync attr updates 2016-04-03 00:32:15 +02:00
deajan
769e4fc7b0 Improved sync_attr function for UTF8 filenames 2016-04-02 14:47:28 +02:00
deajan
23b2347765 Removed typo file 2016-04-01 21:29:33 +02:00
deajan
757c53ca3a Merge branch 'master' into betterKillChilds
Conflicts:
	dev/debug_osync.sh
	dev/n_osync.sh
	osync.sh
2016-04-01 21:24:53 +02:00
deajan
99532149f0 Fixed some ambiguous redirection in get_ctime_mtime 2016-04-01 00:16:25 +02:00
deajan
c0f0a842a9 Sync attributes didn't honor dry argument 2016-03-31 23:23:23 +02:00
deajan
259b707cce Fixed local in non function remote heredoc 2016-03-31 23:18:06 +02:00
deajan
afaf960c5f Added missing pre-flight checks 2016-03-31 22:50:37 +02:00
deajan
2d2d06278d Bumped osync.sh to stable state 2016-03-29 23:05:32 +02:00
deajan
fb53664877 Added systemd file, installer stats and ssh known host ignore option 2016-03-29 22:55:57 +02:00
deajan
dc0cc3561c Some more typo fixes 2016-03-10 22:16:59 +01:00
deajan
b41c90b87e Fixed typo in variable substition 2016-03-10 19:18:33 +01:00
deajan
7a485bd784 Bug fix for in tree_list error log failing for WaitForCompletion 2016-03-08 23:54:25 +01:00
deajan
d0da1398d2 Fixed rsync option placement 2016-03-01 20:13:48 +01:00
deajan
efd3a4f8b3 Fixed daemon mode exiting when child execution gives warnings 2016-02-21 11:11:28 +01:00
deajan
3626c4d049 Bug fixing last code cleanup 2016-02-19 21:44:52 +01:00
deajan
5cdc840fab Added execution flag SYNC_ATTR=yes 2016-02-19 09:34:43 +01:00
deajan
a81d4eada0 Setting sync_attrs as experimental function 2016-02-19 09:28:57 +01:00
deajan
d7731b6a88 First working sync_attrs push 2016-02-19 01:13:17 +01:00
deajan
f061004f0b sleeping... commiting for sync_attrs too 2016-02-19 00:30:02 +01:00
deajan
8c95802fd7 More work on sync_attrs function 2016-02-19 00:13:22 +01:00
deajan
bb0562d3f0 More typo fixing here 2016-02-18 23:28:57 +01:00
deajan
d8513f545b More sanity fixing 2016-02-18 21:00:23 +01:00
deajan
5b15b19031 Fixed more typos 2016-02-18 20:54:07 +01:00
deajan
4ecddccde7 Environment check bugfix 2016-02-18 16:21:17 +01:00
deajan
5dd6f1d367 Close to sync_attr feature 2016-02-17 23:00:45 +01:00
deajan
48fcda968a Some code cleanup 2016-02-17 13:51:42 +01:00
deajan
5fc500afc9 Preparing sync_attrs function 2016-02-16 22:15:44 +01:00
deajan
47fbcfd817 WIP on attr sync function 2016-02-16 20:52:53 +01:00
deajan
39fef7ba50 Fixed typo 2016-02-08 13:00:57 +01:00
deajan
4a3d18b54f Reverted wrong permission check 2016-02-08 12:51:39 +01:00
deajan
b3969feb4d Fixed wrong permission check with remote deletion 2016-02-08 12:36:40 +01:00
deajan
0c0b86ab60 Fixed using return in non function on remote deletion 2016-02-08 11:41:03 +01:00
deajan
c8637adc38 Fixed rsync pattern functionload when quicksync mode enabled 2016-02-02 10:37:08 +01:00
deajan
cafa1347a4 Fixed quicksync trying to check config file 2016-02-02 10:32:13 +01:00
deajan
c2377fc2a5 Fixed wrong log function call in debug mode 2015-12-21 14:09:17 +01:00
deajan
93793ed7b4 Fixed more typos in cmdline options 2015-12-16 12:05:56 +01:00
deajan
7e0de0e5c0 Fixed more typos :( 2015-12-15 13:40:50 +01:00
deajan
0cc9667d64 Fixed some typos in include exclude functions 2015-11-28 12:57:23 +01:00
deajan
da37a9a4ac Fixed partial dir exclude order 2015-11-28 12:29:13 +01:00
deajan
1e71371c31 Added preflight checks for config file. 2015-11-28 12:03:28 +01:00
deajan
f7d22fc549 Fixed string typo. 2015-11-28 11:43:27 +01:00
deajan
b4159c1b02 Finished work on include / exclude lists 2015-11-28 11:39:10 +01:00
deajan
4398c02f9d Added rsync include patterns 2015-11-27 14:12:44 +01:00
deajan
d32699c492 Fixed function lib path. 2015-11-19 22:39:31 +01:00
deajan
1677f1dd84 Error mismatch update 2015-11-16 10:07:41 +01:00
deajan
7875469a94 Initial upload of function merge 2015-11-13 20:16:20 +01:00