![]() They are in no way an absolute protection against deletion, they just provide guidance to Unison about how to decide on the default action. Remember, these options can be overridden in interactive mode by the user. In batch mode, changes with default actions will accepted, changes without default action (due to conflicts) will be skipped. When you are satisfied with the default actions, you can run unison in batch mode (option -batch) using the textual UI. Working with the graphical UI is more convenient as you see all pending changes including the default actions Unison suggests. ![]() Until you have set up Unison to run in batch mode, I recommend to run Unison in interactive mode using the graphical UI. So in total you want to run Unison with these two options to satisfy your requirements: unison /src/dir /dest/dir -force /src/dir -nodeletion /dest/dir The commandline to preserve files on /dest/dir after they have been deleted from /src/dir would be unison /src/dir /dest/dir -nodeletion /dest/dir Use the option -nodeletion xxx to prevent Unison from recommending any deletion on the folder xxx as default action. The commandline to mirror, e.g., folder /src/dir to /dest/dir would be unison /src/dir /dest/dir -force /src/dir Unison will resolve all changes in favor of this folder. The force option takes the folder that is to be favored as argument. Unison has a clear and precise specification.I understand that you are having these two requirements on UnisonĪccording to the Unison manual, the -force xxx option "effectively changes Unison from a synchronizer into a mirroring utility".It is careful to leave the replicas and its own private structures in a sensible state at all times, even in case of abnormal termination or communication failures. Transfers of small updates to large files are optimized using a compression protocol similar to rsync. It is careful with network bandwidth, and runs well over slow links such as PPP connections. Unison works between any pair of machines connected to the internet, communicating over either a direct socket link or tunneling over an encrypted ssh connection.Unlike a distributed filesystem, Unison is a user-level program: there is no need to modify the kernel or to have superuser privileges on either host.Conflicting updates are detected and displayed. Updates that do not conflict are propagated automatically. Unlike simple mirroring or backup utilities, Unison can deal with updates to both replicas of a distributed directory structure.Moreover, Unison works across platforms, allowing you to synchronize a Windows laptop with a Unix server, for example. ![]() Unison runs on both Windows and many flavors of Unix (Solaris, Linux, OS X, etc.) systems.Here are some key features of "Unison File Synchronizer": ![]() Unison shares a number of features with tools such as configuration management packages(CVS, BitKeeper, PRCS, Subversion, etc.), distributed filesystems (Coda, etc.), uni-directional mirroring utilities (rsync, etc.), and other synchronizers (Intellisync, Reconcile, etc). 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. Unison is a file-synchronization tool for Unix and Windows. Unison File Synchronizer - A file-synchronization tool that allows two replicas of files to be stored on different hosts Version: 2.27.72
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |