LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Rsync not updating properly? (https://www.linuxquestions.org/questions/linux-software-2/rsync-not-updating-properly-251036/)

Phaethar 11-04-2004 08:45 AM

Rsync not updating properly?
 
Hey all,

I'm having a weird problem with rsync on a FC2 system. I have this system mapped to a Windows server, and each day I have it running an rsync to copy over a daily folder, usually with anywhere between 1000-5000 files in it. So, I'm running the rsync command with the following parameters:

Code:

rsync --verbose --progress --stats --compress --recursive --times --perms --links /source /destination
I run this, and everything seems to work fine. It creates the folders, and moves most of the files. I say most, because sometimes it will show how many files there are total, and move all but 1 or 2. Sometimes it will read different amounts of files. And the really weird thing is that if I run the rsync again, it will copy at least half the files all over again, even though they're already there.

It's for this reason alone that I can't set up an automated cron job to simply rsync the top level folder each day. I have folders set up for the past couple years, and this copy job would take forever to do... and would apparently try to do it at least twice!

So, I guess I'm wondering if there are any known issues with running rsync from a Windows share to a local folder. I'm curious to know why it reads the number of files differently if I run the job back to back. For instance, today's folder had 4843 files. I've run it at least 10 times now, and I'll get 4840, 4841, 4842, and 4843, all within seconds of each other. Nothing is changing in this folder either, and nothing has changed since last night.

Any ideas what's up with this?


All times are GMT -5. The time now is 03:38 AM.