Syncthing - The Based Way to Sync Your Files
ฝัง
- เผยแพร่เมื่อ 15 พ.ย. 2023
- In this video I go over the basics of setting up and using Syncthing on Linux and Android (aswell as configurations for running the syncthing daemon properly on Distros using OpenRC like Artix Linux)
My merch is available at
based.win/
Subscribe to me on Odysee.com
odysee.com/@AlphaNerd:8
₿💰💵💲Help Support the Channel by Donating Crypto💲💵💰₿
Monero
45F2bNHVcRzXVBsvZ5giyvKGAgm6LFhMsjUUVPTEtdgJJ5SNyxzSNUmFSBR5qCCWLpjiUjYMkmZoX9b3cChNjvxR7kvh436
Bitcoin
3MMKHXPQrGHEsmdHaAGD59FWhKFGeUsAxV
Ethereum
0xeA4DA3F9BAb091Eb86921CA6E41712438f4E5079
Litecoin
MBfrxLJMuw26hbVi2MjCVDFkkExz8rYvUF - วิทยาศาสตร์และเทคโนโลยี
If you want to show your phone's screen in a video, a convenient way might be to use scrcpy. You could share your phone's screen over ADB (USB or Wi-Fi) to your PC.
@@mohammadiaawe are literally watching nerd shit
rust desk
@@mohammadiaawere all nerds here anyway lol
@@mohammadiaa my brother in Christ this is a tech channel
@@greenspaceman531 yea haha
It's important to highlight that by default, it really means sync. If you delete on one computer, it gets deleted on the other. It's not like Google Drive and stuff, it really is peer-to-peer.
You have the option to have the client read in or write out only, set per each shared folder.
You also have the option to configure versioning, simplest is trash can versioning, thus you can recover files for a certain amount of time. Best is complex version management, so that it preserves older versions of your files for a certain amount of days.
@@_modiX can you do that with a phone to move your data to a new one?
@@fromtheotherside1980 It's not designed to sync app data, but I sync my personal files on multiple phones. Even iOS is supported, although it's limited to an isolated folder in such case. So it depends on your definition of data. You cannot use it to make a replica of your phone in terms of apps and settings.
@@_modiX i want to move the things that i have inside (photos, contacts)
In all seriousness though, syncthing is amazing. I've used it for years.
Same, love syncthing! Been using it for years, next to other things, also to back up my photos and data from my Android phone onto my Linux desktop and NAS, works great!
@@binladen-ci7jmYou're not going to elaborate, are you
Listen mister @binladen-ci7jm, I don't understand what is that you find "completely unnecessary" in @DonnieX6 behavior.
It works great until it doesn't and you have to figure why do two devices do not connect to each other.
@@binladen-ci7jm Bug off glowie.
Just finished setting up a Raspberry Pi hooked up to 4 HDDs to act as a storage server
This video couldn't have come out at a better time
raspberry pi always crush my file system
@@realcartoongirlSkill issue
i feel stupied :( @@DonVigaDeFierro
how did you manage to power 4 HDDs through a raspberry pi?
@@ahmadshami5847 external power supply or a board that powers them
Enabling file versioning is super useful in case anything goes wrong and also acts as a semi backup solution.
@@tkenbenplease elaborate, genuinely interested and I don't have the understanding you do
@@ultra568jinxdo not use git as a file storage solution.
@@ultra568jinx So, if you use git, you can version a folder and its subfolders, but you don't want to sync the git information which is almost always stored in a "hidden" dot folder (one starting with a period). Git information is usually tons of small files that will allow you to restore to any previous commit. So, I do both, I store commits with git and every once in a while I do a tarball that does not include the dot files. But what I sync is only the current data files, not the git files (dot files) or tarballs. This is probably overkill for most people.
@@tkenbenI’m also interested in what you mean.
@@tkenbenhopping on the "please explain!" wagon here
Syncthing is really amazing. Started using it to sync my KeePassXC password database between pc, tablet and phone. Then set it up to sync my school work between pc and tablet only. And then some media between pc and home server. The control is just so convenient
>Started using it to sync my KeePassXC password database between pc
I do that as well! Let me ask you a question, does the sync takes a while or is it just immediately, like in Kenny's video?
What kind of notetaking app do u use on ur tablet?
@@sairos40571 hour to sync
Syncthing can in fact sync across subnets (which includes the wider internet) by default, without needing any sort of publicly visible central server. It uses global discovery servers to get the peers' addresses, so the data transfer itself is still P2P.
I use it regularly to share sensitive files within my family, who are all busy people travelling around the country (and sometimes abroad too) with our laptops. It just works.
Edit: s/STUN server/global discovery server/
I'm still trying to figure out how to get that working.
@@joshua_lee732For any incoming P2P traffic to succeed, you need to setup port forwarding (or ask your ISP to set that up for you over the phone if you don't have access to your Internet-facing router's settings), and also setup your PC's firewall to allow it.
@@joshua_lee732 it should just work out of the box. Maybe there's something wrong with your particular router/firewall setup, but I cannot say for sure.
Can it encrypt traffic end to end?
@@jchoneandonlyI just use it with tailscale. All the problems related to networking is just handled by tailscale.
I have been using Syncthing for a few months because that was the only way to keep my org-roam notes synchronized across my PCs, tablets and phones.
Its really great.
Also works great with Logseq.
Been using Synchthing for a good while now.
I even set it up for my parents, relatives and GF.
The funniest part is having them trying to explain what it is to other people when they say they don't use cloud services (at least for personal usage)
HA HA HA SO FUNNY 😂 💀
@@realcartoongirl ?
Do you live in a dystopian future or something, literally nobody gives a single crap if you use the cloud or not, and they definitely wouldn't be surprised if told them you didn't use them.
crickets @@falciexd
Syncthing + Obsidian is a game-breaking combo. I still wait for Logseq to git gud so I can switch to it instead.
Once you figure out how it works it is a powerful tool. No more limits and no more nosy corpos.
Tip: Enable recycle bin in your shares, else when you delete X file it'll be gone on all linked devices and it's too late to review the deletion.
You can set directories as send and receive or send only or receive only.
I set my password manager database directory as send only on my desktop and receive only on my laptop so that the master database on the desktop can not be edited remotely
@@PaulG.xbut then you can't add new Entries while working on the laptop, right? mh.
i installed syncthing half a year ago. it was one of the options i was told, for how to sync my obsidian notes for free
it was really the perfect app
I had a lot of problems trying other programs to sync music files. Syncthing was a miracle. Thank you for this video!
This is very useful for me, I sync books and music all the time with my phone and some of my methods are relatively ghetto or annoying. So this is nice.
Syncthing has been wonderful to me. On android, I use SyncthingFork from Fdroid. Also the 3 files 2 folders thing is that it sends extra dotfiles with digest information to make sure files are matching plus revision information cause you can go back a revision too if you have your settings made that way.
Interesting, that seems a bit annoying though. Would much rather it ignore its artifacts.
Useless fact to blow your linux firends minds:
The "hidden files feature" was originally a bug in ls.
The reason stated above (annoying to see the . & .. and that the file count was always off by 2) was the reason ls was updated to hide the dot paths (back in like the 80:ies). This introduced the bug where you could change the name to start with a dot, ie making them "hidden files". THIS WAS A BUG! But users at the time saw this as a FEATURE rather than a bug, so instead of fixing the "bug" the developers of ls introduced the -a tag to INCLUDE "hidden files". (later on also the -A tag to exclude dot paths but NOT the hidden files)
Thank you for showing me new things man. I finally have some time off work, and I’m gonna spend my time installing Linux on an old laptop I have. I’m so excited to learn.
how did it go?
BASED.
've been using it for several months already. It's quite useful to backup/syncronize you data, once properly set up.
Also, there would likely be outages over here soon, so I'll be able to stay synced even with my phone's lan! 😊
Yes I have been using it on my local server and PC's for the last several years. Flawless.
I'd like to mention that there is even an android app for it. It's really handy to have all your notes and being able to append them whenever you have your phone around (so it's pretty much always for me).
what's the app name?
@@insxder It's just Syncthing in play market (or a play store? since when it's called like that? 0_0)
(I'm not that based yet to use fdroid, I'm sorry for that)
@@insxderSyncthing
Syncthing is an absolute gem. It's so configurable and I use it for a pretty wide variety of roles in my lab and in my personal life.
I've used Syncthing for years. I run it on my Pixel phone too so I always have my files available on practically any computer.
Is that Rudeus?
@@Skynightburst The one and only
I'm using synthing over tailscale network for a while and its really amazing. I'm syncing everything with my NAS server, and all files I need are avaliable for me on all my devices.
If you have tailscale, you can also create your own discovery server for more privacy
@@autohmae I know, its called headscale. I have entire docker compose for that even with integrated webui
@@demanuDJ I meant, if you aren't using Syncthing with your own discovery server, it's still connecting to other places outside of your tailscale network to know know how to connect to each other.
Did you get syncthing to work with tailscale with only local discovery enabled? Didn't work for me, I still had to enable global discovery to get it to work.
I'm adding id and addresses manualy, first is my lan address, second my tailscale address
massive thanks for bringing all these awesome pieces of software into the public eye, I've spent too many hours leaving things completely unorganized on my windows pc since I always had to reinstall it every couple of years. With this there's a reason to keep things organized and away from the tech giants. please keep recommending the likes of these :)
I started to use syncthing today, and it can even make changes to files. This is so convinient for music files, since i can manage them from my pc and enjoy neatly lyrics, album etc. Just hopped in to say Thank you so much
This is AMAZING! I've been looking for something like this to easily my photos between my phone and computer. It's been a challenge to find something that can run over Windows! I hope I can figure out the setup process 😅
already doing something before mental outlaw says it's based is like the "ya did good kid" of online privacy
Great tool, been using it for 4 years !
Seen this in the Learn Linux TV channel, 3 years ago. That guy is just amazing, and a real teacher
I have been looking into setting up syncthing for a long while, this sold me!
Syncthing is awesome . I have been using it fore more than 2 years and I can't live without it .
I've been waiting for a video like this. Really need the personal cloud video next.
Thanks, have been using Syncthing for years, just installed syncthingtray and it's a nice upgrade.
I was literally just syncing about this!! Thanks for sharing!
I 💜dad jokes!
Ayyyy I found this just a week before you posted. Glad to know I can be based all on my own
I am looking forward to the "cloud" sync video! I had the idea for awhile but am afraid to get into configuring servers... that sounds like a good first step!
Kenny why are you so awesome? I learn so much on this channel, man.
been using this for a couple years on arch, great tool. sometimes spikes the cpu usage but other than that works flawlessly.
I've been using syncthing pretty much since it was first created. Easily my favorite solution for making it feel like I'm only using 1 computer despite having a laptop and desktop. The only annoying part was needing to have syncthing active on both computers at the same time but that was easily solved by adding a third computer (server) that was always on.
More recently however I haven't been bouncing around from my desktop to laptop that much and it was getting a bit annoying making sure syncthing's up to date and functioning properly so I haven't been using it in a while.
Been using it for a while. It's amazing.
it's not p2p per say, it's a decentralized relay node network registered with a tracker server. all of these parts can be run privately. all data is sent by clients encrypted, relayed by nodes.
regardless awesome tool and awesome video.
Perfect timing, I was getting set up and tinkering with syncthing just the other to sync my Zettlr and Markor
Wow, thank you so much! I had been using Trayzor for ages and had no idea there was a fork.
Synching is the greatest, switched to it to sync my keepass files between devices and then ended up using it for all kinds of backing up 😅😊
Been using it for years to sync my password manager between my phone and desktop whenever I've been away for a bit, as well as some other phone stuff. Very handy tool
I discovered Syncthing a couple months ago and I love it. It's great for syncing up emulation saves :D
thats exactly what i use it for too :)
Sweet, a video right when I was thinking about getting into hosting my own stuff
I've been using syncthing since a while now and it's great. I share my password database and documents over my 3 devices and backup important files to my raspberry pi, which works great as i can access the rpi remotely with just my browser.
finally, been waiting for something like this to come out for a while
syncthing been around for like a decade lmao
@@gg-gn3refinally, been waiting for someone to make this comment for awhile
its been popular for years
seems like a great way to sync my notes between devices
I use it to sync my Obsidian vault across devices
@@alex12rayis it easier for syncing obsidian vaults than GitHub?
@@alex12ray Was about to look into using it for this.
Same
@@alex12rayme too, it just works
Thanks for syncing your video to our lovely devices
Also been using syncthing for years and it has never given me a problem.
I instantly downloaded Syncthing and set it up.
I love Syncthing. It is not necessary to set it up on a public IP - it syncs data between your devices whether they are on the same LAN or not, as long as the devices are connected to the internet. I use it to securely sync my KeePass password manager between my computer and phone. Works great.
omg, this video arrived at such a perfect timing for me!
using it for a while now, works great
i have finally come here ahead of the curve lol been using syncthing for over a year especially for emulator save files from my pc to my steamdeck. I know that all of my stuff is backed up and i don't have to hassle with draggin and dropping it anywhere and i don't have to compramise convenience for privacy
This is absolutely fantastic. Please do a follow up for this video on how to configure it for a private cloud
I like using syncthing to transfer my larger game ROMs/ISOs to my steam deck. Very convenient option and quick without involving a third party
i recently started using syncthing and its been great
Yes, definitely show how to make your own cloud. More people need to do that instead of paying a third party to hold their data for them.
I mean not everyone is willing to run a home server 24/7 big or small at home nor have the storage space required. Though i can agree that imthe average joe that so happens to regularly use his laptop/desktop and stores pictures from their phones into it, maybe syncthing is a good viable option
@@WeirdDuck781 True, not everyone is willing, but they should be considering how extremely easy it is these days. You could buy a pre-built NAS for less than an expensive gaming computer costs or build one yourself from an SBC using ready-made images and just plug and play with limited entering of information, and very low amounts of skill required to put the pieces together.
Syncthing is literally what I've been looking for for years, also, I want your shirt
Syncthing is amazing, been using it for a while. I have my phone's Camera folder automatically sync to my pc amd server, and I also made a folder just called "Syncthing" in which I drop files to share between devices. No more searching for a cable just to get a pdf from the PC to my phone.
I still host my own Nextcloud for the full suite of syncing, but this is definitely a lot more lightweight.
self hosted Nextcloud is straight up a private Google Drive replacement and then some
Just learned about the CIA triad in THM 2 weeks ago!
Also syncthing is great I use it to backup my phone when its on LAN and charging.
Yes, I've found it last week and it works great, rsync on windows for some reason couldn't connect to the remote (tried everything) and wsl2 slowed my computer, so I decided to disable virtualization
excellent video, I was on the fence to whether to use it, or keep uploading shit to my google drive to share between the pc and the phone.
ty so much for ur work!
the theme u got looks fireeee
Another syncthing use case scenario is syncing game mods between players in a multiplayer game.
For an example Factorio, all they have to do is sign up to the share in syncthing, either directly to their Factorio mods folder or somewhere else if they prefer, then that folder always has the correct mods and versions.
No more hunting and making sure they got the right ones downloaded anymore.
I had that on my synology NAS ages ago. great tool.
I hope we get back to more tutorials here more often
I'm using syncthing to share anything I'm working on between my local NAS, laptop and PC.
Works great and never had to think about it other than re setting it up if I have to replace my OS... but that goes for anything else too.
Work on stuff on laptop, as I arrive home stuff syncs and I basically have it immediately on my PC + a backup on the NAS.
Thank you for this video. It is very helpful.
Yes yes yes I love syncthing I use it on all my devices to sync my kbdx file and my music. I even have it set up on my mom's devices and it still hasn't broken.
I love Syncthing. I use it at work, to be sure the data I work on is not put anywhere into the cloud.
Syncthing is great - I sync files between between my phone, laptop, desktop, and server and it works great.
I just started to use it yesterday pretty good for now
based program been using it to send files from my pc to a steam deck. Works great and seamless
"If you know you know" loved the CIA bit in the beginning, immediately subscribed!
Syncthing has some necessary security configs in order to be safe. The XML in your home directory for the Syncthing GUI stores passwords in plain text and it's just really not secure without certificates (I think it does mTLS). I guess it shouldn't really be the main user running it either.
Also, when syncthing wakes up, it can crash the Guix Linux kernel if you don't specify less cores than max -- max cores is a terrible default. Basically, something like directory full of git projects will will spin up more threads than the kernel can handle, apparently resulting in the kernel being unable to control it. This was happening randomly for me on multiple computers with Guix installed, but reducing it to maxthreads/2 helped.
It's overall a great product, but there are a few other traps. You can accidentally delete files -- syncs should be frequent and i think you need to pay attention to the direction of the syncing (read/write/etc). You could end up having your file backups maliciously overwritten. Easy to setup, but you have to really read the docs.
@@DavidConnerCodeaholic You can enable versioning to help prevent deletes
@@autohmae yes which I did, I’m mainly saying that it’s a bit too easy to set up and definitely requires config.
@@autohmae but you also should consider the filesystem it’s running on. If BTRFS is also set up with snapshots (with synchthing), you can end up using much more disk than you otherwise would.
@@DavidConnerCodeaholic yeah, I can see that happening
Excellent video 👍 Thank you 💜
I use it to sync emulator game saves across devices. It's a pickup and go experience where I can start playing on my laptop to then pickup from my last save on my desktop.
Great video!
I like it, it would cool to see iCloud use this method. imagine it would be cheaper on Apple and a little more secure than having to use third-party servers.
perfect i needed this
˘
you think you can hide huh, ima waiting for the paper
@@tomatcreethanks, tomatcree
Dude 30 seconds in and this one coming in HOT 😂
I also use it as a way to reach my seeding server. I have syncthing on everything and when I see a cool torrent on my phone, maybe a linux iso, i put it in my phones folder and the torrent client can start torrenting automatically from a folder
Thanks. Will be implementing this on my Unraid
if i already have my own homelab server running anyway, are there advantages of syncthing over nextcloud?
I love it and have it on my home lab, BUT by default it uses a Syncthing server for discovery. that means that you get ur data sent (encrypted) through their servers by default unless you disable it and use your DNS/IP directly for discovery if you have clients outside of your local network.
Disable the discovery service, use ur own direct connection and it will be faster and more private. I love syncthing.
^^^ THIS!!!
Also, not a bad idea to setup your own vpn server you connect through from the internet.
I don't actually use this, but I suspect you need to open ports for this to work, but with a vpn, you go throught the vpn ports to gain access to your LAN, no need to open more ports.
Discovery servers usually only facilitate connection between peers (ie when behind nat). The data is still sent peer to peer and end to end encrypted.
@@MikeKrasnenkov And you know this how? Do you have access to the source code?
The second you put your trust in another persons server you are in a "trust me bro" situation.
I DO NOT SAY the devs of this software is not to be trusted, I am simply saying that if you want to bypass that step and not have to wonder, the solution is tp use a private vpn.
@@marcusjohansson668syncthing is open source so yes, I do have access to the source code
@@marcusjohansson668 regarding trust me bro bit - you can use untrusted storage safely with proper encryption scheme. Your POV is a bit absolutist - eventually you are trusting third party at some point, unless you can declare that you fully designed and manufactured your own hardware and software stack on your own.
I would like to say this. Ive been using a server with some added storage and just using sshfs and then adding that to my fstab. Pretty much like google drive and really easy to setup
This looks amazing thanks
Syncthing is my private Google Photos.
Looking forward for the Syncthing over public ip video!
The one feature I wish Syncthing had is to follow Symlinks. That way I could point all my windows apps AppData or other config folder to a single folder with Symlinks, then sync that one folder for when I need to reinstall windows or something.
As an Artix user, Syncthing works perfectly fine out of the box on runit
syncthing is written in Go and thus 1 executable that works on virtually every platform. Of course it works on artix..
Thank you Lord Outlaw ❤
I use this with my main desktop and laptop to sync dwarf fortress and cdda save files. Pretty darn good
God damn. I just started using his like few days ago and now this video got recommended to me, lol.
Great for syncing your keypass database with all your devices.
i really like having it for my keepass database.
I have been using Resilio for this purpose for years, works just like Syncthing it seems. Just an alternative