Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Kelvin on July 20, 2002, 04:22:29 AM
-
Hi all,
I've asked before but never really got an answer to this. So I'll try again.
I need a tool which allows me to backup an existing ESSG 4.1.2 server's user account database (along with machine accounts for NT/W2K/XP workstations and user passwords), Server/Domain SID and restore it to a new SME 5.x server. All datafiles, ibays, etc. are not very important as they can be separately backed up and restored to the new server (there aren't that many ibays and they can be recreated manually easily enough).
Alternatively, if someone could identify what files I need to copy out in order to copy back to the new server it would be helpful as well.
This server changeover should be as painless as possible and that is why I need to restore the SIDs for the Domain and machines otherwise we'll lose the profiles for the NT/W2K/XP users.
Thanks.
Kelvin
-
If you follow the logic below you should be able to create a backup minus everything below /home/e-smith/files
The back up should then only contain config data
Do a desktop restore on a clean install
Customising 'backup to desktop'
To exclude ibays or users from the standard backup, or to include non-standard directories to the backup. This is the core method of the following dungog-backup module, which allows you to create sets via a web gui, and automates backups with cron.
1. create a file with a list of directories to exclude
[stephen@sme5 rpm]# cat /tmp/excludelist
home/e-smith/files/ibays/server/*
home/e-smith/files/primary/html/twiggi/*
home/e-smith/files/users/dialmon/*
Note: no leading / and the trailing wildcard
2. edit the backup function
make a backup then
pico -w /etc/e-smith/web/functions/backup
in the subroutine
sub desktopBackup ()
replace [line 420 on sme-5.1.2]
"/bin/tar --directory / --create @directories --file=-"
with
"/bin/tar --directory / --create @directories --exclude-from /tmp/excludelist --file=-"
3. edit the backup function
near the top if the list of files and directories backed up
just add the extra directory required
my @directories = (
'home/e-smith',
'etc/e-smith/templates-custom',
'etc/e-smith/templates-user-custom',
'etc/ssh',
'root/.ssh',
'etc/passwd',
'etc/shadow',
'etc/group',
'etc/gshadow',
'etc/smbpasswd',
);
-
Hi Rob,
Thanks for the quick reply.
Do you know if this will work for a backup from 4.1.2 and a restore to 5.1.2 ?
Kelvin
-
>
> Do you know if this will work for a backup from 4.1.2 and a
> restore to 5.1.2 ?
>
I've only worked with 5.0 and 5.1 so i couldn't say