Koozali.org: home of the SME Server
Obsolete Releases => SME Server 6.x => Topic started by: eiceic on March 25, 2006, 01:11:03 PM
-
What's the quickest/easiest way to copy the contents of //sme1/home/e-smith/files/ibays/*.* to //sme2/home/e-smith/files/ibays/sme1backup
They are both on the same local network - I'm just looking for a command to type while logged in as root -- I can automate the task at a later date
Thanks,
Chris Buechler
-
rsync
:-D
-
Thanks - Do I need to obtain rsync first - or does it come standard w/SME? I tried rsync --help and man rsycn to no avail.
Can someone give me a good syntax similar to an XCOPY *.* R: /S
Chris Buechler
-
eiceic
> I tried rsync --help and man rsycn to no avail.
do
cd /root
man rsync
that works on my sme6.0 server
rsync --help also works OK
You can also do this:
If both servers are connected to the LAN (or even remote but connected to Internet) then you can ssh from one server to the other server and do copies using scp
ie login to server1
then
ssh server2IP
eg
ssh server2localIP
or
ssh server2externalremoteIP
(note that ssh access must be allowed & anabled to remote server)
at server2 command prompt do
scp /foldername/filename server1localIP:/foldername/filename
eg
scp/tmp/testfile2 192.168.1.1:/tmp/testfile1
or
scp /tmp/testfile2 server1externalremoteIP:/tmp/testfile1
to copy whole folders do
scp -r /foldername server1IP:/newlocation
see
man ssh
and
man scp
-
eiceic
More specifically on server2 you can just do
scp -r /home/e-smith/files/ibays server1localIP:/home/e-smith/files/ibays/sme1backup