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

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Eric Shubert
Date:  
To: plug-discuss
Subject: Re: How to 'rsync' from one computer to another
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>> wrote:
>
>      <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>
>     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