abraunegg
14cd47b56f
Implement #699 - Perform skip_dir explicit match only ( #768 )
...
* Implement #699 - Perform skip_dir explicit match only
2020-01-29 16:37:50 +11:00
abraunegg
f2fe718389
Implement #763 - Delete local files after sync ( #767 )
...
* Implement #763 - Delete local files after sync
2020-01-27 08:42:00 +11:00
abraunegg
5c2ad041bd
Implement warning on big deletes to safeguard data on OneDrive ( #621 )
...
* When testing changes to onedrive client configuration, the new configuration might be invalid (see #458 for example) and you remove all your data on OneDrive accidentally. This new feature attempts to protect your data on OneDrive when performing large deletes, so that a large delete is detected and asks for confirmation before actually processing this request. This feature does not impact `--monitor` mode of operation, only standalone mode of operation.
2020-01-03 07:46:58 +11:00
abraunegg
217d72486d
Change synclist override flag to false as default when not using sync_list ( #745 )
...
* Set 'syncListConfiguredOverride' to false by default, only set to true at start if sync_list is true
* Remove logAndNotify as it is excessive for each change bundle to inform the desktop
* Add a log entry when a monitor sync loop with OneDrive starts & completes
2019-12-17 05:32:38 +11:00
abraunegg
db5ceccffb
Check database for excluded sync_list items previously in scope (Issue #723 ) ( #724 )
...
* When using sync_list and files are moved out of sync scope online via OneDrive website, check if the item was previously in-sync in database. if true, flag for local delete.
* Rework fix for #568 so that if a directory is moved / created in sync_list scope, on the 'true-up' sync, any files that were moved with the folder are now downloaded
* Update when sync_list override is done
* Add debugging for each loop for sync_list scan handling
2019-11-21 19:58:34 +11:00
Tudor Brindus
7ba59e0b1d
Fix --monitor when used with --download-only ( #708 )
...
* Fix --monitor when used with --download-only. This fixes the regression introduced in 12947d160f
.
2019-10-31 14:59:44 +11:00
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