Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-10-2017, 02:45 PM   #1
LQ Newbie
Registered: Oct 2017
Posts: 2

Rep: Reputation: Disabled
Question strange rsync behavior or bug?

I am using rsync on two mounted directory:
rsync -tvrz /mnt/xiaomi/Photos/ /mnt/MILA_BACKUP/Photos/
the command works as expected. But suddenly I umounted the destination and mounted again.
Rsync start to copy again (!) some (!) files. (not everything just some files.) e.g.:
2017/2017 0610 Kiscicak/IMAG0443.jpg
2017/2017 0610 Kiscicak/VIDEO0014.mp4
2017/2017 0617 Noe jazz/
2017/2017 0617 Noe jazz/IMAG0355.jpg
in summary:
BEFORE umount every files were copied
AFTER the umount/mount only some of them dropped into the copy file list. (Not total directories, just some files. Even if there are 100 files in the directory he wants copy only 10 again.)

Could somebody help me what is this and how to fix?
Old 10-10-2017, 08:19 PM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Is either filesystem fat32? Check the rsync man page for modify-window
1 members found this post helpful.
Old 10-11-2017, 05:59 AM   #3
LQ Newbie
Registered: Oct 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Originally Posted by AlucardZero View Post
Check the rsync man page for modify-window
Thanks for this trick. I have checked the files on source and destionation side and found that there is 1 second difference. Adding a --modify-window=5 (to be on the safe side ) option solved the problem.


My question is why? what happened?

I have done the rsync again and checked the files. Every time was identical (no 1 sec delay). So rsync did his work as expected. But what happens when I umount and mount the device? Why this 1 sec difference come into alive? When? Is it a driver problem? (I smell some rounding should be the root case.) But why only after umount?

Could you help to understand this behavior, please!
Old 10-11-2017, 06:34 AM   #4
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,103

Rep: Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138
write time has a resolution of 2 seconds
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync:// behavior is weird wolfsden3 Linux - Newbie 4 09-22-2014 01:08 AM
rsync with scp behavior jjj0923 Linux - Newbie 3 07-12-2011 09:22 AM
rsync behavior with symlinks keviny22 Linux - Software 2 02-28-2011 01:59 PM
Strange behavior of rsync w.r.t filename cae jjge Linux - Software 2 09-25-2008 04:03 PM
can't understand rsync's behavior at all baronsam Linux - Software 5 08-15-2006 02:46 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration