Differences between revisions 1 and 9 (spanning 8 versions)
Revision 1 as of 2021-02-20 11:10:46
Size: 315
Comment:
Revision 9 as of 2021-02-20 11:39:14
Size: 1838
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
Syncthing is a modern file synchronization tool. It synchronizes files between various devices and operating systems. It is a great tool for automatic backup of personal files and smartphones. Syncthing is a modern file synchronization tool. It synchronizes files between various devices and operating systems. It is a great tool for automatic backup of personal files and smartphones. It has several usefull features:
Line 4: Line 4:
"" References ==  * Easy easy and simple configuration
 * File versioning

For this setup we will use [[GlusterFS|GlusterFS]] as the file store backend.

== Software ==

Start by installing syncthing

{{{
apt-get install syncthing
}}}

== Filesystem ==

Configure your system as a [[GlusterFS Client|GlusterFS client]], so you have the following in your fstab.
{{{
/etc/glusterfs/home.vol /srv/home glusterfs defaults,_netdev,rw 0 0
}}}

== Configuration ==

For each user that is going to synchronize against this system, create a directory for them in `/srv/home` and add the correct permissions.

{{{
mkdir /srv/home/kale
chown -R kale:kale /srv/home/kale
}}}

For each user add the syncthing service to default runlevel and start it.

{{{
systemctl enable syncthing@kale.service
systemctl start syncthing@kale.service
}}}

When the syncthing service has starts, it creates a set of config files in the users home directory. Edit `/home/kale/.config/syncthing/config.xml`and look for this section. Change

{{{
<gui enabled="true" tls="true" debugging="false">
    <address>0.0.0.0:8384</address>
    <user>kale</user>
    <password>$2a$10$tFQJQW18N2CV3LMf8g8BE.tu3kk3JvT/PySWukxbt3tZPXYsr4o0m</password>
    <apikey>someapikey</apikey>
    <theme>default</theme>
</gui>
}}}



}}}

== Instances ==

 * Kalle https://syncthing:8384/
 * Sanne https://syncthing:8385/
 * Family https://syncthing:8386/
 * Viktor https://syncthing:8387/
 * Karla

== References ==

Syncthing

Syncthing is a modern file synchronization tool. It synchronizes files between various devices and operating systems. It is a great tool for automatic backup of personal files and smartphones. It has several usefull features:

  • Easy easy and simple configuration
  • File versioning

For this setup we will use GlusterFS as the file store backend.

Software

Start by installing syncthing

apt-get install syncthing

Filesystem

Configure your system as a GlusterFS client, so you have the following in your fstab.

/etc/glusterfs/home.vol /srv/home glusterfs defaults,_netdev,rw 0 0

Configuration

For each user that is going to synchronize against this system, create a directory for them in /srv/home and add the correct permissions.

mkdir /srv/home/kale
chown -R kale:kale /srv/home/kale

For each user add the syncthing service to default runlevel and start it.

systemctl enable syncthing@kale.service
systemctl start syncthing@kale.service

When the syncthing service has starts, it creates a set of config files in the users home directory. Edit /home/kale/.config/syncthing/config.xmland look for this section. Change

<gui enabled="true" tls="true" debugging="false">
    <address>0.0.0.0:8384</address>
    <user>kale</user>
    <password>$2a$10$tFQJQW18N2CV3LMf8g8BE.tu3kk3JvT/PySWukxbt3tZPXYsr4o0m</password>
    <apikey>someapikey</apikey>
    <theme>default</theme>
</gui>

}}}

Instances

References

* https://theselfhostingblog.com/posts/how-to-set-up-a-headless-syncthing-network/

None: Syncthing (last edited 2022-02-12 09:39:51 by Kristian Kallenberg)