Koozali.org: home of the SME Server

How to syncronise 2 sme servers

Offline Brenno

  • *****
  • 208
  • +0/-0
How to syncronise 2 sme servers
« Reply #30 on: May 31, 2005, 10:46:01 PM »
arne,

I actually went through http://sshwindows.sourceforge.net. From there, I clicked on the Downloads link near the bottom and then on the Binary Installer Releases link.

Of course, you could always install Cygwin, which contains OpenSSH components as well as an rsync implementation for Windows.

Installing it is the easy part - getting it work across a WAN is the hard part.  Let me know if you have any successes!

Offline arne

  • *****
  • 1,116
  • +0/-4
How to syncronise 2 sme servers
« Reply #31 on: June 04, 2005, 06:44:47 PM »
I found one tread from "the old days"

It contains a script for dumping all the databases.

http://forums.contribs.org/index.php?topic=19331.msg76548#msg76548

Somewhere in the sme 5.6 I found a perl script that specefied all the directories that should be backed up.

I am not able to find it again on the sme 6.0.1

Anybody who knows ?

Arne.
......

Offline arne

  • *****
  • 1,116
  • +0/-4
How to syncronise 2 sme servers
« Reply #32 on: June 04, 2005, 06:49:19 PM »
Possibly another way of dumping the databases ?
http://dev.mysql.com/doc/mysql/en/mysqldump.html
......

Offline arne

  • *****
  • 1,116
  • +0/-4
How to syncronise 2 sme servers
« Reply #33 on: June 04, 2005, 06:54:57 PM »
I think this were the directories I copied the last time (But have no documentation and can not find the right perl backuscript wich specifies the directories).

rsync -auq /home/e-smith/ /mnt/backup/blackie/home/e-smith/
rsync -auq /home/netlogon/ /mnt/backup/blackie/home/netlogon/
rsync -auq /etc/e-smith/templates-custom/ /mnt/backup/blackie/etc/e-smith/templates-custom/
rsync -auq /etc/e-smith/templates-user-custom/ /mnt/backup/blackie/etc/e-smith/templates-user-custom/
rsync -auq /etc/group /mnt/backup/blackie/etc/group
rsync -auq /etc/gshadow /mnt/backup/blackie/etc/gshadow
rsync -auq /etc/passwd /mnt/backup/blackie/etc/passwd
rsync -auq /etc/shadow /mnt/backup/blackie/etc/shadow
rsync -auq /etc/smbpasswd /mnt/backup/blackie/etc/smbpasswd
rsync -auq /etc/ssh/ /mnt/backup/blackie/etc/ssh/
rsync -auq /opt/ /mnt/backup/blackie/opt/
rsync -auq /root/ /mnt/backup/blackie/root/

"blackie" is the name of the server.
......

Offline arne

  • *****
  • 1,116
  • +0/-4
How to syncronise 2 sme servers
« Reply #34 on: June 04, 2005, 06:59:17 PM »
And this should be the command for rsync via ssh and network:

From local to remote:

rsync -e ssh -avz --delete /lib/ root@myserver.com:/lib/

From remote to local:
rsync -e ssh -avz --delete root@myserver.com:/lib/ /lib/

The databases have to be dumped and resored and the actual directories have to be "rsynced".

Anybody who knows the perl script that specifies the actual directories ?
......

mbachmann

How to syncronise 2 sme servers
« Reply #35 on: June 06, 2005, 11:13:10 AM »
I recommend backuppc to you. It is not mirroring the machine (as i understand you want mirroring to a 2nd machine). But once you have it up and running you can most easily restore data. Plus: you can keep more than 1 one full backup.

http://forums.contribs.org/index.php?topic=24320.0