-
|
Hello, although the documentation is very good, I don't quite understand how to use OneDrive as a system service. This is my system: Ubuntu 24.04.4 with Gnome 46, Curl 8.18.0, and OneDrive v2.5.10 installed. I want to create a daily backup of a file located in ~/OneDrive at 6 PM and sync it back to OneDrive to upload the backup, even if I'm not logged in. The synchronization should also restart automatically after restarting the computer. Synchronization should run regardless of whether I'm logged in or not. I want the files to have the file permissions for my user account (not root). I also want GUI notifications and Nautilus integration when I log in. How do I need to create the systemd service to achieve this? Do I need to do anything else to get GUI notifications and Nautilus integration? Thanks for your advice. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
|
A couple of clarification questions for you:
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the quick reply. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks — that makes it much clearer. Scheduled backup + sync, even when you’re not logged inYes, you can trigger a sync from your backup script when you’re not logged in, but you must avoid running a second The simplest and most reliable approach is:
To make that work cleanly, have the scheduled job:
Example logic (conceptually):
“Nautilus integration” / left sidebar bookmarkWhat you’re describing is Display Manager Integration (sidebar registration in Nautilus / Dolphin + optional folder icon). Enable this in your config: Important detail: this is applied when the client is running in --monitor mode (desktop session context), and is cleared when the client/service stops. So: run monitor mode when logged in (via OneDriveGUI or your desktop startup mechanism), and you’ll get the Nautilus left-sidebar “special place”. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, and sorry for the late reply, I was off-site. I've reconsidered the backup and decided to do it directly to OneDrive/SharePoint using Power Automate. So I'll be using the OneDrive client just like I did on Windows. Now my main question is: What's the best startup mechanism in Ubuntu 24.04? Ideally, OneDrive client should start when I log in and stop when I log out. I don't need a graphical user interface, but I would like notifications. |
Beta Was this translation helpful? Give feedback.
Correct - the client is running in
--monitormode when using a systemd service.