nextcloud / desktop

đź’» Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
3.01k stars 793 forks source link

Headless client as a daemon #4192

Open narcisgarcia opened 2 years ago

narcisgarcia commented 2 years ago

There are more scenacios where it's needed but this is mine: I have a LAN with a CLI-only server and multiple Desktop computers. Client computers have a sshfs mounted point to a common directory on server (this is SFTP/SSH). All in sync and it just works as a shared folder.

I also use a notebook to connect to that shared folder from Internet, but Internet connection sometimes is poor and I can't wait all the time for folder refreshes and files load/save in sync. Solution seems to be Nextcloud (server at files server to sync with a real folder, and desktop client at roaming notebook).

I'm looking to nextcloud-desktop-cmd (to replicate in server as a bridge between real folder and Nextcloud server storage) and it does not satisfy all my needs because it should:

Luticus commented 1 year ago

This would be amazing for several reasons!

1) you could end your user sessions and go to a tty but still get sync to happen.

2) most importantly and specifically my use case, steam deck integration! With a headless back end that can run independent of the GUI you could hop on desktop mode and configure the desktop client, but then switch to gamescope and play a game without losing sync. I actually tend to use my Nextcloud to sync saves for non-steam games across all my systems, so having this would be amazing as I wouldn't have to boot into desktop mode to do a sync!

marbx commented 1 year ago

To add another idea:

Such a NextCloud client-controlled backup could reflect the moving of files and folder, or their renaming, without duplicating content.

Jamie- commented 1 year ago

I have also been looking for a solution to this. I discovered this request has actually been around since at least 2014! this bug was raised in the Owncloud client repo June '14 https://github.com/owncloud/client/issues/2002

Almost 10 years later I don't think we're any closer ;P

NL-TCH commented 1 year ago

this would also be amazing for the steamdeck! you can run nextcloud as a systemd service, but everytime nextcloud starts you need to login again :(

Nebucatnetzer commented 10 months ago

Another use case is editing notes via SSH. I store my notes in Nextcloud and use Emacs to edit them. My management server (a simple Pi4 which runs 24/7) could easily have my notes as well so that I could access and edit them from everywhere. I tried rclone but it wasn’t robust enough so for the moment I use a notebook which is permanently logged in. If I wouldn’t be using an iPad I would probably use Syncthing until Nextcloud creates a headless client.