Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: arnoldob on July 25, 2008, 07:24:29 PM

Title: DAR2 Command Line Restore
Post by: arnoldob on July 25, 2008, 07:24:29 PM
Hello,

I managed to break my SME 7.3 server certificates to the point that I can't access web pages at all. I need to do a command line restore with dar2. I can't use the server-manager. But I can get to root from console. I see in this post:

http://forums.contribs.org/index.php?topic=34041.0

You mention that the backup/restore can be run from the command line.

Quote
For restores, best to use the panel only. It is possible to execute from the command line but you need to fully understand and populate restore.job db entries.


The most recent backup set is named: /media/backup/spanky.bertoncini.net/911/2008.07.25.1.dar
I need to selectively restore just these:

/home/e-smith/ssl.crt
/home/e-smith/ssl.key

I see there's a /etc/e-smith/events/actions/dar2-restore

What command line options do I need to use to restore just my cert directories from the command line?

Regards,
 
Arnoldo (Sonny) Bertoncini
sonnyb@gxs.com
Technical Analyst
Title: Re: DAR2 Command Line Restore
Post by: arnoldob on July 25, 2008, 09:49:40 PM
I found the answer to the cert issue I created:
config setprop modSSL CommonName www.domain.com
expand-template /home/e-smith/ssl.crt/crt
expand-template /home/e-smith/ssl.key/key
signal-event domain-modify
signal-event email-update

That allowed me to get back into the server-manager, ibay websites, etc. after I unintentionally blew my cert away.

I would still like to know how to run a dar2 selective restore from the command line, in case I do something stupid again. And really that's just a matter of time. I prefer to think of it as a learning opportunity. :)
Title: Re: DAR2 Command Line Restore
Post by: Jáder on July 25, 2008, 10:01:08 PM
you could use the MC extension to open .dar files, so would be a nice replacement to command line interface ! ;)