Utilities · Part 1

Keeping Files in Step

Synchronise copies files between two places, such as a shared network folder and a folder on your own computer, so everyone in a team works from the same pictures, templates and settings. Set it up once in Settings, then run it from the Tools menu or each time Spanner starts.

What it is for

Spanner reads a lot from folders: product pictures, shape files, import files and templates, settings files. Where a team keeps the master copies in one shared place, Synchronise brings each person's own copies up to date. For example:

  • Product pictures kept on a shared drive, copied to a folder on each laptop, so they load quickly and are there when you work offline.
  • Templates and import files that one person looks after, kept the same on every computer.
  • A file you work on at two computers, kept as the latest version in both places.
This guide is for Spanner 2.5 and later. Synchronise copies files; it never merges them. If two people change the same file between runs, one of them loses their change: see What it does not do.

Setting it up

Each line of the set-up names two places and how files move between them.

  1. Open Tools › Settings and expand Synchronisation.
  2. Click the green + to add a line.
  3. In Source, put the full path of the first folder or file. In Destination, put the second.
  4. Choose the Type: the four types are below.
  5. Add as many lines as you need. The arrows move a line up or down, and the bin deletes it. Lines run in the order they are listed.
  6. Tick Synchronise On Start if Spanner should run every line each time it starts.
  7. Click the green tick to save your settings.

The Tools menu shows Synchronise once there is at least one line.

The Synchronisation section of Settings, expanded: Synchronise On Start ticked, then two lines, each with a Source on a shared S: drive, a Destination of C:\Spanner\Category A Images or C:\Spanner\Category B Images, and the Type Copy Folder. Each line has up and down arrows and a bin, and the green plus is above them
The Synchronisation section of Settings with two Copy Folder lines. A long path shows only its start in the box.

The four types

Two types work on folders and two on single files. Two copy one way only, and two copy whichever way is needed.

TypeDirectionWhat happens
Synchronise FolderBoth waysA file in one folder but not the other is copied across. Where both folders have a file and its dates differ, the newer copy replaces the older.
Copy FolderSource to destinationA file missing from the destination is copied there. Where both have a file and its dates differ, the source's copy replaces the destination's, even if the destination's is newer. The source folder is never changed.
Latest FileBoth waysSource and Destination are files. The newer replaces the older. If only one of them exists, it is copied to the other place.
Copy FileSource to destinationThe source file is copied over the destination file, every time.

Spanner decides by the date and time each file was last saved, not by what is in it. If one of a line's folders does not exist yet, Spanner creates it. The file types create the destination's folder if they need to.

Which to choose. For master files that one person looks after, such as a picture library or templates, use Copy Folder or Copy File, from the shared place to your own computer. Use Synchronise Folder where people add new files in both places but nobody edits the same file.

Paths for a whole team

A line written with your own folder, C:\Users\User Name\..., only works on your computer. To give the same lines to the whole team, start a path with one of these, and Spanner puts in each person's own folder when it runs:

Start the path withSpanner puts in
%userprofile%Your own user folder, such as C:\Users\User Name.
%localAppData%Your local application data folder, C:\Users\User Name\AppData\Local.
%myDocuments%Your Documents folder.
%user%Your Windows user name, anywhere in the path.
[Code]A path set up in Tools › Settings › Folder Path Substitutions, where each line pairs a Code with a Path. Write the code in square brackets.

Write the last four exactly as shown, capitals included; %userprofile% can be written in any case. Don't mix %userprofile% with the others: in a path that has it, the others are left as written.

For example, a line with Source \\Server\Category Team\Spanner Images, Destination %userprofile%\Spanner\Images and Type Copy Folder gives everyone their own copy of the team's pictures, in their own Spanner folder.

To hand the lines out, open Tools › Settings, click Save Settings to File, tick Synchronisation alone, and send the file. Each person adds it with Add Settings from File. Sharing Tables explains the buttons, and how a settings file can update itself for a whole team.

Running it

From the Tools menu

  1. Open Tools › Synchronise. The Synchronisation window lists your lines, each with its source on the left and its destination on the right. A double arrow marks the two-way types, and a single arrow the copies.
  2. Click Synchronise on a line to run just that line, or Synchronise All, at the bottom right, to run every line in order.
  3. While a folder is copied, its line shows a progress bar and a count of files copied. When it finishes, the line says how many files were copied, or that there was nothing to copy.

A line that could not run says why: both folders missing, a source file not found, or an error, usually a folder you are not allowed to read or write.

Each time Spanner starts

With Synchronise On Start ticked, the same window opens as Spanner starts, runs every line, and closes itself when it has finished.

The Synchronisation window with two lines, each copying a folder of product images from S:\Organisation Name\Category\Space Planning\Spanner\Product Images to C:\Spanner, one for Category A and one for Category B, each with an arrow and a Synchronise button, and Synchronise All at the bottom right
Two Copy Folder lines, bringing each category's pictures from a shared drive to this computer. Each single arrow shows a one-way copy.

What it does not do

  • Subfolders. Only the files directly in each folder are copied. Add a line for each subfolder you need.
  • Deletions. Deleting a file in one place does not delete it in the other. With Synchronise Folder, a file you delete comes back from the other folder on the next run, so delete it in both.
  • Merging. If a file is changed in both places between runs, the newer copy wins and the other change is lost.
  • Protecting a destination. Copy Folder and Copy File overwrite the destination's files. Don't edit files there: your changes go the next time the line runs.

Spanner waits while files are copied, so a large first copy, such as a whole picture library, is best run when you don't need Spanner for a while.

SharePoint and OneDrive

Tools › SharePoint - OneDrive Synchronisation is a separate tool. It keeps a folder in a SharePoint site's document library and a folder in your own OneDrive the same, working online through Microsoft 365. OneDrive then brings the files down to your computer as usual.

Most organisations now sync SharePoint libraries to their computers directly with OneDrive, and that is simpler. This tool is for where that isn't allowed. It appears on the Tools menu only once it has been set up.

Setting it up

Your IT team first registers an app for it in your Microsoft 365 tenant, with permission to read and write files and the chosen site. Then, in Tools › Settings, expand SharePoint-OneDrive Synchronisation and fill in:

SharePoint Site IDThe SharePoint site, from your IT team.
SharePoint Client IDThe app your IT team registered.
SharePoint Tenant IDYour organisation's Microsoft 365 tenant.
Auto OpenTicked, it runs each time Spanner starts.
SharePoint Path and OneDrive PathOne line for each pair of folders. Each path is the folders from the top of the site's library, or of your OneDrive, separated by \, such as Category\Spanner Images. The folders must already exist.

How it works

  • The first time it runs, Spanner opens a Microsoft sign-in page in your browser. Sign in with your work account.
  • For each line, a file in only one place is copied to the other, and where both have a file with different dates, the newer replaces the older.
  • Unlike Synchronise, it passes deletions on. Spanner keeps a note of every file it has synchronised, so a file deleted in one place since the last run is deleted from the other. If a run would delete more than 100 files, or more than half of a folder, Spanner asks first.
  • As with Synchronise, only the files directly in each folder are included.
  • Each line shows how many files are on each side, how many will be deleted and copied, and its progress. A line that fails turns pink and shows the message. The window closes itself when every line is done.

Setting Spanner up for a team?

We can help you decide where your team's pictures, templates and settings should live, and set up Spanner to keep everyone in step.

Email us Book a Demo