DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th January 2009
paul-lkw's Avatar
paul-lkw paul-lkw is offline
Real Name: Paul.LKW
Port Guard
 
Join Date: May 2008
Location: Hong Kong
Posts: 18
Default rsync problem

Hi all:
Recently I used rsync to backup my data via NFS, I use the options as below;

rsync -arclpog --delete --ignore-errors /source_path /NFS_remote_path

then in first time I backup all data for about 5 hours.
In theory it should be shorter in thereafter because rsync will just check the time stamp for update but finally I still get every time 5 hours to backup.
Do I used wrong option with this result?
Thx for all your helps.

^_^
Reply With Quote
  #2   (View Single Post)  
Old 20th January 2009
ddekok ddekok is offline
Port Guard
 
Join Date: May 2008
Posts: 38
Default

It seems that rsync deletes before the sync by default. You may want to try --delete-after rather than --delete.
Reply With Quote
  #3   (View Single Post)  
Old 20th January 2009
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

Read 'man rsync' about the implications of using checksumming (-c). Run your current rsync run with -v added to see where the delay is. My guess is the checksum generation on both ends.
Reply With Quote
  #4   (View Single Post)  
Old 21st January 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

Play with the options, let rsync show you an itemized list (-i) of what it would do in a so-called dry-run (-n).
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #5   (View Single Post)  
Old 22nd January 2009
paul-lkw's Avatar
paul-lkw paul-lkw is offline
Real Name: Paul.LKW
Port Guard
 
Join Date: May 2008
Location: Hong Kong
Posts: 18
Default

I want to make clear the concept, does rsync will compare whole file or just something like "timestamp" ?
U_U
Reply With Quote
  #6   (View Single Post)  
Old 22nd January 2009
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

See http://en.wikipedia.org/wiki/Rsync#Algorithm
Reply With Quote
  #7   (View Single Post)  
Old 23rd January 2009
paul-lkw's Avatar
paul-lkw paul-lkw is offline
Real Name: Paul.LKW
Port Guard
 
Join Date: May 2008
Location: Hong Kong
Posts: 18
Default

Ths a lot.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote backups server using FreeBSD, ZFS, and Rsync phoenix Guides 1 5th March 2010 12:17 AM
Boot problem. Geometry problem? gulanito FreeBSD Installation and Upgrading 0 3rd July 2009 03:03 AM
rsync freebsd server/windows client Weaseal FreeBSD General 0 27th August 2008 12:29 AM
Rsh/rsync problems ebzzry FreeBSD General 4 15th August 2008 08:09 AM
encryption during rsync gkontos General software and network 7 13th June 2008 10:08 AM


All times are GMT. The time now is 09:37 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick