knireis

Run Resiliosync as user on headless server

Recommended Posts

I have read many threads and spent countless hours, but I never got Resiliosync to work properly as a specified on a headless server. This would make life easier because without this there are some permission issues.

So i decided to have a look around and found Syncthing. They have the option to start syncthing with systemd as a specified user. By using this syncthing@.service systemd file

[Unit]
  Description=Syncthing - Open Source Continuous File Synchronization for %I
  Documentation=man:syncthing(1)
  After=network.target
  Wants=syncthing-inotify@.service
   
  [Service]
  User=%i
  ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0
  Restart=on-failure
  SuccessExitStatus=3 4
  RestartForceExitStatus=3 4
   
  [Install]
 

WantedBy=multi-user.target

 

enable with:

systemctl enable syncthing@myuser.service
systemctl start syncthing@myuser.service

Within 10 minutes I was up and running....................

Now i do like Resiliosync and i do own a pro license so i wonder can i achive this with Resilio?

Share this post


Link to post
Share on other sites
On 9/27/2017 at 6:20 AM, knireis said:

I have read many threads and spent countless hours, but I never got Resiliosync to work properly as a specified on a headless server. 

 

It can be done with the instructions linked below.

On 10/19/2017 at 8:52 AM, Gane O'dwyer said:

Please follow steps from this instruction.

 

I used the "Installing Sync Package On Linux" article to install Sync on a Raspberry Pi 3 without an error. Reminder: add firewall rules to permit traffic.

Share this post


Link to post
Share on other sites

Agree with @dualcells, just follow that article and it works. Remember to stop the service prior to anything with sudo systemctl stop / disable resilio-sync.. And after modifying the config, you re-enable it without sudoing, and adding the option --user. Just read the article carefully as there are similar configs on different places aswell as risk for typos.

 

But it works as described 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.