FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 12-31-2008, 08:42 PM
"Johnny Rosenberg"
 
Default rsync question

2008/12/31 stan <stanb@panix.com>
Given a freshly restored machine that has been out of service for a good


while, containing a large collection of data files "A", and "B" a in

service machine thta has a subset of these data files, but has some newer

files that are ont on "A". How can I invoke rsync such that only the new

filee are trnasfered from "B" to "A"?



I am confused by the large number of options to this program.Type man rsync and look for the -u option. It should make sure only older files are replaced with newer files.In my own rsync script, with which I backup my internal drive to an external one, I use do something like:
rsync -auv "${INTERNAL_DRIVE}/MyFolder" "${EXTERNAL_DRIVE}/" >> "${MY_LOGFILE}"The -v is for "verbose" and the text that is produced is, in this example, redirected to "${MY_LOGFILE}", which I set to whatever file I want to add the text to.
J.R.*



--

One of the main causes of the fall of the roman empire was that, lacking

zero, they had no way to indicate successful termination of their C

programs.



--

ubuntu-users mailing list

ubuntu-users@lists.ubuntu.com

Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-10-2010, 10:06 AM
Helmut Jarausch
 
Default rsync question

Hi,

the following behaviour of rsync puzzles me.

I have the following situation

<Source>/A this is a symlink !

<Dest>/A this is a real directory


now
cd <Dest>/A
rsync -auHz -ni --rsh=ssh --delete --exclude='/A/' <source
machine>:<Source>/ .

shows that it's going to delete the folder <Dest>/A

Can anybody please explain me why?

Thanks a lot,
Helmut.

(P.S. : I did google for it but couldn't find an explanation)
 
Old 11-11-2010, 12:06 PM
Neal Hogan
 
Default rsync question

On Wed, Nov 10, 2010 at 5:06 AM, Helmut Jarausch
<jarausch@igpm.rwth-aachen.de> wrote:
> Hi,
>
> the following behaviour of rsync puzzles me.
>
> I have the following situation
>
> <Source>/A * * * * * * * *this is a symlink !
>
> <Dest>/A * * * * * * * * *this is a real directory
>
>
> now
> cd <Dest>/A
> rsync -auHz -ni --rsh=ssh --delete --exclude='/A/' <source
> machine>:<Source>/ .
>
> shows that it's going to delete the folder <Dest>/A
>
> Can anybody please explain me why?

I'm not clear on some of your details, but perhaps you could try
putting full paths to the dirs/files in your script, including the
destination dir. Also, remember that '/A' and '/A/' are not the same
wrt the source.

g'luck
 
Old 07-31-2012, 05:05 AM
"Smithies, Russell"
 
Default rsync question

I'm trying to rsync a 8TB data folder containing squillions of small files and it's taking forever (i.e. weeks) to get anywhere.
I'm assuming the slow bit is check-summing everything with a single CPU (even though it's on a 12-core server ;-( )
Is it possible to do something simple like scp the whole dir in one go so they're duplicates in the first instance, then get rsync to just keep them in sync without an initial transfer?

Or is there a better way?

Thanx,

Russell Smithies
Infrastructure Technician
T 03 489 9085
M 027 4734 600
E russell.smithies@agresearch.co.nz
Invermay Agricultural Centre
Puddle Alley, Private Bag 50034, Mosgiel 9053, New Zealand
T +64 3 489 3809 F +64 3 489 3739 www.agresearch.co.nz<http://www.agresearch.co.nz/>




================================================== =====================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
================================================== =====================
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-31-2012, 05:16 AM
John R Pierce
 
Default rsync question

On 07/30/12 10:05 PM, Smithies, Russell wrote:
> I'm trying to rsync a 8TB data folder containing squillions of small files and it's taking forever (i.e. weeks) to get anywhere.
> I'm assuming the slow bit is check-summing everything with a single CPU (even though it's on a 12-core server ;-( )
> Is it possible to do something simple like scp the whole dir in one go so they're duplicates in the first instance, then get rsync to just keep them in sync without an initial transfer?

use the rsync mode that goes off file timestamp and size. the
checksuming block algorithm is only useful on large files that get small
random block changes.

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-31-2012, 06:44 AM
Mogens Kjaer
 
Default rsync question

On 07/31/2012 07:05 AM, Smithies, Russell wrote:
> Is it possible to do something simple like scp the whole dir in one go so they're duplicates in the first instance, then get rsync to just keep them in sync without an initial transfer?
>
> Or is there a better way?

I use tar and ttcp for an initial transfer:

On the receiving end:

ttcp -l5120 -r | tar xf -

On the transmitter:

tar cf - . | ttcp -l5120 -t name-of-receiver

Note: The files are transmitted without encryption.

I easily get 110 Mbytes/sec. on a gigabit connection.

If you need encryption, and your transfer is CPU limited, you should
investigate which cipher to use. In my case arcfour128 is the fastest,
so I use:

rsync --rsh='/usr/bin/ssh -c arcfour128' ...

after the initial transfer with ttcp.

Mogens

--
Mogens Kjaer, mk@lemo.dk
http://www.lemo.dk
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-31-2012, 11:24 PM
"Smithies, Russell"
 
Default rsync question

As far as I can see timestamp and size is the default.
I've turned off compression and I think I'm getting better throughput.
Running 4 rsync tasks and getting sustained transfers for several hours of just over 800Mb/sec :- )

--Russell

-----Original Message-----
From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of John R Pierce
Sent: Tuesday, 31 July 2012 5:16 p.m.
To: centos@centos.org
Subject: Re: [CentOS] rsync question

On 07/30/12 10:05 PM, Smithies, Russell wrote:
> I'm trying to rsync a 8TB data folder containing squillions of small files and it's taking forever (i.e. weeks) to get anywhere.
> I'm assuming the slow bit is check-summing everything with a single
> CPU (even though it's on a 12-core server ;-( ) Is it possible to do something simple like scp the whole dir in one go so they're duplicates in the first instance, then get rsync to just keep them in sync without an initial transfer?

use the rsync mode that goes off file timestamp and size. the checksuming block algorithm is only useful on large files that get small random block changes.

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
================================================== =====================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
================================================== =====================
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 07:06 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org