Re: How to 'rsync' from one computer to another

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: JD Austin
Date:  
To: Main PLUG discussion list
Subject: Re: How to 'rsync' from one computer to another
We violently agree :)
That was my point originally (grin).


On Wed, Feb 3, 2010 at 2:54 PM, Eric Shubert <> wrote:

> JD Austin wrote:
> > As far as I know you cannot preserve write permissions writing to a DVD
> > unless you pack those permissions within an archive format that can
> > store them. It's not a writable media.
>
> Write, I mean correct. :)
> So why use a DVD at all? Seems like a waste to me.
>
> > Unless you're transferring terabytes of changes rsync works well across
> > the internet to keep files in sync. Get them relatively in sync and
> > then let rsync finish the job.
>
> I don't see a reason not to use rsync from the get go. And we're talking
> about transferring between 2 computers on a lan, not across the 'net.
>
> > Write to an external drive formatted with a linux file system instead if
> > you want to be able to preserve read/write/group permissions without
> > archiving the files first.
>
> Why not get rid of the intermediate file entirely? Read from the source
> drive, send across the lan, and write to the target drive on the other
> computer. All in one shot. No intermediate storage required. Permissions
> and attributes preserved (with the proper flags). Even a TB can be
> transferred this way across a LAN in a reasonable amount of time.
>
> >
> > On Wed, Feb 3, 2010 at 2:30 PM, Eric Shubert <
> > <mailto:ejs@shubes.net>> wrote:
> >
> >     I think the objective here is to copy the files directly from one
> drive
> >     to the other. No intermediate files or tarball required. ;)
> >     You could use tar on both sides w/out ever having the tarball
> directly
> >     on a disk by piping it through ssh. I think rsync's the best solution
> >     though, given that he only wants to transfer files that have changed.

> >
> >     JD Austin wrote:
> >      > Instead of writing all of the files to the disk make a tar ball
> and
> >      > write that to the disk.
> >      > tar zcpvf tarball.tar.gz /sourcedir
> >      >
> >      > On Wed, Feb 3, 2010 at 1:55 PM, Eric Shubert <
> >     <mailto:ejs@shubes.net>
> >      > <mailto:ejs@shubes.net <mailto:ejs@shubes.net>>> wrote:

> >      >
> >      >      <mailto:joe@actionline.com>
> >     <mailto:joe@actionline.com <mailto:joe@actionline.com>> wrote:
> >      >      > What is the procedure and syntax to 'rsync' all of a
> >     specific set of
> >      >      > directories and files from one computer to another that are
> on
> >      >     the same
> >      >      > network?

> >      >      >
> >      >      > I have been burning DVDs on one computer and copying those
> >     files
> >      >     onto my
> >      >      > other computer(s), but when I download all those files, the
> >      >     permissions
> >      >      > are all changed to be non-writeable files and directories.

> >      >      >
> >      >      > -r--r--r--  1 root root   9598 Feb  2 15:18 filenames
> >      >      > dr-xr-xr-x  5 root root   6144 Feb  2 21:06 directory-names

> >      >
> >      >     The files are not writable on the DVD, so when the DVD is
> >     copied to the
> >      >     HD, they remain not writable.

> >      >
> >      >      > Is there some way to globally fix that?

> >      >
> >      >     The chmod command has an -R option. Otherwise, normal file
> >     name pattern
> >      >     matching applies.

> >      >
> >      >      > Or would 'rsync' be a better solution?

> >      >      >
> >      >      > I've never used 'rsync' and after reading the 'man' pages,
> >     I'm still
> >      >      > confused.

> >      >
> >      >     There are examples in the rsync man page. What specifically
> >     do you not
> >      >     understand?

> >      >
> >      >     We can't really give you the command you'd need to use
> >     without knowing
> >      >     more specifics about the set of directories and machines (ip
> >     addresses?)
> >      >     you're dealing with.

> >      >
> >      >      > Is there a way to do this to preserve the file dates

> >      >
> >      >     There is a -p flag for the cp and scp commands which does
> this.

> >      >
> >      >      > and only copy those
> >      >      > files that are newer (have more recent dates) onto the
> >     target system?

> >      >
> >      >     You'll need to use rsync for this part.

> >      >
> >      >     --
> >      >     -Eric 'shubes'

> >      >
> >      >     ---------------------------------------------------
> >      >     PLUG-discuss mailing list -
> >     
> >     <mailto:PLUG-discuss@lists.plug.phoenix.az.us>
> >      >     <mailto:PLUG-discuss@lists.plug.phoenix.az.us
> >     <mailto:PLUG-discuss@lists.plug.phoenix.az.us>>
> >      >     To subscribe, unsubscribe, or to change your mail settings:
> >      >     http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

> >      >

> >      >

> >      >
> >      > <http://feedproxy.google.com/%7Er/randomquotes/%7E3/G2PjcLJ0ONI/>

> >      >

> >
> >
> >     --
> >     -Eric 'shubes'

> >
> >     ---------------------------------------------------
> >     PLUG-discuss mailing list - 
> >     <mailto:PLUG-discuss@lists.plug.phoenix.az.us>
> >     To subscribe, unsubscribe, or to change your mail settings:
> >     http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

> >
> >
> > <http://feedproxy.google.com/%7Er/randomquotes/%7E3/G2PjcLJ0ONI/>
> >
>
>
> --
> -Eric 'shubes'
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>



<http://feedproxy.google.com/%7Er/randomquotes/%7E3/G2PjcLJ0ONI/>
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss