DO NOT REPLY [Bug 6080] New: Rsync not transferring anough file
samba-bugs at samba.org
samba-bugs at samba.org
Sun Feb 1 20:49:56 GMT 2009
https://bugzilla.samba.org/show_bug.cgi?id=6080
Summary: Rsync not transferring anough file
Product: rsync
Version: 3.0.5
Platform: x86
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned at samba.org
ReportedBy: francois at vaningelgom.be
QAContact: rsync-qa at samba.org
Hi everyone!
I have a problem with rsync (wonderful tool by the way!).
I use FreeBSD 7.0.
I use it to backup data from our file server to our nas.
There is about 20Go of data to copy.
During the first copy, i also use rsync.
The problem is that *apparently* not all files are copied. (In fact i cannot
check if it's true since rsync doesn't produce any errors)
I copy files accross a mounted samba share.
I use a script to copy all those things (using cron).
Here is my script:
#!/usr/local/bin/bash
if mount_smbfs -I <IP> -E UTF-8:CP850 //francois at nas/backup /mnt/nas;
then
check=$(date '+%A')
if [ -d /mnt/nas/$check ]
then
/usr/local/bin/rsync -a --stats --delete --delete-before
/usr/home/<user>/data /mnt/nas/$check
else
mkdir /mnt/nas/$check
/usr/local/bin/rsync -a --stats --delete --delete-before
/usr/home/<user>/data /mnt/nas/$check
fi
umount /mnt/nas
else
echo "Impossible to mount samba share!"
exit
fi
It just mount samba shares and set charset to avoid encoding problems.
The problem I see is when --stats shows me his statistics:
Number of files: 707443
Number of files transferred: 695454
Total file size: 24010667438 bytes
Total transferred file size: 24010667438 bytes
Literal data: 24010761646 bytes
Matched data: 0 bytes
File list size: 8206592
File list generation time: 27.429 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 24051362502
Total bytes received: 13249605
sent 24051362502 bytes received 13249605 bytes 702790.83 bytes/sec
total size is 24010667438 speedup is 1.00
Why does:
Number of files > Number of files transferred
Total file size > Total transferred file size
Literal data > Total bytes sent
Rsync does not produce any errors during or after transert.
Since it's a backup solution very important for the office, i'm a little bit
scared of that i output.
Thanks a lot for any reply
François Van Ingelgom
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the rsync
mailing list