Re: how do I copy from server to server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yuk.

We use rsync to backup all of our servers to a central system.
Recently we have switched from tape libraries to using rsync to 
backup the data from the central server to 200GB external firewire
drives to take off site. Using rsync maintains all the UID,GID and 
permissions.

For one off jobs I often just use :

scp -r /src/path desthost:/dest/path

Mathew's script is pretty much how we used to do it.

On Fri, 2005-07-01 at 11:01 -0500, Matthew Crocker wrote:
> If you need to copy a bunch of stuff *and* keep your permissions you 
> can do something like
> 
> 
> tar czf - /files/I/want/to/back/up/* | ssh -l root -c "(cd 
> /new/location/for/files && tar -xf - )"
> 
> Basically you are creating a tar file and outputting it to STDOUT which 
> is piped to STDIN of an ssh session which sends it to STDIN of a tar 
> process running on the other machine.
> 
> -Matt
> 
> 
> >
> > On Fri, 07 Jan 2005 09:31:45 -0500, Alex Evonosky <alex@xxxxxxxxxxxx> 
> > wrote:
> >> Brian McDonald wrote:
> >>> Is there a way to copy server to server using command line ftp or 
> >>> something
> >>> like it?
> >>> I am moving servers and I need to copy the entire html directory 
> >>> about 500
> >>> megs.
> >>> I really don't want to have to ftp down to my pc and ftp back up to 
> >>> the new
> >>> server.
> >>
> >> server1
> >> =======
> >>
> >> cd /dir/of/html
> >> tar cvfz backup.tgz *
> >> ftp <server2>
> >> login
> >> pass
> >> put backup.tgz
> >> quit
> >>
> >> server2
> >> =======
> >>
> >> cd /to/where/you/uploaded/the/file
> >> mv backup.tgz /dir/of/html/folder
> >> tar xvfz backup.tgz
> >>
> >> done.
> >>
> >> Of course, if both servers were on the same LAN, you could use NFS and
> >> mount the two and then just mv the file right into the proper dir, but
> >> its your choice.  The above is just using standard FTP.
> >>
> >>
> >> --
> >> fedora-list mailing list
> >> fedora-list@xxxxxxxxxx
> >> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> >>
> >
> > -- 
> > fedora-list mailing list
> > fedora-list@xxxxxxxxxx
> > To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> >
> 
-- 
Guy Fraser
Network Administrator
The Internet Centre
1-888-450-6787
(780)450-6787


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux