Syncing your Files Across ALL your Computers via Syncthing

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ธ.ค. 2024

ความคิดเห็น • 97

  • @phillipcifone8974
    @phillipcifone8974 ปีที่แล้ว +3

    Throwing a comment your way to help the the algorithm:
    You have been my personal Linux instructor lately as I navigate this operating system. I've been using Linux for maybe a little over 6 months now? I was watching other youtubers but they just kind of quickly go through things, but you often take the time to explain what you're doing and why, and for idiots like me it's a huge help. I didn't start really understand what I was doing until I came across your Arch install video (which led me to your channel) and then your homelab podcast. I'm doing things that 1 month ago I would have been scratching my head at. Your channel is indispensable.

  • @DanCalloway
    @DanCalloway 4 ปีที่แล้ว +13

    Been using Syncthing for years as well and your approach to installing the application and using it in the home is a clean way of handling file/folder synchronization on a star topology network. Great video!

  • @keenanblack3958
    @keenanblack3958 ปีที่แล้ว

    Thanks for the guide Jay! I did in this case have to configure my ufw firewall on the server for certain devices to to connect (home network). Looks like port 21027/udp was the culprit. Instructions taken from Syncthing documentation: "If you’re using ufw on Linux and have installed the Syncthing package, you can allow the necessary ports by running:
    sudo ufw allow syncthing
    If you also want to allow external access to the Syncthing web GUI, run:
    sudo ufw allow syncthing-gui
    Allowing external access is not necessary for a typical installation.
    You can then verify that the ports mentioned above are allowed:
    sudo ufw status verbose "

  • @notpublic7149
    @notpublic7149 4 ปีที่แล้ว +7

    Thank you! I am very appreciative for this information, the documentation is great, but as with any good docs, it's quite lengthy. This short breakdown of SOHO NAS scenario is very fitting, cheers.

  • @jim7smith
    @jim7smith 2 ปีที่แล้ว +1

    Well done...I was trying to do what this does automagically using rsync scripts, but this is a lot less work and needs no updating manually. I like it.

  • @vollmacuser
    @vollmacuser ปีที่แล้ว

    Thank you for this upload, I can only imagine how much work goes into producing a video like this.

  • @donjenkins2465
    @donjenkins2465 3 ปีที่แล้ว

    Great video easy to understand... Only problem was from you show notes I got this: sudo apt install syncthingxx
    I finally figured out that the "xx" wasn't supposed to be there..

  • @johncrunk8038
    @johncrunk8038 4 ปีที่แล้ว +7

    Thank you, Jay, for opening up another rabbit hole. LOL.

  • @johncrunk8038
    @johncrunk8038 3 ปีที่แล้ว +2

    Great video. I use Syncthing to save client directories to unique directories on the server. Same idea, just separates the environments.

    • @7atab
      @7atab ปีที่แล้ว

      Is there is any built-in similar utility to that in Unix-Linux or FBSD?

  • @JuanLopez-db4cc
    @JuanLopez-db4cc 4 ปีที่แล้ว +2

    Thank you very much for making this video. Thanks for telling us more about this tool.

  • @murtadha96
    @murtadha96 3 ปีที่แล้ว +2

    Great quality video and explanation, very useful!

  • @Innocentdarkness72
    @Innocentdarkness72 4 ปีที่แล้ว

    thanks jay, just the thing i was looking for !!!

  • @yiannisspanos694
    @yiannisspanos694 4 ปีที่แล้ว +1

    I sure asked about this a few weeks ago. Thanks for the video!

  • @raymondfb
    @raymondfb 3 ปีที่แล้ว

    great video ! thank you for taking the time to make this video. i learned so much.

  • @deciodasilva3960
    @deciodasilva3960 2 ปีที่แล้ว

    I am very happy with syncthing compared to nextcloud...I really love it man...thanks man

  • @NovaCayn
    @NovaCayn 2 ปีที่แล้ว

    I use this on docker syncing my photos from my phone. Great way to backup pictures that you dont want to lose.

  • @jothain
    @jothain ปีที่แล้ว

    I got this working now, but question at around 28:43 mark. You're creating fileversioning on the PC-1 computer. Is this now applying only to this computer? I mean at quickly thinking this, shouldn't that change be done on Server if this by device setting and not universal. Other than that, great tutorial 👍
    Experimented a bit and it looks like I'm right. Might be beneficial to note this in the video as I'd assume most want versioning to be in the server, not at 'client' so-to-say.

  • @olis936
    @olis936 ปีที่แล้ว

    Great video Jay, thank you very very much!

  • @mon0theist_tv
    @mon0theist_tv 4 ปีที่แล้ว

    23:20 but wait, are you sharing the folder from the second device to the primary device, or vice-versa? I don't understand how this program works

  • @pranayshahare738
    @pranayshahare738 3 ปีที่แล้ว +1

    Please do make a video on syncthing errors and how to fix them. like path missing,marker missing, out of sync, syncthing disconnected,

  • @kenrq63
    @kenrq63 4 ปีที่แล้ว +2

    A good tutorial Jay thank you.

  • @AtishayKumar
    @AtishayKumar ปีที่แล้ว

    Great video. Instructions work

  • @philippao8078
    @philippao8078 11 หลายเดือนก่อน

    Hello, thanks for the video and explanation. Brazil side ;)

  • @Rbourk252
    @Rbourk252 2 ปีที่แล้ว

    I have some mini pc’s that I mess around with trying out different distros’. I had one running mint that consistently failed to auto start syncthing on boot. It worked manually. But only after about a 1 minute delay after boot. I discovered that this particular box was set up with encrypted home folder. I’d forgotten that I had. After much searching, months later I discovered the fix. I had to disable my scything service and create a timed service that was linked to it. I enabled the timed service and started it in the same way as with any other service and then when I rebooted, syncthing started successfully precisely 60s after booting up. I learn a new thing every day! Perhaps a small video about this fix would benefit those out there who have the same issue.

  • @loukask.9111
    @loukask.9111 4 ปีที่แล้ว

    I'm pretty sure just enabling Shared Clipboard via the "Devices" Tab in VirtualBox allows you to copy paste the commands directly into the VM.

  • @vansantsam
    @vansantsam 2 ปีที่แล้ว

    Great video.. I have no problem with computers to servers or servers to servers but what I can't get setup is to share the content of datasets from one truenas server to a second truenas server.. I can manually copy and paste the files through my file manager and SMB://, but I want to automate the task with syncthing..

  • @ikhtiaramin2578
    @ikhtiaramin2578 3 ปีที่แล้ว

    Very helpful Jay, thanks.

  • @karloa7194
    @karloa7194 2 ปีที่แล้ว

    Jay, have you tried to use something like autofs for centralized /home since you are using the star topology?

  • @geoffhalsey2184
    @geoffhalsey2184 3 ปีที่แล้ว

    A painless way to share files. An alternative way to get round the localhost IP issue on a server is to install the docker version. That work quite well for me.

  • @ak49
    @ak49 6 หลายเดือนก่อน

    so you have to keep your devices on? If I have a desktop and a laptop, do I have to have both devices on to syncthing to work?

  • @stalinengoma7680
    @stalinengoma7680 3 ปีที่แล้ว

    Absolutely genius

  • @merbst
    @merbst 4 ปีที่แล้ว

    SyncThing and SyncThing Lite are 2 excellent Android apps!

  • @jonathanrider4417
    @jonathanrider4417 2 ปีที่แล้ว

    Great video Jay - however your link below to the wiki page is broken; I will try to find the github page for the file...

  • @kalkulusrampage
    @kalkulusrampage 2 ปีที่แล้ว +1

    can be use out of local network?

  • @yaajfcomments7171
    @yaajfcomments7171 4 ปีที่แล้ว

    Why do you need to download systemd unit manually? It's already included in the package in the official Debian/Ubuntu syncthing repository.

  • @ausguy4385
    @ausguy4385 3 ปีที่แล้ว

    Can you have a folder on the nas that is the long term stroage and the folder is accessible on other devices?
    Reason being if sync to nas of photos from phone I can't keep a copy of everything on the phone....

  • @BrianThomas
    @BrianThomas 3 ปีที่แล้ว

    Very nice video. I had no idea this even existed before. Question: What if you're working with an off the shelf NAS device? How would you be able to sync from the server to the NAS. I have a very old Netgear NAS. Would this work with something like that?

  • @fuba44
    @fuba44 3 ปีที่แล้ว

    How about using it for offsite backups, like set up a raspberry pi or something at my folks and brother to have two points of backup, can it safely sync via the internet?

  • @blackbarry45
    @blackbarry45 ปีที่แล้ว

    22:30 setu up server

  • @ltam168
    @ltam168 2 ปีที่แล้ว

    Great video. Thanks for sharing.

  • @fg786
    @fg786 2 ปีที่แล้ว

    What would I use for a simpler task like the following? I have an ebook reader with an extensive library. The same library is on 2 local PCs. And I want a software that checks whether the folder hirarchy between the Ebook reader and the PC it's connected to is the same, including all files ofc. If not just copy the contents that isn't on one device, reader or PC, to the other and be done. It's like the Ebook reader is the USB stick and I don't want to copy everything all the time but only the difference.

  • @grem28
    @grem28 3 ปีที่แล้ว

    if i have my files at the office, is there a way to sync my home computer with those files. So if i add a file at home, it will reflect at work?

  • @waynenewark5363
    @waynenewark5363 3 ปีที่แล้ว

    Helpful video. I now have Syncthing running on 4 devices including my Qnap NAS. A combination of Linux and Windows machines.
    BTW The wiki link appears to be broken.

  • @halmorgan5693
    @halmorgan5693 ปีที่แล้ว

    The wiki link for the process that you posted is no longer available. Do you still have it by chance?

  • @jeffluo9591
    @jeffluo9591 ปีที่แล้ว

    If I have file server, wouldn't it be better to to access the file directly from the server from everywhere rather than to sync it everywhere?

  • @FederationOfLight
    @FederationOfLight 3 ปีที่แล้ว

    Speaking of syncing - can you sync your videos to Odysee, like every other Linux guy that I follow does? A lot of us spend more time over there now, because TH-cam sucks.

  • @khanhthedag7269
    @khanhthedag7269 8 หลายเดือนก่อน

    hi. Thanks
    cd ~/.config. but, I can go to this folder. the answer: No such file or directory
    how can I go to this folder (.config) ?

  • @agung-kurniawan
    @agung-kurniawan 3 ปีที่แล้ว

    looking for sync folder cross platform. it's realy help me
    thanks sir

  • @indigowyrm
    @indigowyrm 4 ปีที่แล้ว

    Thanks good tutorial!
    Do you know if this debian setup works for Raspberry pi 4 as I have an open media vault NAS server with raspbian lite ? Cheers

  • @RobertBrooksiii47
    @RobertBrooksiii47 ปีที่แล้ว

    Thank You

  • @joshjohnson946
    @joshjohnson946 4 ปีที่แล้ว

    does anyone know if its possible to add in nextcloud to the mix so nextcloud receives an updated file from one of my computers?

  • @sidneyking11
    @sidneyking11 ปีที่แล้ว

    How to sync the Server's folder path to a different path on the pc? example server = /mnt/vda1/media pc = /mnt/sda1/media

  • @TheBrimurray
    @TheBrimurray 4 ปีที่แล้ว

    This is very usefull. Thank you Jay

  • @hiranyasarma8886
    @hiranyasarma8886 ปีที่แล้ว

    Thanks. How can we make this on CentOS 7?

  • @fvgoya
    @fvgoya 4 ปีที่แล้ว

    That’s pretty cool!!! It’s a kind of GUI version of rsync command? Also, with this system, we might need to have lot of extra free space, because of 33:33, correct?

    • @yaajfcomments7171
      @yaajfcomments7171 4 ปีที่แล้ว

      It is not rsync, it's a BitTorrent Sync's free alternative. Syncthing will not sync files on the same machine and it's way faster then rsync on LAN even with crappy WiFi driver that keeps breaking TCP connections all the time.

  • @knofi7052
    @knofi7052 4 ปีที่แล้ว +1

    Why would I need Syncthing if I am having already a file-server with central file access for all devices?

    • @gilliangoud
      @gilliangoud 4 ปีที่แล้ว

      With risk of sounding too obvious: You could sync files frequently used on-the-go (outside acces or offline) that get changed on the file server. If your server is accessible from anywhere this wouldn't matter of course... But it would still be valid for keeping important files you cannot afford to lose on more devices.
      I guess some people could come up with more use-cases, but I wouldn't know if your question was rhetorical or not :)

    • @knofi7052
      @knofi7052 4 ปีที่แล้ว

      @@gilliangoud For that use case it's much better to share your files in encrypted folders on a cloud server. You do not even have to pay for 10-15Gb storage and your files are always up to date for all of your devices.

  • @mirkoregina8733
    @mirkoregina8733 2 ปีที่แล้ว

    Hi, I have a distro based on DEBIAN Q4OS I need to connect 4 hard disks with windows and mac backups and I would like to create a server with raid sharing of all hard disks and including a continuous and incremental backup also of smartphones and ipads in the family ... I was thinking about nextcloud and openmediavault but something else would probably be missing to perfect everything and example the folder search on different file systems I forgot ... I also have nvidia shield which can act as a nas if it would be enough without paying plex .Advice? Thank you.

  • @jothain
    @jothain 3 ปีที่แล้ว

    I don't get it. I can't get this running at all. Service just doesn't launch correctly and ends with error: syncthing@user.service: Failed with result 'exit-code'.
    I've tried this now twice on Proxmox and with Debian and Ubuntu server bases.

  • @vk0x564b
    @vk0x564b ปีที่แล้ว

    I have proxy enabled on my network device . What do I do ?

  • @AnzanHoshinRoshi
    @AnzanHoshinRoshi 4 ปีที่แล้ว

    Thank you, Jay.

  • @GMAH111
    @GMAH111 2 ปีที่แล้ว

    "systemctl enable --now" in the future if you want to enable and start something at the same time

  • @MiniLuv-1984
    @MiniLuv-1984 4 ปีที่แล้ว +2

    Thanks! that was really informative. So much so that it has started a while lot of question!
    It would be good to explain what happens with permissions given each user on the different machines is actually a different user even if they have the same username. While we are on that, what happens if the machines a syncing different users? Let's say I have a file testfile.txt with permissions rw---- on machine1 and user1, after syncing will the synced file replace the permissions so they are rw---- for the machine2 user2?

  • @christopherkevinlee2992
    @christopherkevinlee2992 4 ปีที่แล้ว

    Hopefully I'm going to use it as backup unity, going to have 2 Ubuntu servers. 1st one is going to be my main file server with raid1 and samba and the 2nd is going to have just raid then use syncthing to sync from 1st server to second server and set it up so its one way sync

  • @MichaelAMalone
    @MichaelAMalone 3 ปีที่แล้ว

    From what I can tell, scp, rsync, and syncthing all use encryption for transmitting... Is this true?

  • @Praxss
    @Praxss 3 ปีที่แล้ว

    Can we do linux as server and windows as client?

  • @bitsurface5654
    @bitsurface5654 4 ปีที่แล้ว +1

    I like this a lot! My Question: Is it possible to use it over Internet without a VPN?

    • @drumpf4all
      @drumpf4all 4 ปีที่แล้ว +1

      Yes there is, multiple ways. You can forward port 22000 on your router and point it to the computer you want to sync (must have syncthing running) OR if you don't want to open up ports on the router you use syncthing's SSH Tunneling feature - check the docs as they are really good.

    • @yaajfcomments7171
      @yaajfcomments7171 4 ปีที่แล้ว

      Or you can just use relaying which is turned on by default, syncthing service on every paired computer would try to connect locally, if it fails it'd try to connect via relay.

  • @HidayatLahabu
    @HidayatLahabu 2 ปีที่แล้ว

    On ubuntu, it is success like what you did ini this video, but on centos7, I don't now why it is fail
    maybe you can help to make a video setup syncthing in centos7

  • @kermitdafrog8
    @kermitdafrog8 3 ปีที่แล้ว

    What's the difference with syncthing and rsync?

  • @MichaelAMalone
    @MichaelAMalone 4 ปีที่แล้ว

    I did find the github systemd page, but I don't see the link in the description.... did I miss something... Lol's

  • @liketheduck
    @liketheduck ปีที่แล้ว

    Love the shirt!

  • @saulgoodman1390
    @saulgoodman1390 3 ปีที่แล้ว +2

    Drinking game: Take a shot every time he says "go ahead"

    • @Dreamwoodinternational
      @Dreamwoodinternational 3 วันที่ผ่านมา

      The worst aspect of US TH-camrs.
      Seems to be a contagious disease in that domain, as prevalent as 'Reaching Out' that has now contaminated the English speaking world.

  • @GSHERPA
    @GSHERPA 4 ปีที่แล้ว

    thank you.

  • @juxuanu
    @juxuanu 4 ปีที่แล้ว +3

    Syncthing is a decentralized way to share files across devices. Doesn't your approach defeat this software's intention?

    • @TheWkd111
      @TheWkd111 4 ปีที่แล้ว +2

      My interpretation of SyncThing is to "Sync Things". Now I have a file server as well and this is exactly how I would set things up to a) backup to the file server and b) synchronize all my PC's. Do you need to sync to the server? Not unless you are paranoid about losing a file, or perhaps your laptop isn't turned on all the time and you want to make sure you have a backup from your desktop. Just a different way of looking at the solution. If I had files that I just want to back up I would share them with the other machine and if I had files I didn't need to back up I would not bother with the server. I like the flexibility of Syncthing even though I haven't set it up recently, I just rebuilt most of my network and just haven't gotten around to it yet.

  • @aperson1181
    @aperson1181 ปีที่แล้ว

    What if you don't have a PC that acts as a server? Also, I run Win 11.

  • @dimitristsoutsouras2712
    @dimitristsoutsouras2712 4 ปีที่แล้ว

    At part 3 what is the point to download separately the syncthing@.service and place it to the /etc/systemd/system/ .Shouldn 't this file be placed automatically during installation to the appropriate path?
    PS I assume you changed permissions of the file to root because the path /etc/..... is owned by root only and jay doesn't have access there?

    • @5thfloor584
      @5thfloor584 4 ปีที่แล้ว

      what? You don't seem to understand how this works

    • @dimitristsoutsouras2712
      @dimitristsoutsouras2712 4 ปีที่แล้ว +3

      @@5thfloor584 If I would what is the point to ask after all? Is your answer helping in some direction which also I dont get ?

  • @nevoyu
    @nevoyu 4 ปีที่แล้ว

    I wonder if I can setup syncthing to operate via internet as well.... Basically set up my own internet cloud service, lol

  • @johnwashifi
    @johnwashifi 3 ปีที่แล้ว

    how to use it from a WAN?

  • @liketheduck
    @liketheduck ปีที่แล้ว

    Your wiki link is no longer working, fyi.

  • @stradomus9673
    @stradomus9673 4 ปีที่แล้ว

    Nice shirt!

  • @philippao8078
    @philippao8078 11 หลายเดือนก่อน

    New config folder (~/.local/state/syncthing).

  • @minutesgoals
    @minutesgoals 4 ปีที่แล้ว

    Good

  • @f33YN
    @f33YN 4 ปีที่แล้ว

    It hurts to see someone so experienced and knowledgeable about linux, privacy and all that stuff using Chrome and google search engine
    Oh and he uses nano...

  • @DblDTheThird
    @DblDTheThird 4 ปีที่แล้ว +1

    lolz ......
    I do feel for folks that put forward the "brand" but always come a "bit short"
    as its always the case with with you Mr Jay ..... no offence .... some observations
    difference and availability of curl / wget in a chosen distribution should really not be a confusion point for a "Linux Guy"
    depth of understanding of "one's tools at hand " i.e. systemd ...if that is your "weapon of choice", should be concise and deliberate Mr Jay.....
    to that end, and for future reference "systemdctl enable --now ....desired service " would enable and start immediately on invocation ...
    overall, just as with most of your content ... you have earned a "participation reward" ... thank you for sharing your experience .. at lest you have not [as far as I'm aware started with pushing WSL 1/2 garbage promotion .. extra trawl points should you ever start that rubbish ....]
    All that said ... watching your stream never fails to put me to zzzzzzzzz...... thank you for that .....

  • @smile4992
    @smile4992 หลายเดือนก่อน

    Syncthing dev will discontinue the official app in December.

  • @MrMotoX450
    @MrMotoX450 2 ปีที่แล้ว +1

    Just wasted 3 hours of my life. I have seen quite a few of your videos and really like them. But you failed to mention a major drawback to Syncthing, file ownership. I came across this video and watched the entire thing and it was exactly what I wanted. I spent about 2 hours setting this up across my servers as a Docker container, only to realize that it does not sync file/dir ownership. This makes this software almost useless. My servers do not all share the same UID/GID. And the directories that I want to share are owned by different users. For example, my www folder is owned by www-data, my .ssh folder is owned by my user. If I try to sync these across multiple servers, the ownership is not preserved and application goes down due to file permission issues and shen I try to ssh I am getting .ssh permission errors. A 10 second mention of this would have been helpful.

  • @robkozzu8572
    @robkozzu8572 4 ปีที่แล้ว +1

    You need to tell people that your promocode is only for those who own creditcard(it is mandatory before one can use your promocode). So your promocode is not equally for all of us, to try linode. This is called false advertizing!

  • @FaLLeNaNg3L82
    @FaLLeNaNg3L82 2 ปีที่แล้ว

    what the hell is a Bedroom PC? - i mean who needs a PC in their Bedroom? unless you are a student and live in a 1-room-flat.