Moving files to new server

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



On 12/03/06, Thomas E Dukes <edukes@xxxxxxxxxx> wrote:
> Hello,
>
> The new server is in and I am about to attempt the file transfers.  I have
> NEVER attempted this and want to do it right the first time.
>
> Reading the man pages for cp and scp it looks as if the -a switches are
> different.  Are they?  I want/am going to transfer files/directories across
> the local network.  Should I work from the new machine or the old?  What
> files are machine dependent?  In other words, what files, if any, should not
> be copied because of hardware differences?
>
> Sorry for all the seemingly stupid questions but as I said, I have never
> undertaken this before.

man rsync

rsync -avzP -e ssh ipoldserver:/path/to/directory /path/to

Will do a good job of moving / backing up even ".*" files (Hidden
files) On source it is /path/to/directory and on target is is /path/to
the directory is cretaed on target along with all subdirectories. If
you run it from old server you can

rsync -avzP -e ssh /path/to/directory ipnewserver:/path/to

Also if for any reason you have to kill rsync in between ( power off
or run out for quicky ;-) or ...) restart when you are back and it
will continue from where you let off.
HTH
--
Sudev Barar
Learning Linux

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux