Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><code>rsync</code> is good to keep one location in sync with a master. Or in other terms, mirror A to B. That's not what you're doing, though. You'd have to <code>rsync</code> A to B and B to A. Which brings a whole new set of problems. If a file disappeared, do you need to delete in on the other side or rsync it back? Maybe it was modified on the other side; you can't check.</p> <p>Anyway; the solution to this problem comes in the form of <a href="http://www.cis.upenn.edu/~bcpierce/unison/" rel="noreferrer">unison</a>. That's a tool (works on Linux, OS X, Windows, BSD, ...) (has CLI tools, GUI tools, and can be scheduled nicely in <code>cron</code>) which will keep your home directory or any other directory nicely in sync, and is made to be able to deal with almost any type of conflict or problem. Those people thought it all out way better than we could here.</p> <p>Alternatively, there's SCMs. Many people use SCMs for managing their home directories. Subversion is popular for this, but I wouldn't recommend it at all. It will not only consume massive amounts of space, make everything horribly slow and force your keeping in sync on depending on an active connection to the master repository. There's alternatives, like GIT, and others, but they all have their downsides.</p> <p>Either way, any SCM-based solution violates one very big rule of SCMs: You should never keep big binary data in there. SCMs are not made for this. You don't keep your photo collections, movies, documents, downloads, and stuff like that in an SCM, even though you may want to keep them in sync or keep a history on them (especially so for pictures/documents).</p> <p>It's important to understand that there is a difference between keeping backups and keeping in sync. Your backups should be kept in a remote/detached location and can contain a history of everything you own. I personally recommend <a href="http://www.gnu.org/savannah-checkouts/non-gnu/rdiff-backup/" rel="noreferrer">rdiff-backup</a> for this. It keeps history of everything beautifully, uses the <code>rsync</code> algorithm under the hood to minimize traffic and accessing the backup location looks like the most current state of the backup: You can just browse through it like you do normal files.</p> <p>To summarize, I recommend you combine <a href="http://www.cis.upenn.edu/~bcpierce/unison/" rel="noreferrer">unison</a> and <a href="http://www.gnu.org/savannah-checkouts/non-gnu/rdiff-backup/" rel="noreferrer">rdiff-backup</a> for an all-round solution to keeping your data safe and reliably in sync.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload