Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an "A" HDD (1,5TB) next to me (on a netbook running OpenBSD 5.1, it's a fileserver)

And I have a "B" HDD (1,5TB) 200km's away from me on an OpenWrt 10.04 router (also "fileserver").

I always put files on the netbook next to me. I need to sync this local storage (on the OpenBSD netbook) with the B storage 200 km's away with max 30 KByte/sec speed. I found a solution for this via google :)

sync files recursively between two folders where files are less than 24 hours old
Question: How can I configure that, when I sync to the "B" storage that they will not see these "half-uploaded" files? So I'm searching for a solution like: "If file is not fully copied from A to B, then put a dot before it's name, so they will not see as it is a hidden file.. if the upload finishes to a file, then after that the dot must be removed from their name, so that they can see it.."

share|improve this question
rsync's default behaviour is exactly that. It uses a separate, hidden file while transferring. After the transfer is done, the hidden file replaces the target file. You can defeat this behaviour using --in-place, but I'd class that as a Bad Idea in average use cases. – Alexios Jun 10 '12 at 10:32
up vote 2 down vote accepted

This is the default behaviour when using rsync. From man rsync:

          This  option  changes  how  rsync transfers a file when its data
          needs to be updated: instead of the default method of creating a
          new  copy  of  the file and moving it into place when it is com-
          plete, rsync instead writes the updated  data  directly  to  the
          destination file.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.