Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rsync without creating hidden file in destination

Tags:

rsync

rsync creates a temporary hidden file during a transfer, but the file is renamed when the transfer is complete. I would like to rsync files without creating a hidden file.

like image 456
Swaroop Kundeti Avatar asked Mar 25 '14 05:03

Swaroop Kundeti


People also ask

Does rsync ignore hidden files?

Using the rsync Command rsync is a powerful and convenient file-copying utility. It accepts two valuable options that allow us to include or exclude files during the copy: –include=PATTERN and –exclude=PATTERN. To skip hidden files and directories, we can pass the “. *” pattern to the –exclude option.

Does rsync create temporary files?

rsync creates a temporary hidden file during a transfer, but the file is renamed when the transfer is complete.

Where are rsync files stored?

rsync -av /home/ME/myfile user@remoteserver: Then it would make a remote copy. In this case the location is relative to the home directory of the user. With no relative path given, the file will appear in that directory.


1 Answers

alvits is correct, --inplace will fix this for you. I found this when I had issues syncing music to my phone (mounted on ubuntu with jmtpfs). I would get a string of errors renaming the temporary files to replace existing files.

like image 192
Beaker Avatar answered Oct 02 '22 10:10

Beaker