![]() : changed file modified on at 19:14:52 size 9896 rw-r-r. Posts : unchanged file modified on at 18:46:23 size 9898 rw-r-r. <- changed revisiting-the-layout-and-the-blog-project/index.md : changed file modified on at 20:06:47 size 7503 rw-r-r. Posts : unchanged file modified on at 6:42:09 size 348 rw-r-r. <- changed how-to-create-a-bidirectional-file-sync-using-unison/index.en.md <- new file how-to-create-a-bidirectional-file-sync-using-unison/ia-writer-blog-posts.png : new file modified on at 19:53:38 size 49486 rw-r-r. <- new file how-to-create-a-bidirectional-file-sync-using-unison/git-status.png Posts : unchanged file modified on at 10:06:28 size 32672 rw-r-r. <- deleted how-to-create-a-bidirectional-file-sync-using-unison/25.png ignore 'Name ' \ "/Users/jpcercal/projects//content/posts" \ "/Users/jpcercal/Library/Mobile Documents/27N4MQEA55~pro~writer/Documents/" On Debian based distributions you can install it by running the following command: In order to achieve this, I decided that I wanted to sync my iCloud subfolder (the one containing all the blog posts synchronized by iA Writer) with one specific folder from the git repository. The problem I had was that I wanted to save the articles content on my iPad, but when I was on the PC I wanted to commit the file to the repository and see how would it looks like in a preview mode of the blog post locally (before sending to production). ![]() If you want to check the project out, please take a look into this post where I tell a bit more of the blog architecture and how I generate the final website through an integration with TravisCI. The problem is that all the articles from this blog are written down in Markdown files, there’s no database, but the git repository available on GitHub. Because of that I bought last year the license of iA Writer for macOS and iOS to take notes of anything and at the same time make use of the markdown syntax. The tool is completely free and the source code is available under the GNU public license.Īs I’m a big fan of automation so I wanted to write on my iPhone or iPad while out of home or even in a few moments where I can see myself with some thoughts while relaxing on the sofa. ![]() Unison runs in a user-level program, so you don’t need to have superuser privileges in order to use it.As it can propagate events on both directions unison shows up as a very useful tool for bidirectional files sync.It allows communication across different systems, like if you want to synchronize a Windows laptop with a Unix Server.It has common features being shared among other famous tools, however, there are several points where it differs, to mention a few of them: What is unison and how it can help us?Īccording to the official project unison is a file-synchronization tool for OSX (macOS), Unix, and Windows. ![]() There are different tools available to achieve it given the situation mentioned before, but we are going to talk about unison today. You want both folders to reflect exactly the same state as a replica. To simplify the understanding let’s imagine that you have two folders and you want both folders to be synchronized when an event happens such as a new file is created, a file got changed or even a file got deleted. If you don’t, then keep reading as it might clarify a few things before we get started with the how to use unison in order to create a bidirectional (two way) synchronization of two directories. If this is the case, skip the introduction please. So if you came here I consider you already have a problem to solve, and you are familiar with unison.
0 Comments
Leave a Reply. |