syncloud / platform

Run popular services on your device with one click
https://syncloud.org
GNU General Public License v3.0
400 stars 40 forks source link

Syncloud backup of files in nextcloud #392

Closed tfhmd1 closed 5 years ago

tfhmd1 commented 5 years ago

Hi, how can we backup files either to a remote server or removable hard drive? As most synclouds are run with just one hard drive this would give more security should the hard drive fail.

cyberb commented 5 years ago

There are few options here:

  1. You can try Syncthing app wiith two Syncloud devices. It is a device to device sync app. Both devices have to be on the same network otherwise additional port has to be open. As I remember it currently allows to sync only itself files, if that is the case we can fix that.
cyberb commented 5 years ago
  1. We can extend backup feature to include files but as backup is saved on the same file storage it does not really makes sense inless you want to protect against accidental file removals.
cyberb commented 5 years ago
  1. At some point we will come with x86 device which will allow multi disk configuration which should protect against single disk failure.
chegeiser commented 5 years ago

I just tried using Syncthing to sync between my Syncloud machine and another local machine. It works well, but will not let me access Nextcloud files. I think that is because only the 'nextcloud' user has access to read/write files within the Nextcloud data folders. I tried a symlink on the Syncloud machine - but as expected that didn't let Syncthing access the files either.

I was not able to create a folder outside of the Syncthing folder and sync that between the two machines. It seems Syncthing will only allowing syncing of files within /home/syncthing/snap/syncthing/#######

The first image is the one that will sync, the second will not. syncthing

syncthing2

cyberb commented 5 years ago

I guess one of the options is to run syncthing under root the same way files app can see all the files on the device.

Another option is to add group permissions or even add ACL but this is too much at this point I would say. We can alway add it in the future when everything is working.

cyberb commented 5 years ago

I have pushed a version of syncthing which can access any directory:

snap refresh syncthing --channel=master
cyberb commented 5 years ago

@chegeiser did you try master version?

cyberb commented 5 years ago

Syncthing was released to the stable channel. It should be enough for backup of any file from any device to any device.