3

Skip the Cloud and Sync Your Files Anywhere With SyncThing

 2 years ago
source link: https://www.makeuseof.com/skip-cloud-sync-anywhere-syncthing/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Skip the Cloud and Sync Your Files Anywhere With SyncThing

By Odysseas Kourafalos

Published 6 hours ago

Do you want to share files between devices, keep them synced up, and avoid using cloud services to do the job? SyncThing has your back.

Countless modern cloud services enable access to your files everywhere. However, they share a catch: you're giving access to your files to a third party. Thankfully, there are other ways to achieve the same goal. One of the best is SyncThing.

With SyncThing, you remain in control of your data. You can be the single person with access to your files or share them with others. You can share a single folder between your PC and smartphone or create a complex sharing setup in a multi-device network. And did we mention it's open-source and free?

So, let's see how you can use it to share your data between your own devices, with no third parties peeking over your shoulder.

How to Skip the Cloud With SyncThing

If you're a fan of Apple's devices, we saw in the past how you can use AirDrop to transfer files from an iPhone to a Mac. If you're in a multi-device household and need to access the same data from Windows, Macs, iOS devices, or even gaming consoles, you could set up a network shared folder on Ubuntu with Samba.

However, although such solutions allow you to access files on a device from another, they don't sync them. For that, you have to use something like Dropbox or Google Drive.

The problem with such cloud services, though, is that they rely on third-party servers. That's slower and more unreliable than a direct connection among your devices, and also means you're giving access to your data to a third party. SyncThing can be the solution to those problems.

SyncThing is available on most OSes, from Windows and Linux to FreeBSD. You can also find both official and unofficial versions on Android and iOS. So, you can probably share data between all your devices.

However, the increased screen space means it's better to initially set up SyncThing on your computer instead of your smartphone. You'll have quicker and easier access to its options this way - but it is possible to go the other way, as well. For this guide, we'll use SyncThing on a Windows 10 PC and an Android smartphone.

SyncThing offers a native Windows version, but it only comes with a web interface. For a more familiar "desktop-app experience", it's suggested you go for a forked version with a built-in GUI, like SyncTrayzor. Although it's not the official app, you can download it too from SyncThing's site.

Run the downloaded executable and install SyncThing on your PC. If asked, remember to grant it firewall access, or it won't be able to connect to the rest of your devices.

SyncTrayzor won't work if you don't grant it access through your firewall

During SyncTrayzor's first run, security-conscious users might want to deny sending anonymous usage reports.

Although harmless, you might wantt to disable SyncTrayzor's usage reporting

With the core "sharing engine" in place, the next step is defining what should be shared.

Sharing Folders on PC

SyncTrayzor will already have a Default Folder set up, but it won't be shared right now. We'll skip it to see how you can set up and share any folder from scratch.

With SyncTrayzor's interface active, click on the Add Folder button under the default folder in the Folders section, on the left.

SyncTrayzor's interface is relatively straightforward, but initially looks convoluted

While in the General tab of the new dialog that shows up, enter a name for your shared folder in the Folder Label field. Then, enter the full path to the folder in Folder Path.

The process for adding a folder on all SyncThing-compatible clients, like SyncTrayzor, is virtually the same

Move to the File Versioning tab and change No File Versioning to Simple File Versioning, equivalent to simple backup functionality. We won't cover how it works, but the gist is that it allows you to revert any file to its past incarnations.

File Versioning allows you to access past versions of your files

After enabling a file versioning approach, the section expands with related options. The defaults are okay for Simple File Versioning. Still, you might want to change the number of past file versions you'd like to have available under Keep Versions.

You can choose how many past versions of files you wish to keep

Pay a visit to the Advanced tab and ensure Watch for Changes is enabled. Set the Folder Type to Send & Receive for bidirectional exchange of data. You can also change from the File Pull Order menu how the app prioritizes which files to transfer first. For example, by setting it to Newest First, you'll have access to your latest files before the folder they're in is fully synchronized.

By changing SyncThing's Pull Order you can choose how choose which files will be synced first - newer, older, random selection, etc.

Finally, click on the Save button on the bottom right of the dialog to create your shared folder.

You can click or tap on a shared folder to expand it and check its details

SyncThing on Your Smartphone

For Windows and most casual users, it's better to use SyncThing's SyncTrayzor fork. It's a similar story on Android, where Syncthing-Fork offers more features and is somewhat easier to use than the official version. Thus, we'll go with that for this guide.

