Sync with Project Drive and SURFDrive with Unison
Background
From Unison website: “Unison is a file-synchronization tool for OSX, Unix, and Windows. It allows two replicas of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica to the other.”
What this documentation will help achieve
This documentation will help you create bi-directional backups between your local machine and a server (such as TU Delft project drive). Sync profiles can be customized so that, for example, shared folders on SurfDrive can be automatically synced with directories in the WebDAV links for TU Delft Staff and Students.
Prerequisites
Tools/Software
- Unison
- GTK+ for Windows
- Desktop client for SURFDrive
Steps for Windows
- Unison requires .dll’s from GTK+ for Windows Runtime Environment. Download it and install it (to C:Files (x86)-Runtime).
- Install Unison 2.48.4 and extract it in a folder.
- Download desktop client for SurfDrive
- If not already there, mount H: Drive or Project Drive folder in your local machine from WebDAV link https://webdata.tudelft.nl/
- Navigate to Unison folder via command prompt and then enter “unison 2.48.4 GTK.exe” to run the Unison GUI.
- The GUI starts & asks you to set a Profile for your file syncing. The Profile Creation Wizard guides you through this. For the Synchronization kind choose Local. Set the First directory to your local SurfDrive and Second directory, to WebDAV folder.
- By pressing the Go button on the top menu, Unison start synchronizing both specified directories.
Steps for Mac (beta)
These steps should theoretically be feasible, but there is an issue with the configuration of mounted TU Delft drives and them disconnecting which interrupts automated backup and read/write access. We are working on this with TU Delft ICT.
- Install Unison
- Download desktop client for SurfDrive
- Mount H: drive or Project Drive folder in your local machine using these directions
- Choose folders for sync from local machine or Surfdrive to WebDAV folder