Koozali.org: home of the SME Server

Backup SME Configuration files

Offline wetumka_ok

  • *
  • 12
  • +0/-0
Backup SME Configuration files
« on: February 12, 2007, 07:59:28 PM »
I'm in the process of doing some hardware upgrades to our sme server, is it possible to backup the configuration files for this server so after I reinstall I'd be able to have all the previous users, groups shares already defined, just transfer the data back, I know older sme versions had a save to floppy disk options for this purpose, is there another method? thanks

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Backup SME Configuration files
« Reply #1 on: February 12, 2007, 10:24:56 PM »
You have the backup option in server-manager pannel?
"It should just work" if it doesn't report it. Thanks!

Offline wetumka_ok

  • *
  • 12
  • +0/-0
Backup SME Configuration files
« Reply #2 on: February 13, 2007, 05:58:27 AM »
I realize there's a backup option in the panel, however when I chose this option, it tells me I can't because the backup is to large.

There has to be some type of alternate method, maby ssh in and manualy backing of the config files or database or whatever!

Offline raem

  • *
  • 3,972
  • +4/-0
Backup SME Configuration files
« Reply #3 on: February 13, 2007, 09:30:29 AM »
wetumka_ok

> There has to be some type of alternate method....

Yes, you can move the data to /tmp and then run the desktop backup
Everything except the data will be backed up (/tmp is not included in the backup), and you can manually copy that back to the restored locations later.
Something like this should do it, assuming you don't have lots of data in other locations. If you don't have much data or email in .../users then don't bother to move that.

mv /home/e-smith/files/ibays /tmp
mv /home/e-smith/files/users /tmp
perform backup to desktop using server manager panel
mv /tmp/ibays /home/e-smith/files/ibays
mv /tmp/users /home/e-smith/files/users
restore to another machine
manually copy data from .../users & .../ibays to new server

If copying user data & email then ensure that permissions are correct on the new server. It may be better to tar/untar all that data so you don't loose ownership and permissions during the copy from server to server.
You can use scp to copy between machines, but make sure you change the IP on one of them as they will be identically configured after the restore.
...