How to Install and Configure Syncthing on TrueNAS Scale

Lawrence Systems
24 Jul 202408:45

Summary

TLDRThis video tutorial guides viewers through setting up Syncthing on Shuras Scale 24.4, covering data set creation, permissions configuration, and sharing. It also demonstrates how to connect devices, manage shares, and ensure data synchronization across systems.

Takeaways

  • 😀 The video provides a tutorial on setting up Syncthing on TrueNAS SCALE 24.4.
  • 🔧 It mentions that there may be application changes in version 24.10, which might require an updated tutorial.
  • 📂 The process starts by creating a data set for storing Syncthing data, choosing the 'apps' preset for correct permissions.
  • 💾 The tutorial suggests using a nested data set for more granular control and snapshot capabilities.
  • 🔍 It guides viewers to discover and install Syncthing from the application menu, customizing the web and TCP/UDP ports as needed.
  • 🛠️ The video covers configuring the storage type to 'host path' and mounting the 'syncthing demo' data set.
  • 🔒 After installation, it emphasizes the importance of setting a password for the web interface for security.
  • 🔄 The tutorial explains how to connect devices and share folders between them within Syncthing.
  • 📁 It demonstrates adding and syncing files between a local system and the TrueNAS SCALE system.
  • 🗃️ The script touches on the benefits of using host paths for data sets, especially for backup and restoration purposes.
  • 🔄 The video concludes by highlighting the ease of backup and restoration due to the inclusion of configuration settings in the data set.

Q & A

  • What is the purpose of the video?

    -The purpose of the video is to demonstrate how to set up Syncthing on TrueNAS SCALE 24.4, including configuring permissions and adding shares.

  • What is TrueNAS SCALE and what version is being discussed in the video?

    -TrueNAS SCALE is a network-attached storage operating system. The video discusses version 24.4.2, which was the most current version at the time of the video's release.

  • Why should the data set type be set to 'apps' even if a share is not being added?

    -Setting the data set type to 'apps' ensures that all necessary permissions are correctly configured, which is important whether or not a share is added.

  • What is the significance of choosing the same port numbers for TCP and UDP in Syncthing?

    -Choosing the same port numbers simplifies configuration, especially when Syncthing instances are running on the same network without any port conflicts.

  • How does the video guide the user to create a storage location for Syncthing data?

    -The video instructs the user to create a data set called 'syncthing demo' in the 'data sets' section of TrueNAS SCALE, choosing the 'apps' preset for proper permissions.

  • What is the role of the 'Install' button in the context of the video?

    -The 'Install' button is used to install the Syncthing application on TrueNAS SCALE after configuring the necessary settings such as storage type and mount point.

  • Why is it recommended to participate in Anonymous usage reporting in the video?

    -Participating in Anonymous usage reporting helps the developers gather data to improve the system, although it is optional and up to the user's personal choice.

  • What is the importance of setting a password for the Syncthing web interface?

    -Setting a password for the web interface secures access to the Syncthing administration controls, preventing unauthorized access.

  • How does the video explain adding a device to Syncthing?

    -The video demonstrates adding a device by showing the ID of one system and then adding it to another system as a new device, specifying the IP address and port number.

  • What does the video suggest regarding sharing folders in Syncthing?

    -The video suggests sharing specific folders rather than the entire 'syncthing demo' directory to control the visibility of shares and maintain organization.

  • How can changes made to the shared folder on one system be reflected on another system?

    -The video shows that changes, such as adding or deleting files, are synchronized across systems using Syncthing, ensuring that both systems have the same files.

  • What is the benefit of using a host path that points to a data set for Syncthing configuration?

    -Using a host path that points to a data set allows for easy backup and restoration of Syncthing settings and data, including configuration files, through mechanisms like snapshots and ZFS replication.

Outlines

00:00

🔧 Setting Up Syncthing on TrueNAS SCALE 24.4

This paragraph introduces the video's purpose, which is to demonstrate the setup of Syncthing on TrueNAS SCALE version 24.4. It acknowledges potential application changes in version 24.10 but assures that the instructions provided should still be applicable. The video will cover the basic setup, permissions configuration, and how to add shares to Syncthing. The speaker also mentions a previous in-depth video about Syncthing for those who need more information. The process begins with creating a data set for storing Syncthing data and choosing the 'apps' preset for proper permissions. The video then proceeds to the installation of Syncthing from the 'Discover Apps' section, with customization options for web and TCP/UDP ports. The importance of setting the correct storage type and host path is highlighted, and the installation is completed with a brief mention of the web portal and anonymous usage data participation.

05:01

📂 Configuring Shares and Syncthing Permissions

The second paragraph delves into the configuration of shares within Syncthing after the initial setup. It explains how to navigate the Syncthing interface to add and manage devices, and how to share folders between them. The process includes copying the device ID, specifying IP addresses and port numbers, and saving the device configuration. The speaker demonstrates how to accept shares and adjust folder base paths according to the settings. The paragraph also covers how to add a Windows share, the importance of choosing the correct folder to share for visibility, and the steps to restart the service and verify the successful sharing of files. The video concludes with a discussion on the benefits of using a host path for data storage, which includes ease of backup and restoration, and the preservation of configuration settings in case of system failure. The speaker encourages viewers to watch additional videos for more information on TrueNAS replication and to engage with the community for further discussion.

Mindmap

Keywords

💡Syncthing

Syncthing is an open-source file synchronization application that allows users to synchronize files across multiple devices. In the video, it is the main software being set up on a system called 'Shasta Scale'. The script discusses how to install and configure Syncthing, making it central to the video's theme of system setup and file management.

💡Shasta Scale

Shasta Scale is a reference to a specific version or system environment where the video's tutorial is being conducted. The script mentions 'Shasta Scale 24.4', indicating the version number, and it is the platform on which Syncthing is being installed and configured.

💡Permissions

Permissions in the context of the video refer to the access rights and privileges assigned to users or applications to perform certain actions on a system. The script explains how to properly configure permissions for Syncthing, which is crucial for ensuring that the application functions correctly and securely.

💡Data set

A data set in the script refers to a specific storage location or container for data on the Shasta Scale system. The video describes creating a data set for Syncthing to ensure that the application has a designated place to store its data, which is essential for organizing and managing file synchronization.

💡Applications

In the video, 'applications' refers to software programs that can be installed and run on the Shasta Scale system. Syncthing is one such application that the video focuses on installing and configuring. The term is used to discuss the broader context of software management on the system.

💡Host path

The host path is a configuration setting in the video that specifies the location on the host system where the application's data will be stored. The script mentions choosing 'host path' during the Syncthing installation process, which is important for mapping the application's data storage to a specific directory on the Shasta Scale system.

💡TCP and UDP ports

TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) ports are networking concepts used for communication between applications. The video script discusses changing the default ports for Syncthing to avoid conflicts with other services, which is an important step in configuring network settings for proper application operation.

💡Shares

In the context of the video, shares refer to the directories or folders that are made available for synchronization through Syncthing. The script explains how to add and manage shares, which is a key feature of Syncthing for synchronizing files between devices.

💡Device ID

The Device ID in the video is a unique identifier for a device configured to use Syncthing. The script describes how to copy and paste the Device ID to connect different instances of Syncthing, which is necessary for establishing synchronization between devices.

💡Configuration settings

Configuration settings in the video refer to the various options and preferences that can be adjusted for Syncthing, such as folder paths, device connections, and synchronization rules. The script mentions that these settings are stored in a 'config.xml' file, which is important for maintaining the application's setup even after a system failure or restoration.

💡Snapshots and ZFS replication

Snapshots and ZFS replication are advanced storage features mentioned in the video that allow for data backup and recovery. The script notes that using these features ensures that not only the data but also the Syncthing configuration settings are preserved, which is crucial for system recovery and data integrity.

Highlights

