I created a site backup using WATO applying encryption and I’m trying to decrypt this backup later from command line without success. Openssl says:
“rsa_ossl_private_decrypt:data greater than mod len:”
The srting I’m using is:
"openssl rsautl -decrypt -in /tmp/site-backup.tar.gz.enc -out /tmp/site-backup.tar.gz -inkey Check_MK_backup_key-1.pem
Hi @sanderbohm
unfortunately I have not found a solution and was not able to decrypt the backup using the mkbackup script on command line. I find it a pity that there is no corresponding support from checkmk here.
Hi @gstolz ,
in my case I want to copy an encrypted backup to another server and restore it there. My first attempt looks like follows:
root@host
# omd restore /backup/site-bkp.tar.gz.enc
Failed to open the backup: file could not be opened successfully:
- method gz: ReadError('not a gzip file')
- method bz2: ReadError('not a bzip2 file')
- method xz: ReadError('not an lzma file')
- method tar: ReadError('invalid header')
The Site I want to restore does not exist on my server. If I understand you right, I first have to create the site to which I want to restore my backup. And then as site user use the command:
afaik, mkbackup only restores the checkmk part, and omd is a little more, or at least used to be. I.e. pnp4nagios in the raw edition. So I share your understanding, for “mkbackup restore” to work, you first need an existing (albeit almost empty) site where you manually include the encryption key needed to decrypt the backup.
@mschlenker I looked for mkbackup documentation but there is very little so far, did I miss something, or is that on your todo list somewhere :)?
The preferred way to restore encrypted backups is to setup an empty site and run restore from the GUI there. Since mkbackup is only used internally and never was intended to be user facing, we will not document this tool.
However, AFAIK dev is working on adding the possibility to restore encrypted backups to omd backup. We will adjust the docs accordingly when this becomes available.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.