abraunegg
12947d160f
Fix unhandled monitor initialisation exception (Issue #704 ) ( #705 )
...
* Catch MonitorException when initialisation failure occurs, print error and exit ... cant enter monitor loop if we cant initialise correctly.
* Cleanup and add documentation update
2019-10-30 17:46:02 +11:00
abraunegg
9b3179540f
Revert "Fix unhandled monitor initialisation exception"
...
This reverts commit e1be2b1e55
.
2019-10-30 06:33:11 +11:00
abraunegg
e1be2b1e55
Fix unhandled monitor initialisation exception
...
* Catch MonitorException when initialisation failure occurs, print error and exit ... cant enter monitor loop if we cant initialise correctly.
2019-10-30 06:32:17 +11:00
abraunegg
585b35724f
Reduce change scan impact of fix for #658 ( #691 )
...
* If there are delta changes (meaning something changed on OneDrive) process the changes that have been presented
2019-10-23 05:29:11 +11:00
abraunegg
6a8d575941
Modify 'Processing X changes' output to be more reflective of actual activity (Issue #679 ) ( #680 )
...
* When using 'sync_list' do not output that we are processing 'changes' as this is misleading.
* When using sync_list perform a full scan only the first time when using --synchronize & --monitor to avoid double processing of all OneDrive items each and every time
* When using sync_list and --monitor only perform a full object scan when we are also configured to perform a full scan
2019-10-09 12:02:17 +11:00
abraunegg
e32b8b3c7f
Move logging of 'initialisation' to actually when the attempt to initialise is performed ( #656 )
...
* Move logging of 'initialisation' to actually when the attempt to initialise is performed
2019-09-11 20:26:21 +10:00
abraunegg
42d8c454e2
Fix downloading of files from OneDrive Personal Shared Folders (Issue #635 ) ( #637 )
...
* Fix downloading of files from OneDrive Personal Shared Folders when the OneDrive API responds with unexpected additional path data
2019-09-09 12:30:59 +10:00
abraunegg
ad0daf2df5
Detect the need for --resync when config changes ( #617 )
...
* Detect the need for --resync when config changes either via config file or cli override
2019-08-24 17:18:58 +10:00
abraunegg
4e97f8810d
Implement --get-file-link ( #612 )
...
* Implement --get-file-link which will return the weburl of a file which has been synced to OneDrive
2019-08-02 18:43:31 +10:00
abraunegg
100e644ae0
Catch error when creating sync dir fails ( #608 )
...
* Catch error when creating the sync dir fails - we cant run if this is not created or present
2019-07-31 07:20:26 +10:00
Matthew Fallon
f39621c2da
Change unauthorized-api exit code to 3 (Issue #567 ) ( #572 )
...
* Changes unauthorized-api exit code to 3
* Systemd will not restart on exit code 3
2019-07-06 08:01:04 +10:00
abraunegg
d939d38c4f
Implement HTTP/2 downgrade by default ( #549 )
...
* Implement HTTP/2 downgrade by default to increase application stability when using curl >= 7.62
2019-06-21 01:11:29 +10:00
abraunegg
bac9ab41ae
Enhance error message for curl CA SSL issue (Issue #507 ) ( #508 )
...
* Enhance error message when unable to connect to Microsoft OneDrive service when the CA SSL certificate has issues
2019-05-24 19:17:08 +10:00
abraunegg
caec1cb8cb
Implement --sync-root-files when using a sync_list file (Issue #491 ) ( #492 )
...
* Implement --sync-root-files to sync all files in the OneDrive root when using a sync_list file that would normally exclude these files from being synced
2019-05-09 21:18:49 +10:00
abraunegg
fbad4b4835
Fix 'Local files not deleted' when using bad 'skip_file' entry ( #480 )
...
* Add a check for bad 'skip_file' entry that prevents incorrect searching of local changes (mainly deletes) from being synced
2019-04-25 11:00:23 +10:00
abraunegg
25d2f7284f
Update 'min_notif_changes' to 'min_notify_changes' ( #467 )
...
* Update 'min_notif_changes' to 'min_notify_changes'
2019-04-15 06:28:32 +10:00
Norbert Preining
ea22d8fef5
config options for command line switches ( #449 )
...
* config options for command line switches to allow for better config handling in docker containers
2019-04-11 12:26:20 +10:00
abraunegg
ea2e4a98bf
Add --upload-only check for sharepoint fix (Issue #452 ) ( #453 )
...
* Add a check for --upload-only use when trying to work around https://github.com/OneDrive/onedrive-api-docs/issues/935
* Update logging and print a warning message that the files are now technically different due to sharepoint bug and using --upload-only
2019-04-06 12:44:51 +11:00
abraunegg
6a6b8f128f
Issue #432 and #441 combined ( #447 )
...
* Re-add original #432 and #441 fixes to master
2019-04-02 05:21:02 +11:00
abraunegg
abb82868e4
Roll back to v2.3.1 ( #446 )
...
* Roll back to v2.3.1 after bad re-base merge with PR #389
2019-04-02 04:51:25 +11:00
abraunegg
4444b9cd8a
Reduce scanning of local filesystem needlessly every sync in monitor mode ( #433 )
...
* Reduce scanning the entire local system in monitor mode for local changes
* Add 'monitor_fullscan_frequency' to set the frequency of performing a full disk scan when in monitor mode
2019-04-02 03:58:56 +11:00
Norbert Preining
b7cc540c2c
fixes to the merge routine
2019-03-25 10:25:10 +09:00
Norbert Preining
a433b44b56
Merge branch 'master' into norbert/config-options
2019-03-25 09:41:27 +09:00
abraunegg
002f9b7aec
Prevent use of --synchronize & --monitor together ( #431 )
...
* Prevent use of --synchronize & --monitor together
2019-03-23 10:20:27 +11:00
Norbert Preining
3aff2e8251
move verbose check to first getopt to make it available early on
2019-03-17 13:10:41 +09:00
Norbert Preining
ab918dd82d
config directory management fixes
2019-03-17 12:41:26 +09:00
Norbert Preining
362bf35688
Merge branch 'master' into norbert/config-options
2019-03-17 12:25:27 +09:00
abraunegg
99c0267c7a
Implement 'skip_dir' config option (Issue #123 ) ( #388 )
...
* Implement config option 'skip_dir'
2019-03-15 06:55:05 +11:00
abraunegg
98624267c5
Implement --dry-run ( #337 )
...
* Implement new feature --dry-run
2019-03-11 17:57:47 +11:00
abraunegg
ba834368ca
Implement --check-for-nosync to ignore folder when special file present (Issue #163 ) ( #390 )
...
* Implement a capability to ignore a folder when a special file (.nosync) is present
2019-03-03 05:58:36 +11:00
Norbert Preining
e5b500a041
remove unnecessary code, cleanup
2019-02-27 08:57:04 +09:00
Norbert Preining
388a3bb102
Merge branch 'master' into norbert/config-options
2019-02-27 08:51:28 +09:00
Norbert Preining
09f328e63f
configurable logging intervals in monitor mode (Issue: #378 ) ( #391 )
...
* Configurable interval of logging in monitor mode (Issue: #378 )
2019-02-27 07:21:23 +11:00
Norbert Preining
b668ecef71
Create new upload session on reinit (Issue: #379 ) ( #392 )
...
* By moving the UploadSession creation from the constructor to the init function we guarantee that a re-initialization also starts a new UploadSession.
2019-02-27 06:49:23 +11:00
Norbert Preining
d49a598f4b
clean up, move help function
2019-02-24 16:33:10 +09:00
Norbert Preining
a71b9bf789
Merge branch 'master' into norbert/config-options
2019-02-24 16:27:53 +09:00
abraunegg
7a47df7a38
Implement --skip-dot-files ( #386 )
...
* Implement new CLI option --skip-dot-files to skip .files and .folders if option is used
2019-02-24 17:19:45 +11:00
Norbert Preining
f2f272a8f8
move more parts of the getopt calls into config module
2019-02-22 22:00:57 +09:00
Norbert Preining
a635cab0ad
config options: working version
2019-02-22 16:15:10 +09:00
Norbert Preining
25b09775ab
more playing around
2019-02-22 10:41:07 +09:00
Norbert Preining
7c9ea56293
some playground
2019-02-22 10:39:16 +09:00
Norbert Preining
18611c833f
initial work on various config options for cmd line options
2019-02-22 10:39:16 +09:00
Norbert Preining
0d3b891177
don't annoy with notifs when offline and cannot act on changes ( #385 )
...
* Don't annoy with notifs when offline and cannot act on changes
2019-02-21 19:51:15 +11:00
abraunegg
51615bff0b
Rework PR #373 to reduce needless logging in monitor mode ( #376 )
...
* Rework PR #373 to reduce needless logging in monitor mode
2019-02-15 07:03:15 +11:00
Norbert Preining
1c6fd5df39
notification on incoming changes ( #355 )
...
* When notifications are enabled, display the number of OneDrive changes to process if any are found
* Add 'config' option 'min_notif_changes' for minimum number of changes to notify on, default = 5
* Update readme, manual page for new option
2019-01-29 04:54:03 +11:00
abraunegg
1fa7e5f20c
Add extra debugging & http protocol downgrade (Issue #314 ) ( #327 )
...
* Add --force-http-1.1 flag to downgrade any HTTP/2 curl operations to HTTP 1.1 protocol
* Explicitly set all bool items to false at initialisation
* Update --display-config to display sync_list if configured
* Add debug handling to display when sync_list is loaded
* Add debug handling to output the handling of OneDrive changes
2019-01-06 05:43:44 +11:00
Norbert Preining
b9890ae2e5
better help output formatting (Issue #298 )
2018-12-28 18:01:50 +09:00
Norbert Preining
fcf1ef2e1f
signal handling and database shutdown ( #315 )
...
Add a signal handler and shutdown database connection on SIGINT and SIGTERM
to make sure that .waf files are properly incorportated into the sqlite database.
2018-12-28 11:19:20 +09:00
abraunegg
2553366a89
Implement Feature Request: Add status command or switch (Issue #112 ) ( #307 )
...
* Implement Feature Request: Add status command or switch
2018-12-28 12:26:03 +11:00
Norbert Preining
2ec6aa3df6
make sure sqlite checkpointing works by properly finalizing statements ( #310 )
...
If an sqlite statement is prepared and reused by using reset again and again, the connection
keeps a lock on the database, and checkpointing cannot ensure that transaction from the
wal file are carried over into the main database.
By preparing the statement every time it is used, the destructor calls finalize and thus
the lock is released.
Possible impacts during high frequency changes via monitor mode etc might arise.
2018-12-26 16:11:06 +09:00