Introduction to setting up Syncthing on TrueNAS SCALE 24.4, the current version at the time of release.

Explanation of potential application changes in version 24.10 and the possibility of creating a new tutorial if necessary.

Mention of an in-depth video on Syncthing for those unfamiliar with the software.

Demonstration of creating a data set for Syncthing in the root directory with the name 'syncthing demo'.

Choosing the 'apps' data set preset for correct permission settings, regardless of whether a share is added.

Option to add nested data sets for more granular control and snapshot capabilities.

Navigating to the 'Discover Apps' section to find and install Syncthing.

Customization options for the web and TCP/UDP ports to match existing Syncthing instances.

Selection of 'host path' as the storage type and mounting the 'syncthing demo' data set.

Completion of the Syncthing installation and accessing the web portal.

Enabling anonymous usage statistics and setting up device name and password for security.

Instructions on configuring Global Discovery, NAT traversal, and local relaying settings.

Demonstration of removing the default folder and adding a new share from a local system.

Process of adding a device by copying its ID and specifying IP address and port number.

Connecting two devices and sharing files between them using Syncthing.

Explanation of sharing a folder and the importance of selecting the correct base path.

Adding a Windows share and the steps to restart the service and access shared files.

Discussion on the synchronization process and how changes in one system reflect in another.

Importance of the host path being a data set for backup and restoration purposes.

Advantages of using snapshots and ZFS replication for backup, including configuration settings.

Conclusion with an invitation to watch related videos, participate in forums, and subscribe for updates.

Transcripts

play00:00

in this video we're going to show you

play00:01

how to get sync things set up on shuras

play00:03

scale

play00:04

24.4 which is the most current version

play00:07

as of this release I know there's some

play00:08

application changes coming in 2410 this

play00:12

should still work but if it doesn't well

play00:13

I'll just have to make a new video If

play00:15

you're not familiar with syncthing I

play00:16

already made a more in-depth video

play00:18

covering all the details about syncthing

play00:20

this video is just going to cover how to

play00:21

set up syncthing on shest how to get the

play00:23

permissions properly configured and if

play00:26

you want to add a share to it how that

play00:27

would work as well so let's get started

play00:32

[Music]

play00:36

this is tress scale Dragonfish

play00:38

24.4.2 and the first thing we want to do

play00:41

is make sure we have a spot to store our

play00:42

syncthing data so we're going to here to

play00:44

data sets we're going to click on the

play00:46

pool that I'm going to put it in you can

play00:47

put it in a nested data set if you want

play00:49

we're just going to create it right in

play00:50

the root here we want to add the data

play00:52

set and we want to say sync thing demo

play00:55

and the type of data set preset we want

play00:57

to choose is apps even if you're going

play00:59

to add a share or not add a share still

play01:01

choose apps because this will set all

play01:03

the permissions exactly as they need to

play01:05

be we're going to hit

play01:08

save and now we have our sync thing demo

play01:11

folder if you wanted to have more

play01:13

granular control you can add data sets

play01:16

and Nest them underneath and give the

play01:17

folders the same name that is perfectly

play01:19

fine because this will give you the

play01:21

advantage of having extra snapshots you

play01:23

could apply on a per data set basis goes

play01:26

beyond the scope of this but yes that

play01:27

will work that is something you can do

play01:29

and yes you would set the permissions

play01:30

for each Nesta data set to be exactly

play01:32

the same for Simplicity we're just going

play01:34

to call this one syncing demo and that's

play01:36

where we're going to store everything

play01:38

now the next step we want to go through

play01:39

here is going to the applications

play01:42

they're already set up they've already

play01:43

been chosen to a pool they're already

play01:45

set up on the demo pool but I have no

play01:47

applications loaded so we're going to go

play01:48

to discover apps and we're going to find

play01:50

sync thing which happens to be right

play01:52

here go ahead and click the

play01:55

install change your name if you want I'm

play01:58

just going to leave it at sync things

play01:59

that same as fine one thing I like to

