Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File count incorrect

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
pk_fox
LXF regular


Joined: Wed Apr 13, 2005 2:38 pm
Posts: 290
Location: Surrey, UK

PostPosted: Fri Apr 25, 2014 9:35 am    Post subject: File count incorrect Reply with quote

Hi all, I just rsynced two folders on two different drives and all appeared to be fine ( no error messages ) , I then did a file count on both using this method

Code:

find /folder1 -name *.flac|wc -l
find /folder2 -name *.flac|wc -l


This returned 5240 on folder1 and 5239 on folder2, how can I identify the missing file ?

Edit

I just ran rsync again and received an error "file has vanished" followed by the path to the file, I checked and the file is indeed in folder1 but not in folder2, the file looks to be OK but it does have a very long path and some unusual characters in its name e.g [ and _ , could this cause the problem ?
More output from rsync
Code:

Total size is 148046291131  speedup is 507820.01
rsync warning: some files vanished before they could be transferred (code 24) at main.c(1070) [sender=3.0.9]

_________________
We can't stop here, this is bat country. Hunter S Thompson RIP.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8452
Location: Warrington, UK

PostPosted: Fri Apr 25, 2014 10:14 am    Post subject: Reply with quote

Code:
find /folder1 -name *.flac | sort >folder1.list
find /folder2 -name *.flac | sort >folder2.list
diff folder[12].list


The shell "special characters" like [ may be causing problems for rsync. What is the rsync command you are using?
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
pk_fox
LXF regular


Joined: Wed Apr 13, 2005 2:38 pm
Posts: 290
Location: Surrey, UK

PostPosted: Fri Apr 25, 2014 10:48 am    Post subject: Reply with quote

nelz wrote:
Code:
find /folder1 -name *.flac | sort >folder1.list
find /folder2 -name *.flac | sort >folder2.list
diff folder[12].list


The shell "special characters" like [ may be causing problems for rsync. What is the rsync command you are using?


Code:

rsync -av /mnt/folder1 /mnt/folder2


Folder names are fictitious but folder1 is a Linux Nas box and folder2 a USB drive , I renamed the rogue file and all is OK so it must have been those characters, but I've notice some other files have these and they copied OK, maybe it was a combination of the length and the special characters ? Any ideas on my other question why my USB drive wasn't mountable ? - bloody weird one that !
_________________
We can't stop here, this is bat country. Hunter S Thompson RIP.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8452
Location: Warrington, UK

PostPosted: Fri Apr 25, 2014 10:50 am    Post subject: Reply with quote

It is more likely to be the particular combination of special characters.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast