Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: Beast on February 12, 2007, 08:00:12 PM
-
Hi
Have installed a OBM backup system from ahsay.com
I need to know if the following folders are the folders I have to backup so I am able to do a complete restore!
/home /etc /usr/local /opt /var /root /boot
I do a:
signal-event pre-backup
Before backup (in the profile of the backup set)
And I have to do a:
signal-event post-upgrade
If I do a restore of the data!
Can recommend this solution BTW. Easy to install etc.
-
A standard backup does this:
# signal-event pre-backup
By default these are backed up:
/home/e-smith
/etc/e-smith/templates-custom
/etc/e-smith/templates-user-custom
/etc/ssh
/root
/etc/sudoers
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow
/etc/samba/secrets.tdb
/etc/samba/smbpasswd
/etc/smbpasswd
# signal-event post-backup
A standard restore does this:
# signal-event pre-restore
By default these are restored:
/home/e-smith
/etc/e-smith/templates-custom
/etc/e-smith/templates-user-custom
/etc/ssh
/root
/etc/sudoers
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow
/etc/samba/secrets.tdb
/etc/samba/smbpasswd
/etc/smbpasswd
# signal-event post-upgrade
# signal-event reboot
-
Thank you very much for this information!
-
I have a client who also has OBM for making backups of SME.
I'm having problems with the signal-event pre-backup though. I can see where it's supposed to be put in OBM
Pre-backup command
Name: before the backup starts
Command: signal-event pre-backup
Working Directory: /home/e-smith
Post-backup command
Name: after the backup has ended
Command: signal-event post-backup
Working Directory: /home/e-smith
In my case however he doesn't understand the commands.
How do you make OBM to do the pre- and post-backup commands?
-
I do not configure the OBM from the command line of the server. I use a web interface for this (part of the service from my backup provider). I have only issued command on the SME for the profile to use (password etc).
With everything else I use the web interface. Have also used this to specify the backup folders etc..
This is the way OBM works - everything is located off line (at the backup server). This also mean that it is very easy to restore the data again - you only have to remember your account and the backup name to perform a restore (have to issue some commands also - but I am testing this right now)
-
This is the procedure I have followed:
1. Get the file (obm-linux.tar.gz)
2. Set the OBM_HOME environment variable
OBM_HOME=/usr/local/obm; export OBM_HOME
3. Unpack to OBM_HOME
mkdir $OBM_HOME
tar -x -C $OBM_HOME -zvf obm-linux.tar.gz
4. Use Backup configurator (please make a backup profile first in the web-page configurator)
sh $OBM_HOME/bin/Configurator.sh
5. Key in info
Login Name: userXXX
Password: *******************
Backup Server URL: xxx.yyy.com
Which Protocol ? (1) Http (2) Https : 1
Use proxy ? (Y)es or (N)o : Y
Proxy Type ? (1) Http/Https Proxy (2) SOCKS : 1
Enter proxy server : aaa.bbb.com
Enter proxy port : xxx
Enter proxy username (optional) : administrator
Enter proxy password (optional) : *******************
Found new backup set 'xxx'
Please enter the following values for this backup set:
Encrypting Algorithm ?
(1) Twofish (2) AES (3) Triple DES (4) No encryption : 1
Encrypting Key: *******************
Re-Enter Encrypting Key: *******************
Encrypting Mode ? (1) ECB (2) CBC : 1
Run scheduled backup on this computer ? (Y)es or (N)o : Y
Main Menu:
------------
(1). List Backup Setting
(2). Change Password
(3). Change Network Setting
(4). Change run scheduled backup setting
(5). Quit
Your Choice:
6. Run a backup profile
sh $OBM_HOME/bin/RunBackupSet.sh [BACKUP_SET]
7. Automatic run:
nohup sh $OBM_HOME/bin/Scheduler.sh > /dev/null
8. (optional) Automatic run at startup (still working on this to make it work - for some reason it does not start)
[Add in this file /root/.bash_profile]
OBM_HOME=/usr/local/obm; export OBM_HOME
su -c 'nohup sh $OBM_HOME/bin/Scheduler.sh > /dev/null'
-
I got obm running without any problems. It has been backing up the documents in ibays for some time now.
The problem i'm having is that i also want to backup all system data of this sme server in case of a complete restore with users etc. I know which files are needed and i know i need to do a signal-event pre-backup before i start to backup the needed files and a signal-event post-backup after.
I've also used the web interface to select the files and that is where i can issue a pre-backup command for this backup job.
I've put this there:
Pre-backup command
Name: om te backuppen
Command: signal-event pre-backup
Working Directory: /home/e-smith
But then i get an error in my backuplog:
[om te backuppen][signal-event pre-backup] java.io.IOException:
signal-event: not found
Same goes for the post-backup command.
I can't find anything in /var/log/messages to help me identify the problem. I'm guessing the problem lies in how i issue the command in obm...
So how do you run the pre- and post-backup command?
-
I just put the line in the web interface (in Danish and the edit content is included in [])!
1 . Navn [Pre-backup]
Kommando [signal-event pre-backup]
Arbejdsmappe [/]
The command is executed because the MySQL dumps is generated etc.
This is the output of the log:
1 Info 2007/02/11 09:07 Start [ Linux 2.6.9-42.0.8.ELsmp (atkiserver.xxx.dk), Nordic
Backup 5.1.0.8 ]
2 Info 2007/02/11 09:07 Start running pre-commands
3 Info 2007/02/11 09:07 [Pre-backup] signal-event pre-backup
4 Info 2007/02/11 09:07 Finished running pre-commands
5 Info 2007/02/11 11:25 Start running post-commands
6 Info 2007/02/11 11:25 Finished running post-commands
Did not run the post-backup for this set, because it was not specified at that time. Will run again this weekend.
-
I've tries a couple of things now but can't get it to work.
when i just put a plain signal-event pre-backup in the commandline in the webinterface
Name: Pre-backup
Command: signal-eventpre-backup
Working Directory: /
then the error reads
No. Type Timestamp Backup Logs
1 Info 2007-02-21 08:09 Start [ Linux 2.6.9-42.0.3.ELsmp (os1.oosterheert), OBM 5.1.0.7d
]
2 Info 2007-02-21 08:09 Start running pre-commands
3 Info 2007-02-21 08:09 [Pre-backup] signal-event pre-backup
4 Error 2007-02-21 08:09 [Pre-backup][signal-event pre-backup] java.io.IOException:
signal-event: not found
5 Info 2007-02-21 08:09 Finished running pre-commands
It is as if the space between signal-event and pre-backup is misinterpreted, making the command to SME just sound like signal-event without specifying which signal-event...
however putting quotes on the command
command: "signal-event pre-backup"
results in:
No. Type Tijdstempel Backup logboeken
1 Info 2007-02-21 08:48 Start [ Linux 2.6.9-42.0.3.ELsmp (os1.oosterheert), OBM 5.1.0.7d
]
2 Info 2007-02-21 08:48 Start running pre-commands
3 Info 2007-02-21 08:48 [Pre-backup] "signal-event pre-backup"
4 Err 2007-02-21 08:48 [Pre-backup]["signal-event pre-backup"] java.io.IOException:
signal-event pre-backup: not found
5 Info 2007-02-21 08:48 Finished running pre-commands
i'm lost here. Is java having a rights problem?
-
Have 2 comments.
I use a different version of the software (see log)
No space between signal-event and pre-backup
-
You probably need the whole path, have you tried:
"sbin/e-smith/signal-event pre-backup" (with the quotes)
-
May have to specify the path in the "working directory" entry also
BTW: Where is the "backup to desktop" script located. Just for reference so that it is possible to change your own solution in the future when a new version of SME arrive (may change backup folders etc.)