Setting up synchronisations

A synchronisation describes a task: what is reconciled from where to where. It is created with File → New synchronisation… and changed with Edit → Edit synchronisation… or a double click on the entry.

The quickest way is File → New synchronisation from a template…: choose the case (back up a folder, mirror it, or keep two folders the same), give source and target, done. The template sets the options that fit the case; afterwards the synchronisation can be edited like any other.

Name

The name identifies the synchronisation and must be unique. It appears in the overview, in the log and – if switched on – as the file name of the backup proof.

Type

TypeWhat is reconciled
File Exactly one file. Source and target are complete file names.
Directory All files in one directory, without its subdirectories.
Directory tree A directory with all its subdirectories. Missing target directories are created.

Source and target

Both fields take a path. The button next to each opens a chooser; for a computer at the other end of an SSH connection there is a button of its own, see Synchronising over SSH.

Next to the target there is also “Cloud…”. The button shows the folders that the programs of OneDrive, Google Drive, Dropbox, Nextcloud or iCloud have set up on this computer and opens the chooser inside the one picked. Whatever AutoFileSync copies there is uploaded to the cloud by the provider's program, which has to be installed and signed in for that.

A server that speaks WebDAV (Nextcloud, ownCloud, many NAS devices and web hosts) can also be reached without the provider's program: File → New WebDAV connection… asks for the address, user and password and checks the connection. After that the server can be chosen under Server… like an SSH connection, as source or as target. The address has to begin with https://. Servers other than Nextcloud and ownCloud do not keep the modification time of an uploaded file; with them Copy even if the target file is newer should stay switched off.

Google Drive can also be reached without Google's program: File → New Google Drive connection… opens the sign-in at Google in the browser; AutoFileSync never learns the password. After that the drive can be chosen under Server…. AutoFileSync sees only the files and folders there that it created itself: that is enough for backing up and for a folder AutoFileSync made, but files already in the drive do not appear. Whatever is deleted goes to the trash of Google Drive.

OneDrive works the same way: File → New OneDrive connection… signs in at Microsoft in the browser, with a private account or a work or school account. Unlike with Google Drive, AutoFileSync sees all files in the OneDrive here, so existing folders can be chosen as a source. Whatever is deleted goes to the recycle bin of OneDrive.

The same goes for Dropbox: File → New Dropbox connection… signs in at Dropbox in the browser; after that AutoFileSync sees all files of the Dropbox. Dropbox does not tell upper and lower case apart in names. Whatever is deleted can be restored on Dropbox's web page.

For storage services with an S3 interface (Amazon S3, Backblaze B2, Wasabi, MinIO and others) there is File → New S3 connection…. Instead of signing in in the browser you enter the endpoint, the region and the two keys the provider issues. The bucket then appears under Server… like a folder; it is created at the provider. S3 has no trash: whatever is deleted is gone, unless the provider keeps versions.

A target that does not exist yet is created on the first run. If the source is on a removable drive or a network drive that is not connected at the moment, AutoFileSync skips the synchronisation and leaves the target alone – this matters, so that an unplugged drive is never mistaken for “everything was deleted”.

Wildcard

For the types Directory and Directory tree, the Wildcard field limits which files are looked at at all, for example *.txt for text files or *.* for all of them. Files that do not match are invisible to this synchronisation: they are neither copied nor deleted, not even when deleted files are also deleted in the target.

Exclusions

The Exclusions tab holds one pattern per line, for example:

*.tmp
node_modules
Thumbs.db

Exclusions apply to copying as well as to deleting. In a directory tree, an excluded directory is not even entered – this saves time and spares checking the files inside it one by one.

The field Leave out files larger than (MB) below it passes over files above the given size – videos or disk images in a backup to the cloud, for example. 0 means no limit. Files left out are treated like excluded ones: neither copied nor deleted.

Active

A synchronisation without the Synchronisation active tick stays in the list but is not run. This way a task can be put aside for a while without losing it.

On to the options.