# Syncthing Peer to Peer file syncing
A way to sync folders between computers.
Computers don't need to be directly connected to sync.
## No need to be directly connected?
1. Computers are defined by crytographic ids
2. Folders to be synced are referenced with this ids
3. You can sync files in between more than two instances
4. If an instance you trust is carrying a previously synced folder from another instance you trust, you can sync them too
# file syncing? Isn't that backup?
It makes an exact copy, so it doesn't save you from yourself.
If you erase a file in one device, it will eventually dissapear from all.
You can tune this although...
1. each computer runs an instance
2. whenever they are connected
3. they sync: check what changed, and exchange that
# How do they connect
## Over any local network
Instances find each other, no manual task needed.
If they are in the same (wifi) network, they will sync.
## Over the internet directly
If one of them is a server, another instance can connect directly
## Over the internet through relays
There is a network of computers (relays) that helps instances to connect.
# What do they sync
1. you define resources to be synced
# Devices I have it running
- my phone, using [Syncthing-fork](https://f-droid.org/es/packages/com.github.catfriend1.syncthingandroid/)
- my partner's phone
- My personal computer
- Home server: A single board computer running 24/7 at home
## Notes: Obsidian
They are synced in between my phone, my personal computer and a small server at home.
## Passwords: KeePassXC
The program is running in my phone and in my personal computer.
It also backups to my Home server.
Both of our phones share the phone photo folder, and they only sync with the Home server, so we have a second copy. We can safely remove photos from our phones to make space for new ones.
**This deals with phone theft.**
Workflow for post-processing them is still in the works, and it doesn't contemplate the camera I have.
Have it synced between computer, phone and Home server.
I started using hledger to keep my books.
I input my expenses using [cone](https://f-droid.org/es/packages/info.tangential.cone/) on my mobile phone.
!(https://i.imgur.com/Rqv2SZs.png =250x) !(https://i.imgur.com/6kSrTRF.png =250x)
I then do conciliations and further inputs in my computer, directly on the file or using hledger-ui.
## GPS Tracks
I've been recording my RV trips using [Trackbook](https://f-droid.org/es/packages/org.y20k.trackbook/).
I keep a copy of this in my Home server.
Anything that uses files as a storage mechanism can be synced using Syncthing:
- passing files between phone and computer (no sending over telegram anymore)
Syncthing context overview
These are links I've found useful through my journey into synthing:
- [A simple delay tolerant offline capable mesh network with syncthing, optional nncp](https://changelog.complete.org/archives/10219-a-simple-delay-tolerant-offline-capable-mesh-network-with-syncthing-optional-nncp)
- [Syncing contacts and calendars](https://forum.syncthing.net/t/using-syncthing-to-sync-contacts-and-calendar/6894/2)
- [Personal Cloud Storage with Syncthing and a Tiny Raspberry Pi Zero W Computer](https://dynamicsubspace.net/2020/05/27/personal-cloud-storage-with-syncthing-and-a-tiny-raspberry-pi-zero-w-computer/)