<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">H</span>ello,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">In order to use Unison to backup local folders to the I drive, please try the following steps.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">- Download Unison from:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><a href="http://unison-binaries.inria.fr/">http://unison-binaries.inria.fr/</a><o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Windows&nbsp; - <a href="http://unison-binaries.inria.fr/files/Unison-2.40.102.zip">
http://unison-binaries.inria.fr/files/Unison-2.40.102.zip</a><o:p></o:p></p>
<p class="MsoNormal">Mac - <a href="http://unison-binaries.inria.fr/files/Unison-OS-X-2.48.15.zip">
http://unison-binaries.inria.fr/files/Unison-OS-X-2.48.15.zip</a><o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">The Windows install will also need a GTK library installed. The following works for me:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><a href="https://sourceforge.net/projects/gtk-win/">https://sourceforge.net/projects/gtk-win/</a><o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">- Run the graphical version of the program (Unison-2.40.102 Gtk&#43;.exe) and set up a profile.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">First give it a name, preferably with no spaces<o:p></o:p></p>
<p class="MsoNormal">It&#8217;s a local synchronisation<o:p></o:p></p>
<p class="MsoNormal">Choose the local directory first, and the I drive analogue second &#8211; I find selecting the Other &#8230; option at the bottom quickest to get the drive listing<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">The resulting profile is written as a text file to your user folder within .unison<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">When you open the profile it tries to synchronise the folders. The first time, it displays a warning. The first synch will take some time.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Unison makes suggestions as to what it thinks needs to happen &#8211; if you agree, press Go to start the synchronisation.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">You can run this synchronisation manually, and manage any conflicts that way &#8211; that works well for many users.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">- To automate the backup, we need to use the text version of the program.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Create a batch file, Backup_Documents.bat for example, with the following:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">&quot;<i>Path-to-app</i>\Unison-2.40.102 Text.exe&quot; <i>Name-of-profile</i> -batch<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Try running it from a command prompt.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Use the Task Scheduler from Administrative Tools, choose Create Basic Task, name it, choose weekly, select the days, and choose the batch file.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">- More advanced usage<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">You can edit the profile text file. A few features that may be useful:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">- path allows you to choose files or directories within the root folder that you want to backup, rather than all of the subfolders<o:p></o:p></p>
<p class="MsoNormal">- ignore allows you to ignore a folder, subfolder or file<o:p></o:p></p>
<p class="MsoNormal">- There are various backup features that make Unison version key files as they are overwritten &#8211; this isn&#8217;t strictly necessary on the I drive, as it has a way to recover the last few versions with a right-click on the file, but just so
 you know, particularly if files are changing more than once a day.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"># Unison preferences<o:p></o:p></p>
<p class="MsoNormal">label = D Drive Documents<o:p></o:p></p>
<p class="MsoNormal">root = D:\Documents<o:p></o:p></p>
<p class="MsoNormal">root = I:\Science\Physics\Timothy\Documents<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">path = Personal<o:p></o:p></p>
<p class="MsoNormal">path = Personal/very_important_document.doc<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">ignore = Path Personal/Music<o:p></o:p></p>
<p class="MsoNormal">ignore = Name Thumbs.db<o:p></o:p></p>
<p class="MsoNormal">ignore = Name Desktop.ini<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"># Helps out a lot on Windows<o:p></o:p></p>
<p class="MsoNormal">fastcheck = true<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"># place new files at the top of the list<o:p></o:p></p>
<p class="MsoNormal">sortnewfirst = true<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">- For more information:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><a href="http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html">http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html</a><o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Timothy<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Timothy Briggs<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Research and Teaching Support<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Department of Physics, University of Strathclyde, John Anderson Building, 107 Rottenrow, Glasgow G4 0NG<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">Tel: 0141 548 3376&nbsp;&nbsp; Fax: 0141 552 2891&nbsp;&nbsp; Email:
</span><a href="mailto:timothy.briggs@strath.ac.uk"><span style="font-size:10.0pt">mailto:timothy.briggs@strath.ac.uk</span></a><span style="font-size:10.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">The University of Strathclyde is a charitable body, registered in Scotland, number SC015263<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>