Okay, I just installed and tried the "onedrive" application from the "Synaptic Package Manager (SPM)". It is a console terminal application.
As you pointed out, you type in "onedrive" and it responds with a link to copy and paste into your browser to get a verification which it wants pasted back into the terminal (response uri), so I right-clicked that link and chose copy link, open a new browser tab and pasted it, follow the MS Login prompts, then it spawned a blank page for me which I did not know what to do with, but after many attempts, I just copied the spawned blank page's web address (url) into the waiting terminal request and that worked perfectly and automatically started syncing to my existing "OneDrive" folder.
As with most console terminal commands, I typed in "onedrive --help" to see what options are available.
Usage: onedrive [OPTION]...
no option Sync and exit
--confdir Set the directory used to store the configuration files
--logout Logout the current user
-m --monitor Keep monitoring for local and remote changes
--print-token Print the access token, useful for debugging
--resync Forget the last saved state, perform a full sync
--syncdir Set the directory used to sync the files are synced
-v --verbose Print more details, useful for debugging
--version Print the version and exit
-h --help This help information.
First I checked what version of the Linux OneDrive application
Loading config ...
No config file found, using defaults
Initializing the OneDrive API ...
Opening the item database ...
All operations will be performed in: /home/user69/OneDrive
Initializing the Synchronization Engine ...
Applying differences ...
Uploading differences ...
The directory has not changed
Uploading new items ...
I brought up my online OneDrive account in a browser to verify that anything I am doing in that and or on my Linux computer are working together (syncing).
Then on my Linux computer using its file manager, I copied some files to each of my home folder's OneDrive folder and its default subfolders (Documents and Pictures), it did not automatically update the cloud.
I remember noticing that there is a "-m" monitor command flag option, so I ran that. This command leaves the console terminal window open; I think if you add an " &" to the end of the command it will release the console terminal for other tasks.
And then my changes were automatically updated from the cloud and from my Linux computer. I also moved a file from the root folder from the browser's online OneDrive webpage to the Pictures subfolder it was reflected on my Linux system in a little bit, worked very well, nice.
I also noticed the "--print-token" command flag which is good for backing up this programs authorization token.
Code: Select all
onedrive --print-token > onedrive_token.txt
My guess is that If I rebooted (restarted) my computer that this "onedrive -m" syncing monitor would stop and I would have to run the command again or add it to my startup programs. I would recommend adding a delay to this startup command to allow your system time to connect to your internet, maybe 15+ seconds.
FYI: In case you did not know, the superb "pCloud" offers 10gb of free space and an excellent free Linux client (you can pay for more space or encryption), "Mega.nz" offers 50gb of free encrypted space and an excellent free Linux client (you can pay for more space), and Google drive offers 15gb of free space (you can pay for more space) and they do not offer their Linux client, but you can access your account data by setting up your Gmail account(s) through the "online accounts" option in Linux Mint or using a 3rd party application like the excellent paid for "insync" client, "grive2", "overGrive", and other various options.
"Cryptomator" is a free application for encrypting your folders and files to and from your cloud account if the cloud provider's account does not already have encryption and you want that.
CloudCross - free multi-cloud - enables the synchronization of local files and directories across several cloud services.
CloudCross supports GoogleDrive, OneDrive
, Dropbox, YandexDisk, and Mail.Ru clouds.
Linux Mint 19.x CloudCross download link, save the 64-bit deb file and double click it to install it. There are versions for Linux Mint 18.x as well (64-bit and 32-bit)
https://download.opensuse.org/repositor ... _amd64.deb
The Top 5 Google Drive Clients for Linux
https://www.fossmint.com/best-google-dr ... for-linux/
Top 12 Best Google Drive Linux Client Software | UbuntuPIT
https://www.ubuntupit.com/top-12-best-g ... -software/
Cli Google Drive Client Grive2: How To Enable Automatic Synchronization - Linux Uprising Blog
https://www.linuxuprising.com/2018/08/c ... ow-to.html
Hope this helps ...