Score:0

Can't restore from backup.tar.gz

ma flag

I had this code in cron on my old server (20.04 FF Server) making a backup using ssh and openssl.

tar -cpzf /backup/backup.tar.gz --one-file-system ; openssl enc -pbkdf2 -aes-256-cbc -pass file:/root/pass -in /backup/backup.tar.gz -out /backup/backup.tar.gz.enc ; rsync -a /backup/backup.tar.gz.enc [email protected]:/home/admin

I've lost those machine accidentally and now trying to restore from my backup. Well there was no problem with OpenSSL, but I can't restore the backup. Trying this code:

sudo tar -zxvpf /recovery/backup.tar.gz -C /restore --numeric-owner

It gives:

`gzip: stdin: not in gzip format 
tar: Child returned status 1
tar: Error is not recoverable: exiting now

using "file" command, I have

/recovery/backup.tar.gz: data

So it doesn't see it as gzip

Using "less" I see it's binary

I tried without "-z", no effect. If the file was broken during the transfer, I wouldn't decrypt it on a backup machine, I suppose. Anyway, that's a decryption code:

openssl enc -d -pbkdf2 -aes-256-cbc -pass file:/root/pass  -in /home/user/backup.tar.gz.enc -out /recovery/backup.tar.gz

Does anyone have any suggestions to solve it?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.