1

I have taken a dump of my server using the following command

/sbin/dump -0uan -f - / | gzip -2 | ssh -p ***** -c blowfish dev***@***.**.**.** dd of=/DATA/junkBEN/server-full-backup-date '+%d-%B-%Y'.dump.gz

This was suggested in this answer

However it does not say how to restore using the .gz file. Can someone guide me how to do so please. Thank you.

1 Answer 1

0

The dump command referred to is piped to gzip to be compressed. It's the gzip command you want. Decompress gzip files with this command:

gzip -d <filename>

Once the file decompressed, use the restore command to restore the dump. Depending on situation, maybe best to restore to a new directory to check the restored files veracity rather than overwrite the originals.

restore -f <decompressed-filename>
5
  • It says restore: /dev/tape: No such file or directory even when I run it in the same directory any idea why?
    – Red Bottle
    Aug 2, 2019 at 9:25
  • Presumably /dev/tape was mounted when the backup was made, and it is not mounted when the restore was done. It does not mean necessarily that the restore has failed.
    – suspectus
    Aug 2, 2019 at 9:32
  • ok Iam here now restore > after I typed restore -i -f <filename>. Whats next? I have no clue
    – Red Bottle
    Aug 2, 2019 at 9:33
  • Don't use -i it is interactive mode for selective restore. Answer edited.
    – suspectus
    Aug 2, 2019 at 9:38
  • which one should I use then
    – Red Bottle
    Aug 2, 2019 at 10:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .