hello all, i'm using rsync-2.5.4-2 on redhat 7.3 in order to rsync some data from a MS-WIN$ share, i use the following procedure -- first, i use the following to mount the SMB share : mount -t smbfs -o password=satish //satsco/satish /home/2 then, after successfully mounting the share, i am using the following to rsync the data into redhat linux : rsync -arlpogtb --whole-file --suffix=~bak --stats --timeout=600 --bwlimit=220 /home/2/* /backup/2 > back2rsync.log 2>back2rsyncerr.log I want to disable incremental rsync and take all data again... however, no data transfer takes place at all... seems like incremental rsync is used.. can any1 tell me why ? while "back2rsyncerr.log" is empty, following is the content of the file "back2rsync.log" - =====================================rsync[5966] (server receiver) heap statistics: arena: 17016 (bytes from sbrk) rsync[5964] (sender) heap statistics: arena: 53880 (bytes from sbrk) ordblks: 3 (chunks not in use) smblks: 0 hblks: 0 (chunks from mmap) hblkhd: 0 (bytes from mmap) usmblks: 0 fsmblks: 0 uordblks: 42424 (bytes used) fordblks: 11456 (bytes free) keepcost: 4152 (bytes in releasable chunk) Number of files: 44 Number of files transferred: 0 Total file size: 20229310 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 1096 Total bytes written: 1108 Total bytes read: 20 wrote 1108 bytes read 20 bytes 2256.00 bytes/sec total size is 20229310 speedup is 17933.79 ========================================== can someone please tell me how to take full data rsync and not incremental. thanx in advance, satsco. __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com
On Thu, Apr 24, 2003 at 03:57:11AM -0700, Satsco wrote:> hello all, > > i'm using rsync-2.5.4-2 on redhat 7.3 > > in order to rsync some data from a MS-WIN$ share, i > use the following procedure -- > first, i use the following to mount the SMB share : > > mount -t smbfs -o password=satish //satsco/satish > /home/2 > > then, after successfully mounting the share, i am > using the following to rsync the data into redhat > linux : > > rsync -arlpogtb --whole-file --suffix=~bak --stats > --timeout=600 --bwlimit=220 /home/2/* /backup/2 > > back2rsync.log 2>back2rsyncerr.logWhat a strange command-line. --whole-file is automatic for local which this is. --bwlimit and --timeout only apply to network transfers. Furthermore -a is the same as -rlptgoD so -arlpogtb is the same as -ab, the only part of -a you didn't redundantly specify was -D. rsync -ab --suffix=~bak --stats /home/2/* /backup/2 \ > back2rsync.log 2>back2rsyncerr.log would have had the exact same effect. Perhaps reading the manpage would be a good idea.> I want to disable incremental rsync and take all data > again... however, no data transfer takes place at > all... seems like incremental rsync is used.. can any1 > tell me why ? > > while "back2rsyncerr.log" is empty, following is the > content of the file "back2rsync.log" - > =====================================> rsync[5966] (server receiver) heap statistics: > arena: 17016 (bytes from sbrk) > rsync[5964] (sender) heap statistics: > arena: 53880 (bytes from sbrk) > ordblks: 3 (chunks not in use) > smblks: 0 > hblks: 0 (chunks from mmap) > hblkhd: 0 (bytes from mmap) > usmblks: 0 > fsmblks: 0 > uordblks: 42424 (bytes used) > fordblks: 11456 (bytes free) > keepcost: 4152 (bytes in releasable chunk) > > Number of files: 44 > Number of files transferred: 0 > Total file size: 20229310 bytes > Total transferred file size: 0 bytes > Literal data: 0 bytes > Matched data: 0 bytes > File list size: 1096 > Total bytes written: 1108 > Total bytes read: 20 > > wrote 1108 bytes read 20 bytes 2256.00 bytes/sec > total size is 20229310 speedup is 17933.79 > ==========================================> > can someone please tell me how to take full data rsync > and not incremental.--whole-file instructs the utility that IF a file's size or mtime indicates it changed the rsync algorythm is to be disable and the whole file will be transferred. In your case no files changes were detected so there was nothing to transfer/copy. There is an option that will ignore that fact that the file times are unchanged but i'll let you find that by reading the manpage for yourself. -- ________________________________________________________________ J.W. Schultz Pegasystems Technologies email address: jw@pegasys.ws Remember Cernan and Schmitt
forgive my mistake.... i'll try --ignore-times and not --ignore-existing hastily yours, satsco. --- Satsco <perisat@yahoo.com> wrote:> Date: Thu, 24 Apr 2003 04:57:14 -0700 (PDT) > From: Satsco <perisat@yahoo.com> > To: rsync@lists.samba.org > Subject: Re: --whole-file not working ? > > schultz, > > thanx for ur reply. > i am a newbie at rsync.. so please bear with my > silly > errors, if any. > > Yes, I know of the -a option being equal to > -rlptgoD. > i actually intended to use -rlpogtb, 'a' was > inserted > in there by error. I am not expecting "D" devices in > the share and therefore i was reluctant to use "-a" > > since i am using an SMB mount here, data is actually > transferred over the network (LAN), therefore > --bwlimit > is actually a good idea -- in fact, its working gr8 > ! > i am using --timeout because -- if for any reason > the > network connection to the SMB share is not > available, > the command must exit and not hang endlessly. > > i have been thru the man pages... are you talking of > > --ignore-existing ?? will this be my solution ? > does it in any way conflict with any other options > that i have specified ? > > thanx for ur time. really appreciate it. > > regards, > satsco. > ====================================> > --- jw schultz <jw@pegasys.ws> wrote: > > On Thu, Apr 24, 2003 at 03:57:11AM -0700, Satsco > > wrote: > > > hello all, > > > > > <snip> > > > > > What a strange command-line. --whole-file is > > automatic for > > local which this is. --bwlimit and --timeout only > > apply to > > network transfers. Furthermore -a is the same as > > -rlptgoD > > so -arlpogtb is the same as -ab, the only part of > -a > > you > > didn't redundantly specify was -D. > > > > rsync -ab --suffix=~bak --stats /home/2/* > /backup/2 > > \ > > > back2rsync.log 2>back2rsyncerr.log > > > > would have had the exact same effect. > > Perhaps reading the manpage would be a good idea. > > > > <snip> > > > > > --whole-file instructs the utility that IF a > file's > > size or > > mtime indicates it changed the rsync algorythm is > to > > be > > disable and the whole file will be transferred. > > > > In your case no files changes were detected so > there > > was > > nothing to transfer/copy. > > > > There is an option that will ignore that fact that > > the file > > times are unchanged but i'll let you find that by > > reading > > the manpage for yourself. > > > > -- > > >________________________________________________________________> > J.W. Schultz Pegasystems Technologies > > email address: jw@pegasys.ws > > > > Remember Cernan and Schmitt > > -- > > > __________________________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo > http://search.yahoo.com > -- > To unsubscribe or change options: > http://lists.samba.org/mailman/listinfo/rsync > Before posting, read:http://www.catb.org/~esr/faqs/smart-questions.html __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com
Steve, I dont know much about rsync... but --bwlimit *does* work when i rsync from an smbfs mount to a local partition. and it works *beautifully*. net speed of transfer is always reported below the set bwlimit. perhaps the rsync gurus on this list can explain how... but i can swear that it does happen. regards, Satsco. --- Steve Greenland <steveg@moregruel.net> wrote:> On 24-Apr-03, 06:57 (CDT), Satsco > <perisat@yahoo.com> wrote: > > since i am using an SMB mount here, data is > actually > > transferred over the network (LAN), therefore > > --bwlimit > > is actually a good idea -- in fact, its working > gr8 ! > > Unlikely. As far as rsync (or any other application) > is concerned, the > disk *is* local. Only the OS knows that it's > actually from another > machine. > > Steve > -- > Steve Greenland__________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com