qvm-backup-restore -e --debug /.snapshots/backup-2015-04-18
qvm-backup-restore -e --debug /.snapshots/backup-2015-04-18 dom0
qvm-backup-restore -e --debug /.snapshots/backup-2015-04-18 dom0-home
tar -i -xvf backup-2015-04-18
cd dom0-home
openssl dgst -sha512 -hmac "your_passphrase" user.000
cat user.000.hmac
#!/bin/bash
for f in user.???; do
echo $f
ls -l $f
openssl enc -d -pass file:/.snapshots/passwd -aes-256-cbc -in $f -out ${f}.dec
done
On Apr 20, 2015 9:33 AM, "Marek Marczykowski-Górecki" <marm...@invisiblethingslab.com> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Mon, Apr 20, 2015 at 05:56:29AM -0700, Jason M wrote:
> > Seems like I am unable to restore *dom0 backup* in R3; have not tried the
> > appvm's yet.
> >
> > I typically create 4 backup sets; dom0 only, backupvm only, appvms, and
> > templates.
> >
> > I have over a half dozen backups of dom0 and they all have same issue. I
> > copied the backup file directly to dom0 so it can be used with the command
> > line utility.
> >
> > qvm-backup-restore -e --debug /.snapshots/backup-2015-04-18
> > qvm-backup-restore -e --debug /.snapshots/backup-2015-04-18 dom0
> > qvm-backup-restore -e --debug /.snapshots/backup-2015-04-18 dom0-home
> >
> > I just get messages of 'Ignoring VM not selected for restore'
>
> Looks like you've found a bug in qvm-backup... dom0 is not included in
> qubes.xml stored in the backup, which is used to list what is there.
:)
>
> > So then I tried to manually extract the files and got stuck at the point
> > where I was receiving a bad magic number
> >
> > tar -i -xvf backup-2015-04-18
> > cd dom0-home
> >
> > openssl dgst -sha512 -hmac "your_passphrase" user.000
> > cat user.000.hmac
> >
> > Both signatures match.
> >
> >
> > Then created the following script:
> >
> > #!/bin/bash
> > for f in user.???; do
> > echo $f
> > ls -l $f
> > openssl enc -d -pass file:/.snapshots/passwd -aes-256-cbc -in $f -out ${
> > f}.dec
> > done
>
> I've just tried exactly the same and it worked... Does it happen on
> every file, or just one of them? Maybe your backup is not encrypted?
>
> Check backup-header - perhaps you've used different encryption
> algorithm or sth like this.
Strange. Yes it happens to all files and I actually copied and pasted the algorithm from the header file. I will try again once the rest of my backups are completed downloading to qubes. Maybe my password too long or weird lol
cat * > user.all
openssl enc -d -pass file:/.snapshots/passwd -aes-256-cbc -in user.all -out user.tar
tar -xvf user.tar