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',
);