LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


I am using rsync on two mounted directory:
Quote:
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.:
Quote:
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, 07:19 PM   #2
AlucardZero
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, 04:59 AM   #3
mila6452
LQ Newbie
 
Registered: Oct 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
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.

BUT!

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, 05:34 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,604

Rep: Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604Reputation: 5604
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
Quote:
write time has a resolution of 2 seconds
 
1 members found this post helpful.
  


Reply


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 12:08 AM
rsync with scp behavior jjj0923 Linux - Newbie 3 07-12-2011 08:22 AM
rsync behavior with symlinks keviny22 Linux - Software 2 02-28-2011 12:59 PM
Strange behavior of rsync w.r.t filename cae jjge Linux - Software 2 09-25-2008 03:03 PM
can't understand rsync's behavior at all baronsam Linux - Software 5 08-15-2006 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 AM.

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