Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: wetumka_ok on February 12, 2007, 07:59:28 PM

Title: Backup SME Configuration files
Post by: wetumka_ok 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
Title: Backup SME Configuration files
Post by: bpivk on February 12, 2007, 10:24:56 PM
You have the backup option in server-manager pannel?
Title: Backup SME Configuration files
Post by: wetumka_ok 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!
Title: Backup SME Configuration files
Post by: raem 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.