mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-17 05:06:55 +02:00
parent
b9890ae2e5
commit
f14fbf22a7
18
CHANGELOG.md
18
CHANGELOG.md
|
@ -3,6 +3,24 @@
|
||||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [2.2.4] - 2018-12-28
|
||||||
|
### Fixed
|
||||||
|
- Resolve JSONException when supplying --get-O365-drive-id option with a string containing spaces
|
||||||
|
- Resolve 'sync_dir' not read from 'config' file when run in Docker container
|
||||||
|
- Resolve logic where potentially a 'default' ~/OneDrive sync_dir could be set despite 'config' file configured for an alternate
|
||||||
|
- Make sure sqlite checkpointing works by properly finalizing statements
|
||||||
|
- Update logic handling of --single-directory to prevent inadvertent local data loss
|
||||||
|
- Resolve signal handling and database shutdown on SIGINT and SIGTERM
|
||||||
|
- Update man page
|
||||||
|
- Implement better help output formatting
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Add debug handling for sync_dir operations
|
||||||
|
- Add debug handling for homePath calculation
|
||||||
|
- Add debug handling for configDirBase calculation
|
||||||
|
- Add debug handling if syncDir is created
|
||||||
|
- Implement Feature Request: Add status command or switch
|
||||||
|
|
||||||
## [2.2.3] - 2018-12-20
|
## [2.2.3] - 2018-12-20
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fix syncdir option is ignored
|
- Fix syncdir option is ignored
|
||||||
|
|
117
README.md
117
README.md
|
@ -328,7 +328,7 @@ An example of the log file is below:
|
||||||
```
|
```
|
||||||
|
|
||||||
### Uninstall
|
### Uninstall
|
||||||
```sh
|
```
|
||||||
sudo make uninstall
|
sudo make uninstall
|
||||||
# delete the application state
|
# delete the application state
|
||||||
rm -rf ~/.config/onedrive
|
rm -rf ~/.config/onedrive
|
||||||
|
@ -343,7 +343,7 @@ rm -f ~/.config/onedrive/refresh_token
|
||||||
## Additional Configuration
|
## Additional Configuration
|
||||||
Additional configuration is optional.
|
Additional configuration is optional.
|
||||||
If you want to change the defaults, you can copy and edit the included config file into your `~/.config/onedrive` directory:
|
If you want to change the defaults, you can copy and edit the included config file into your `~/.config/onedrive` directory:
|
||||||
```sh
|
```
|
||||||
mkdir -p ~/.config/onedrive
|
mkdir -p ~/.config/onedrive
|
||||||
cp ./config ~/.config/onedrive/config
|
cp ./config ~/.config/onedrive/config
|
||||||
nano ~/.config/onedrive/config
|
nano ~/.config/onedrive/config
|
||||||
|
@ -422,24 +422,24 @@ tail -f /var/log/onedrive/<username>.onedrive.log
|
||||||
To change what 'user' the client runs under (by default root), manually edit the init.d service file and modify `daemon --user root onedrive_service.sh` for the correct user.
|
To change what 'user' the client runs under (by default root), manually edit the init.d service file and modify `daemon --user root onedrive_service.sh` for the correct user.
|
||||||
|
|
||||||
**systemd - Arch, Ubuntu, Debian, OpenSuSE, Fedora**
|
**systemd - Arch, Ubuntu, Debian, OpenSuSE, Fedora**
|
||||||
```sh
|
```
|
||||||
systemctl --user enable onedrive
|
systemctl --user enable onedrive
|
||||||
systemctl --user start onedrive
|
systemctl --user start onedrive
|
||||||
```
|
```
|
||||||
|
|
||||||
To see the logs run:
|
To see the logs run:
|
||||||
```sh
|
```
|
||||||
journalctl --user-unit onedrive -f
|
journalctl --user-unit onedrive -f
|
||||||
```
|
```
|
||||||
|
|
||||||
**systemd - Red Hat Enterprise Linux, CentOS Linux**
|
**systemd - Red Hat Enterprise Linux, CentOS Linux**
|
||||||
```sh
|
```
|
||||||
systemctl enable onedrive
|
systemctl enable onedrive
|
||||||
systemctl start onedrive
|
systemctl start onedrive
|
||||||
```
|
```
|
||||||
|
|
||||||
To see the logs run:
|
To see the logs run:
|
||||||
```sh
|
```
|
||||||
journalctl onedrive -f
|
journalctl onedrive -f
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -510,39 +510,84 @@ If you encounter any bugs you can report them here on Github. Before filing an i
|
||||||
- ...
|
- ...
|
||||||
|
|
||||||
### All available commands:
|
### All available commands:
|
||||||
|
Output of `onedrive --help`
|
||||||
```
|
```
|
||||||
Usage: onedrive [OPTION]...
|
OneDrive - a client for OneDrive Cloud Services
|
||||||
|
|
||||||
no option No sync and exit
|
Usage:
|
||||||
--check-for-nomount Check for the presence of .nosync in the syncdir root. If found, do not perform sync.
|
onedrive [options] --synchronize
|
||||||
--confdir Set the directory used to store the configuration files
|
Do a one time synchronization
|
||||||
--create-directory Create a directory on OneDrive - no sync will be performed.
|
onedrive [options] --monitor
|
||||||
--destination-directory Destination directory for renamed or move on OneDrive - no sync will be performed.
|
Monitor filesystem and sync regularly
|
||||||
--debug-https Debug OneDrive HTTPS communication.
|
onedrive [options] --display-config
|
||||||
--disable-notifications Do not use desktop notifications in monitor mode.
|
Display the currently used configuration
|
||||||
--display-config Display what options the client will use as currently configured - no sync will be performed.
|
onedrive [options] --display-sync-status
|
||||||
-d --download-only Only download remote changes
|
Query OneDrive service and report on pending changes
|
||||||
--disable-upload-validation Disable upload validation when uploading to OneDrive
|
onedrive -h | --help
|
||||||
--enable-logging Enable client activity to a separate log file
|
Show this help screen
|
||||||
--get-O365-drive-id Query and return the Office 365 Drive ID for a given Office 365 SharePoint Shared Library
|
onedrive --version
|
||||||
--local-first Synchronize from the local directory source first, before downloading changes from OneDrive.
|
Show version
|
||||||
--logout Logout the current user
|
|
||||||
-m --monitor Keep monitoring for local and remote changes
|
Options:
|
||||||
--no-remote-delete Do not delete local file 'deletes' from OneDrive when using --upload-only
|
|
||||||
--print-token Print the access token, useful for debugging
|
--check-for-nomount
|
||||||
--resync Forget the last saved state, perform a full sync
|
Check for the presence of .nosync in the syncdir root. If found, do not perform sync.
|
||||||
--remove-directory Remove a directory on OneDrive - no sync will be performed.
|
--confdir ARG
|
||||||
--single-directory Specify a single local directory within the OneDrive root to sync.
|
Set the directory used to store the configuration files
|
||||||
--skip-symlinks Skip syncing of symlinks
|
--create-directory ARG
|
||||||
--source-directory Source directory to rename or move on OneDrive - no sync will be performed.
|
Create a directory on OneDrive - no sync will be performed.
|
||||||
--syncdir Set the directory used to sync the files that are synced
|
--destination-directory ARG
|
||||||
--synchronize Perform a synchronization
|
Destination directory for renamed or move on OneDrive - no sync will be performed.
|
||||||
--upload-only Only upload to OneDrive, do not sync changes from OneDrive locally
|
--debug-https
|
||||||
-v --verbose Print more details, useful for debugging (repeat for extra debugging)
|
Debug OneDrive HTTPS communication.
|
||||||
--version Print the version and exit
|
--disable-notifications
|
||||||
-h --help This help information.
|
Do not use desktop notifications in monitor mode.
|
||||||
|
--display-config
|
||||||
|
Display what options the client will use as currently configured - no sync will be performed.
|
||||||
|
--display-sync-status
|
||||||
|
Display the sync status of the client - no sync will be performed.
|
||||||
|
-d --download-only
|
||||||
|
Only download remote changes
|
||||||
|
--disable-upload-validation
|
||||||
|
Disable upload validation when uploading to OneDrive
|
||||||
|
--enable-logging
|
||||||
|
Enable client activity to a separate log file
|
||||||
|
--get-O365-drive-id ARG
|
||||||
|
Query and return the Office 365 Drive ID for a given Office 365 SharePoint Shared Library
|
||||||
|
--local-first
|
||||||
|
Synchronize from the local directory source first, before downloading changes from OneDrive.
|
||||||
|
--logout
|
||||||
|
Logout the current user
|
||||||
|
-m --monitor
|
||||||
|
Keep monitoring for local and remote changes
|
||||||
|
--no-remote-delete
|
||||||
|
Do not delete local file 'deletes' from OneDrive when using --upload-only
|
||||||
|
--print-token
|
||||||
|
Print the access token, useful for debugging
|
||||||
|
--resync
|
||||||
|
Forget the last saved state, perform a full sync
|
||||||
|
--remove-directory ARG
|
||||||
|
Remove a directory on OneDrive - no sync will be performed.
|
||||||
|
--single-directory ARG
|
||||||
|
Specify a single local directory within the OneDrive root to sync.
|
||||||
|
--skip-symlinks
|
||||||
|
Skip syncing of symlinks
|
||||||
|
--source-directory ARG
|
||||||
|
Source directory to rename or move on OneDrive - no sync will be performed.
|
||||||
|
--syncdir ARG
|
||||||
|
Specify the local directory used for synchronization to OneDrive
|
||||||
|
--synchronize
|
||||||
|
Perform a synchronization
|
||||||
|
--upload-only
|
||||||
|
Only upload to OneDrive, do not sync changes from OneDrive locally
|
||||||
|
-v+ --verbose
|
||||||
|
Print more details, useful for debugging (repeat for extra debugging)
|
||||||
|
--version
|
||||||
|
Print the version and exit
|
||||||
|
-h --help
|
||||||
|
This help information.
|
||||||
```
|
```
|
||||||
|
|
||||||
### File naming
|
### File naming
|
||||||
The files and directories in the synchronization directory must follow the [Windows naming conventions](https://msdn.microsoft.com/en-us/library/aa365247).
|
The files and directories in the synchronization directory must follow the [Windows naming conventions](https://msdn.microsoft.com/en-us/library/aa365247).
|
||||||
The application will crash for example if you have two files with the same name but different case. This is expected behavior and won't be fixed.
|
The application will attempt to handle instances where you have two files with the same name but different case. Where there is a namespace clash, the file name which clashes will not be synced. This is expected behavior and won't be fixed.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH ONEDRIVE "1" "December 2018" "2.2.3" "User Commands"
|
.TH ONEDRIVE "1" "December 2018" "2.2.4" "User Commands"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
onedrive \- folder synchronization with OneDrive
|
onedrive \- folder synchronization with OneDrive
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
pkgname=onedrive
|
pkgname=onedrive
|
||||||
pkgver=2.2.3
|
pkgver=2.2.4
|
||||||
pkgrel=1 #patch-level (Increment this when patch is applied)
|
pkgrel=1 #patch-level (Increment this when patch is applied)
|
||||||
pkgdesc="A free OneDrive Client for Linux. This is a fork of the https://github.com/skilion/onedrive repository"
|
pkgdesc="A free OneDrive Client for Linux. This is a fork of the https://github.com/skilion/onedrive repository"
|
||||||
license=("unknown")
|
license=("unknown")
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: onedrive
|
Name: onedrive
|
||||||
Version: 2.2.3
|
Version: 2.2.4
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Microsoft OneDrive Client
|
Summary: Microsoft OneDrive Client
|
||||||
Group: System Environment/Network
|
Group: System Environment/Network
|
||||||
|
|
Loading…
Reference in a new issue