Koozali.org: home of the SME Server

quick manual backup from SME 6.01 to another SME 6.01

Offline eiceic

  • ***
  • 118
  • +0/-0
    • http://www.eicsoftware.com
quick manual backup from SME 6.01 to another SME 6.01
« 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

Offline kmccarn

  • ***
  • 112
  • +0/-0
quick manual backup from SME 6.01 to another SME 6.01
« Reply #1 on: March 25, 2006, 01:40:05 PM »
rsync

 :-D
Kevin in WV 8-)......

Offline eiceic

  • ***
  • 118
  • +0/-0
    • http://www.eicsoftware.com
rsync
« Reply #2 on: March 25, 2006, 03:52:49 PM »
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

Offline raem

  • *
  • 3,972
  • +4/-0
Re: rsync
« Reply #3 on: March 26, 2006, 12:39:40 PM »
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
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: rsync
« Reply #4 on: March 26, 2006, 12:54:44 PM »
eiceic

More specifically on server2 you can just do

scp -r /home/e-smith/files/ibays server1localIP:/home/e-smith/files/ibays/sme1backup
...