Sluice
Uploads folders on your computer to OneDrive, one way.
Get it
If you've already added the repository, just run:
sudo apt install sluice
First-time setup (add repository)
curl -fsSL -o /tmp/colaapps-archive-keyring.gpg \
https://colaapps.com/repo/colaapps-archive-keyring.gpg &&
sudo install -D -m 0644 /tmp/colaapps-archive-keyring.gpg \
/etc/apt/keyrings/colaapps-archive-keyring.gpg
sudo tee /etc/apt/sources.list.d/colaapps.list > /dev/null <<'EOF'
deb [signed-by=/etc/apt/keyrings/colaapps-archive-keyring.gpg] https://colaapps.com/repo stable main
EOF
sudo apt update
sudo apt install sluice
The first two commands install the ColaApps signing key, so apt verifies every index it
downloads. Needs curl. Debian and Ubuntu.
Added ColaApps before, with [trusted=yes]? That turns
signature checking off — run the block above again, it overwrites the old line.
About
Sluice 0.1.0
Sluice uploads folders on your computer to your OneDrive, in one direction only. Nothing comes back down, and nothing else in your OneDrive is touched. It runs quietly in the background and keeps each folder's OneDrive copy up to date within seconds of a change.
It was made so an IDE can keep a copy of a project in OneDrive for Microsoft 365 Copilot to read, but it works for any folder.
Install
Linux (x64):
sudo apt install ./sluice_0.1.0-1_amd64.deb
Then open Sluice from your applications menu. It starts its background service and sets it to start at every login.
First run
Everything is done in the Sluice window:
- Connect Sluice to your Microsoft 365 organisation. Once per organisation, someone who can register apps in Microsoft Entra follows the steps shown in the window (a few minutes) and pastes two IDs into it.
- Sign in with your work account, in the browser or with a code you enter on another device.
- Add a folder and choose where it goes in your OneDrive.
The window shows how many files are uploaded, what is waiting, and anything OneDrive refused and why. Closing the window does not stop uploads.
What Sluice will and won't do
- Uploads new and changed files from the folders you add.
- Deletes a file in OneDrive only if Sluice uploaded it and it is gone from the folder. Files someone else put in that OneDrive folder are never touched.
- Never downloads, never lists your OneDrive, never follows shortcuts out of a folder.
- Keeps your sign-in in a file only you can read (Linux).
- If a folder disappears (an unplugged drive, say), it does nothing rather than delete.
Command line
sluice status, sluice login --device, sluice add <folder> <onedrive-folder>,
sluice state <file> and more: sluice help.
What's new in 0.1.0
First release.