How do I setup unison to sync a folder one way

Posted by Rob on Server Fault See other posts from Server Fault or by Rob
Published on 2012-08-31T07:09:07Z Indexed on 2012/08/31 9:40 UTC
Read the original article Hit count: 316

Filed under:
|
|
|
|

I have a 1tb NAS that has a 1tb usb external hard attached

I have prepared the file system on the usb disk and mounted it

I want to 100% sync my data from my nas to the usb disk - but I want it to be incremental and only have the NAS as the 'master' - eg if a file changes on the usb external hard drive I want it to ignore this change as its not the live version (not that I think the files will change on the usb disk but im paranoid the live could get overwritten)

Also if a file gets deleted on live I want to retain the deleted file on the usb disk

Can unison sync one-way and achive the above for me? if so with simply

unison sorce/ target/ 

Work?

Thanks Rob

© Server Fault or respective owner

Related posts about linux

Related posts about debian