file corruption

anuragmnnit2004 anuragmnnit2004 at gmail.com
Sun Apr 28 01:40:20 MDT 2013


Database lock is taken on active before rsync is done so it is in freezed
state. 

I have added checksum so that later full syncing is not done on further
rsync.   
Does cheksum is verified before writing data to disc in destination? 



Kevin Korb wrote
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> In use databases can't be copied with rsync or any file based tool.
> The database must be inactive to be copied.  You didn't mention which
> kind of database you are using but most have a function to freeze the
> database for backups.  I don't know if QNX has LVM functionality but
> that can work too.
> 
> Also, don't use -c unless you have a really good reason.  It is almost
> always a bad idea.
> 
> On 04/27/13 14:26, anurag trivedi wrote:
>> I am using rsync in my project for copying database binary files
>> over the network from active module to standby module. Once in a
>> while files found to be corrupt on standby module when copying is
>> done first time.When I checked the active module at that time files
>> found to be proper. rsync is completing successful without giving
>> any errors. On comparing both files I see a big hole in standby
>> file filled with 0's. Below is my rsync command -
>> 
>> rsync -a  -c  -v --delete  --timeout=250 --contimeout=30
>> --temp-dir=xxxx srcfile    dstfile rsync is running in daemon
>> mode. OS - QNX rsync version - 3.0.9
>> 
>> On trying to sync same files again sync happened properly.
>> 
>> Does anybody have similar kind of issues?
>> 
>> Please help me in this regard.
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> 
> - -- 
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
> 	Kevin Korb			Phone:    (407) 252-6853
> 	Systems Administrator		Internet:
> 	FutureQuest, Inc.		

> Kevin@

>   (work)
> 	Orlando, Florida		

> kmk@

>  (personal)
> 	Web page:			http://www.sanitarium.net/
> 	PGP public key available on web site.
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.19 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
> 
> iEYEARECAAYFAlF8HFQACgkQVKC1jlbQAQc4TQCgzCy63K7Hh7r0mz2UpgI5QMMR
> OEAAn39JHRZ2KLb+SRZiAsOW82FWxJ0v
> =IsDw
> -----END PGP SIGNATURE-----
> -- 
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html





--
View this message in context: http://samba.2283325.n4.nabble.com/file-corruption-tp4647327p4647336.html
Sent from the Samba - rsync mailing list archive at Nabble.com.


More information about the rsync mailing list