SYNCING FILES:

Having all your files on different devices getting synced weather being on your mobile device, desktop computer and file server, even your home computer or server without the hussle of manual updating of existing files. This is done by installing Syncthing:

curl -s https://syncthing.net/release-key.txt | sudo apt-key add - && echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list && sudo apt update && sudo apt install syncthing && syncthing

This will automate installation... Until you see:

[Z24PT] 16:34:52 INFO: Joined relay relay://77.70.78.148:22067

sudo nano ~/.config/syncthing/config.xml

Look for:

<gui enabled="true" tls="false">

<address>127.0.0.1:8384</address>

<apikey>xu2Y-Ian-jVkADUWCPZxgVfBd0mQ7TDX</apikey>

</gui>

and change the “127.0.0.1” to “0.0.0.0”.

sudo wget https://raw.githubusercontent.com/syncthing/syncthing/main/etc/linux-systemd/system/syncthing%40.service \

At the arrow prompt enter:


-O /etc/systemd/user/syncthing@.service

And finally:


sudo systemctl enable syncthing@pi.service

sudo reboot

Access the GUI with:

http://ip-of-your-raspberry-pi:8384


source: https://www.thedigitalpictureframe.com/using-syncthing-to-synchronize-files-between-your-raspberry-pi-and-your-mac-pc-linux-computers/