- Install onedrive cli and login – https://github.com/abraunegg/onedrive/blob/master/docs/install.md
- Create systemctl service for only one dir sync for user user1
- The directory should be present in ~/OneDrive
[Unit]
Description=OneDrive Sync Service for alok
After=network-online.target
[Service]
User=user1
ExecStart=/usr/bin/onedrive --monitor --single-directory 'logseq'
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target