rsync: files copied with hidden attribute

I run a backup from Windows 7 machine to Mac machine running Mountain Lion using rsync that is packaged in DeltaCopy application. I can't use DeltaCopy interface because the destination is a mapped drive (Mac's samba drive).

So here is my setup: I have a folder in Mac that is the destination folder and I share this folder via Samba share. On windows machine, I map this samba share to a drive (let's say M:/)

I run rsync:

rsync -arv --delete "/cygdrive/C//origin/" "/cygdrive/M//mybackup/"

it runs fine except that all files on the destination are hidden. Anyone has an idea on what's happening here? I really appreciate any feedback. Thank you.

2 Answers

RSYNC does create a temp file, by default in the target directory and named .<FILE_NAME>.<RANDOM_STRING>. After copy file has renamed to original name.

After created file with . at the beginning of name, OS add HIDDEN-attribute for them. Then RSYNC renamed it , but HIDDEN-attribute saved.

To disable temporary-file creation use --inplace parameter for rsync

1

I seem to remember a bug in afp, I switched the target machines sharing type from AFP to SMB and it solved this issue.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like