naparuba/shinken — Issue #156: [shinen.sh] Auto restore backup when crash occurs
Author: Seb-Solon
Created: 2012-02-04 14:41:52+00:00
State: open

Hi,

I'm finally test shinken.sh. And for now it is not my friend :'(.
I modified the shinken.conf to update my installation path and my group/user. I launched with -u option and unfortunately it carshed. (I will paste the error after)
It may be great if the script could restore the backup done before. Because here, I have my backup in /opt/backups/bck-shinken.ID/ and the sources of shinken in the installation path.

I also notice that the backups directory only contains "etc" "libexec" and "var" directory. As the script removed everything the folder during the install, I have lost my "bin" directory which was not containing only shinken binaries :)

Maybe I will create a new ticket to suggest to add a warning if you remove something which is not included in the backup.

Here the error returned by the scirpt :

ln: création d'un lien symbolique «/etc/default/shinken»: Le fichier existe (ln : "creating symbolic link «/etc/default/shinken»: File exists)
[FATAL] Unexpected error on line 641 in function update (1)

Pretty logic, it was an update :)