The official SyncThing client is available on Android, but Syncthing-Fork is easier and comes with more features

Install Syncthing-Fork on your Android device and run it. It will already have registered your smartphone's default photo folder as one you can potentially share. You'll also see an extra "Obsidian Vaults" folder in our screenshots, where you can keep notes—feel free to ignore it.

Unfortunately, Syncthing-Fork's interface is quite complicated, since it crams the full desktop experience in a smaller screen

Move to the DEVICES tab and tap on the button at the top right of the screen to add a new device.

Theoretically, to add a device to Syncthing-Fork, you must manually type its quite long ID. Practically there's an easier way to do it, thanks to your smartphone's camera.

Return to your PC and choose Show ID from the Actions menu at the top right of SyncTrayzor's interface.

Instead of copying your desktop client's long ID to your smartphone, Choose Show ID from the Actions menu on the top right.

A QR code with your PC's ID will appear on your screen.

SyncTrayzor will show its ID on your screen as a QR code.

Turn your attention to your smartphone, and note how the first field in the Add Device page is empty and has a small icon with a QR code next to it. Tap on that icon and point your smartphone's camera to the QR code on your PC's screen to read its ID. When done, tap on the checkmark on the top right of your Android smartphone's screen. This will link your PC and your smartphone and allow sharing folders between them.

Tap on the little QR icon in Syncthing-Fork and point your smartphone's camera at your PC's monitor for painless pairing.

SyncTrayzor will ask you if you want to allow the device "pinging it" to connect. Click on Add Device to create a SyncThing connection between it and your PC.

Answer positively when you're asked on the desktop side of things if you want to accept your smartphone's incoming connection.

You can skip the manual setup of your folders if, while adding your smartphone to SyncThing, you move to the Sharing tab. You'll see a list of the folders you've "registered" in SyncThing that aren't shared yet with this particular device. Place a checkmark next to the ones you'd like to share. In our case, it was a single folder named "Takeaway".

You can immediately share a folder between devices while pairing them.

Back on the Android side of things, Syncthing-Fork might not immediately detect or show your newly shared folder. Tap on its menu button on the top left of the screen and choose Web GUI. This will open the actual SyncThing web interface in your smartphone's default browser.

To access Syncthing-Fork's menu, slide your finger from the left of your smartphone's screen.

The first thing you'll see there is a prompt at the very top about a new folder. Tap on Add to do so.

Pay a visit to Syncthing-Fork's Web GUI to easily add a shared folder.

Go through the available options and ensure they match the settings for the folder on your PC.

Syncthing-Fork on your smartphone offers the same options as the desktop client.

Your devices will start syncing almost immediately after linking them and sharing a folder between them. You can click or tap on your shared folder to "unfold" it and see its details and syncing status.

Check your shared folders to see their sync status.

On your Android smartphone, newly shared folders are stored by default in the root folder of your device's internal storage. You can access them with any file manager.

By default, Syncthing-Fork stores shared folder in your smartphone's storage root folder.

As a next step, for an even more unified experience, maybe it would also be worth checking our guide on how to sync the clipboard across Android and PC.

Files Everywhere, Without the Cloud

You can add even more devices to the mix, for example, sharing one folder between your laptop and PC, and also sync a second one with your smartphone. Or, maybe, you'd want to have a bidirectional connection between two smartphones, sharing all photos between them, but only "push" those photos to a laptop. SyncThing allows you to control where and how you're sharing your data.

The price to pay is that by skipping cloud servers, your devices have to occasionally connect directly, having access to the same local network to facilitate data exchange. However, that's not a significant problem: turn them on with SyncThing active for at least 5 minutes at home, and you should be set.

It is much better than having a file hosting provider ask you to change your password because someone gained access to its servers (and your data). Again.

Still, you should keep in mind that syncing is not the answer to everything. If you lose your smartphone before you sync your files with your PC, you'll also lose some of your precious files. Even with syncing properly working among your devices, you should also always keep backups of all your important data. You never know when you might need them.

About The Author

60ddaa53b5ee5-0.jpg?fit=crop&w=100&h=100

Odysseas Kourafalos (10 Articles Published)

OK's real life started at around 10, when he got his first computer - a Commodore 128. Since then, he's been melting keycaps by typing 24/7, trying to spread The Word Of Tech to anyone interested enough to listen. Or, rather, read.

More From Odysseas Kourafalos

Subscribe to our newsletter

Join our newsletter for tech tips, reviews, free ebooks, and exclusive deals!

Click here to subscribe

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK