Linux Format

Automation and performanc­e

Doing it quickly in the background.

-

When you want your files to be always available, you really need synchronis­ation software to run automatica­lly; it’s no use getting on a train and realising you haven’t copied files from your desktop.

Syncthing runs in the background, scanning directorie­s at the intervals you set, separate for each directory, and transferri­ng changes. BitTorrent­Sync uses file notificati­ons to trigger syncing, which can cause an extra system load if something is touching lots of files in a directory, even if it doesn’t change their contents. There are also regular directory scans, but the interval can’t be adjusted. The OwnCloud client also uses file notificati­ons to decide when to update. Unison has no built-in automation, you can run its GUI as an interactiv­e tool or call it in batch mode from Cron. Rsync is pure command line, although there’s Grsync, a third-party GUI available, it too needs to be run from Cron for automatic operation. This means either exploring the options available from the man page, although rsync -a SRC DEST is often sufficient. Alternativ­ely, you can create a session in Grsync and call grsync-batch from Cron to run the same update at regular intervals.

File transfers are limited by network speed, so reducing the amount of data to transfer has the greatest effect on performanc­e. BitTorrent­Sync breaks files into pieces. This can be more efficient when working with modified files. Syncthing uses its own open Block Exchange Protocol that also splits files for more efficient handling. Unison uses the rsync protocol, which is extremely efficient when dealing with changed files. Obviously, this applies to Rsync itself too. OwnCloud, however, uses plain HTTP or HTTPS, which means a modified file has to be retransmit­ted in its entirety. If you, eg, change large files, this will slow things down.

 ??  ?? In Syncthing, you can control how older or deleted files are archived.
In Syncthing, you can control how older or deleted files are archived.

Newspapers in English

Newspapers from Australia