play02:01

change though is not the web Port where

play02:03

you have the admin controls but the TCP

play02:06

port and I'll change the UDP port to be

play02:08

the same the reason I Chang these to the

play02:10

default setting is just because all the

play02:12

other syn thing instances I have are at

play02:14

the same port number and there's not

play02:16

anything else loaded right now that's

play02:17

conflicting with it if there was a

play02:19

conflict with another app or service you

play02:21

have then you would have to choose a

play02:22

different port then we're going to go on

play02:24

here choose our storage type and we're

play02:25

going to choose host path we're going to

play02:27

go down here to Mount demo pool sync

play02:30

thing demo we don't really need to do

play02:32

anything else all the other

play02:33

configuration can say exactly as it is

play02:35

and we'll just go ahead and hit

play02:40

install all right now the system's up

play02:42

and running we can go to the web portal

play02:44

and of course this can ask if you want

play02:45

to participate in Anonymous usage I'm

play02:47

going to say yes but that is a personal

play02:48

choice you can make it does give you the

play02:50

warning here that the interface does not

play02:52

have a password on it we're going to go

play02:54

ahead and fix those things so we're

play02:55

going to in settings I'll give this

play02:57

device name sync thing tras demo

play03:00

we'll go over here to the gooey we'll go

play03:02

ahead and put a password on there so it

play03:03

doesn't

play03:04

complain now do not change this and it

play03:07

does warn you that this was overridden

play03:09

anyways so if you change it it's going

play03:11

to ignore it but don't mess with that

play03:12

there's not a need to and as I noted my

play03:14

other syncthing video is up to you if

play03:16

you want to leave these on or off the

play03:18

Global Discovery natur rval and local

play03:20

relaying and Discovery these are options

play03:23

that I cover in my other video It's A

play03:25

beaconing system that allows it ease of

play03:27

use of finding other syn thing servers

play03:29

not going to use that so we're going to

play03:30

go ahead and hit save it allows me to

play03:32

log back in I'm going to delete the

play03:34

default folder cuz I don't have a use

play03:35

for it so we're going to ahead and hit

play03:37

remove say yes and since I don't have

play03:40

any data on this we're going to switch

play03:42

over to a system that I do have data on

play03:44

and share it back with this system here

play03:46

so this is running locally on my system

play03:48

and at the top here you can see it says

play03:49

pop OS and this one says syncthing demo

play03:52

first step is go to show ID we're going

play03:55

to copy the

play03:57

ID and we want to add a device here

play04:00

paste in the ID go to advance and

play04:03

specify the IP address and port number

play04:06

this is the IP address of my chass

play04:08

system and Port 22,000 was the

play04:10

overridden Port from the default that I

play04:12

put in there which is actually the

play04:13

default port for sync thing so go ahead

play04:15

and save

play04:17

this then we're going to get

play04:18

confirmation to add the device here

play04:21

we'll go ahead and hit save so now the

play04:22

two devices are connected now we're back

play04:24

over on my popos system and we're going

play04:26

to go and share it with that trass demo

play04:29

so go here here is sharing there's our

play04:31

trass demo hit

play04:34

save there's a couple files in

play04:37

here this is receiving the share so

play04:40

we're going to go ahead and add it now

play04:42

when you accept the share you can leave

play04:43

the folder base path the same that's

play04:46

because the folder base path is the path

play04:48

that we specified inside of the settings

play04:51

when we set the app up so we're going to

play04:52

go ahead and hit save

play04:54

here and we see that it's up to date now

play04:57

let's talk about the sharing and for

play04:59

that we want to go to shares and we want

play05:01

to add a Windows share if we look here

play05:04

we see Mount demo pool syncing demo and

play05:07

there's that demo folder you can share

play05:09

out the folder or you can share out the

play05:11

sync thing demo but if you share out

play05:14

sync thing demo all shares will be

play05:16

visible maybe you only want this share

play05:18

visible so we're going to keep it simple

play05:19

and just do this share right here and

play05:21

we're going to go ahead and hit

play05:23

save go ahead and restart the

play05:25

service and right here we can see that

play05:27

share per demo so we'll go ahead and

play05:29

double click on it

play05:30

and I've already logged in and here's

play05:32

the files that are in there if we wanted

play05:34

to add another file that's not a problem

play05:36

they pull up something out of another

play05:39

directory we'll grab a bunch of these

play05:41

screenshots that I have right here we'll

play05:44

paste them into

play05:46

here and then we can look in the sync

play05:49

thing and now you see it found 93 more

play05:51

files it's up to

play05:54

date and the demo folder here now also

play05:57

has those 93 files in it so it's syncing

play05:59

ing properly on the system matter of

play06:02

fact demo syncs locally here if we go to

play06:04

my home we look at demo and if we change

play06:07

things on here like I don't really need

play06:09

that in there so we'll go ahead and hit

play06:10

delete it's now deleted out of there and

play06:13

it will resynchronize and you'll see the

play06:16

file count change here we can force it

play06:18

do a rescan and there we go it's now

play06:21

back down to only three files in

play06:23

here this is on the popos system and we

play06:25

can look on this system and we can see

play06:27

it also only has three files so you can

play06:29

see the s ionization is working both in

play06:31

syncthing and in the different share

play06:33

that I have on there now the host path

play06:36

we specified was a data set we created

play06:38

called sync thing demo as noted you

play06:41

could create several more underneath of

play06:42

it but that does require they exist

play06:45

prior to you doing the share for example

play06:47

the folder we created called demo

play06:49

created that folder called demo

play06:51

underneath there but if you want to

play06:52

create a data set called demo you have

play06:54

to do it prior to having shared and

play06:57

accepted and pointed at that particular

play06:58

directory so nesting them under there is

play07:00

no problem but just note it takes a

play07:02

little bit of planning if you plan to

play07:04

have a whole series of shares and you

play07:05

want each share in its own data set or

play07:08

you can do as I did in this video for

play07:09

Simplicity just have them all under the

play07:11

one data set when you back up that data

play07:14

set if you use something like snapshots

play07:16

plus ZFS replication all of the

play07:19

configuration settings are in there as

play07:20

well so you have your data which is in

play07:22

those folders but there's also a config

play07:24

directory that has a config.xml file for

play07:26

all the settings and all the different

play07:28

systems that that that sync thing is

play07:30

attached to so all of that is in there

play07:32

that way if you ever had the tra system

play07:34

completely fail on you suffer

play07:36

catastrophic failure where the

play07:37

application has to be reloaded you

play07:39

simply point it back at the host path

play07:41

and syn thing will go hey there's a

play07:43

config.xml file I will use that one

play07:45

instead of creating a new one because it

play07:46

does check if one exists when you set it

play07:48

up if it finds an existing one all the

play07:50

settings come back and anything you'd

play07:52

customized and all your different

play07:54

settings such as versioning will all be

play07:56

set up just the same so it's pretty easy

play07:58

to back up and restore do watch my video

play08:00

If you're not familiar with how trass

play08:01

replication works you'll find that link

play08:03

down in the trass playlist down below

play08:05

leave your thoughts and comments love

play08:06

hearing back from all of you also head

play08:09

over to my forums for a more in-depth

play08:10

discussion on this other topics like And

play08:12

subscribe to see more content from this

play08:14

Channel and head over to lawen

play08:16

systems.com sign up for the newsletter

play08:17

if you want to keep up with the monthly

play08:18

goings on at Lawrence systems and the

play08:21

videos and different news articles that

play08:22

I put in there all right and thanks

play08:27

[Music]

Rate This

5.0 / 5 (0 votes)

Etiquetas Relacionadas
Syncthing SetupTrueNAS ScaleData SyncStorage GuideSystem TutorialNetwork SharingFile ManagementSoftware InstallationData SecurityBackup Strategy
¿Necesitas un resumen en inglés?