How to use unison to sync files in ext4 filesystem with FAT filesystem? (permission bit)

0

My machine is linux ext4. I have an external hard drive with FAT. I can syn most of the files without any problem. However, there is always a few files having permission problems.

I tried to use unison -fat to specify the sync policy. However, unison does not seem to take my command. Here is what I tried:

My profile.pcf specify the path: (from home to media)

root = /home/rex/rex
root = /media/portable/rex

Then I type this:

unison work -fat perm=0

In both of the commands, unison treats work as a directory rather than a profile. Please give some hints.

Thank you!

drdot

Posted 2013-03-30T12:50:18.877

Reputation: 105

Answers

2

To be able to use a profile work you must create a file ~/.unison/work.prf. According to the documentation you just have to add a line fat = true to the profile in order to make synchronization with FAT file systems work.

Ansgar Wiechers

Posted 2013-03-30T12:50:18.877

Reputation: 4 860

Yes. The profile is there. Command "unison work" works fine. But I dont know how to add -fat policy. – None – 2013-03-30T14:45:13.193

If I read the documentation correctly, all you need to do is add a line fat = true to the profile.

– Ansgar Wiechers – 2013-03-30T19:57:35.393

Yes. This solves the problem. Could you please add this line to the answer? – drdot – 2013-03-31T18:59:02.777