Restore issues
"Nathan G. Grennan" <[email protected]> Sun, 04 Jul 2004 12:25:35 -0700
| Newsgroups | gmane.comp.sysutils.backup.hdup.general |
|---|---|
| Organization | Cygnus X-1 |
| Message-ID | <[email protected]> |
I finally got around to trying restore after backing up for months. I was using tar+bz2+mcrypt, and it backed up without problems. But I was completely unable to get it to restore from such files. Both locally and remotely. It seemed to be an issue with decrypting, even though I know I have the right key. After the error that it couldn't decrypt I got error messages similar to those below(name mismatch). I had already planned to switch to tar+bz2+gpg, and decided to move ahead. I was able to successfully backup(after the change mentioned in my last message). I wanted to make sure restore was going to work now instead of running into the same problem in the future. I tried a remote restore first. The first problem I ran into was that ssh and gpg both wanted a password at the same time. To workaround this I setup a dsa key to set the backup server in as root to the server I was trying to restore. Then I found it won't restore remotely. I get [[email protected] .ssh]$ hdup -V -V restore ns2 07-04-2004 /restore @[email protected] No -c switch using default configfile: /etc/hdup/hdup.conf. hdup: ns2: STARTING RESTORE. No user given, defaulting to: operator. No tar path given, defaulting to: /bin/tar. No mcrypt path given, defaulting to: /usr/bin/mcrypt. No gpg path given, defaulting to: /usr/bin/gpg. restore: looking in /home/ns2/07-04-2004. Restoring from /home/ns2/07-04-2004/ns2.07-04-2004.monthly.tar.bz2.nc. You need a passphrase to unlock the secret key for user: "ns2.domain.com (hdup) <admin-9IKiO1iGCm/[email protected]>" 2048-bit ELG-E key, ID 235EDA21, created 2004-05-10 (main key ID 98CB7724) gpg: encrypted with 2048-bit ELG-E key, ID 235EDA21, created 2004-05-10 "ns2.domain.com (hdup) <admin-9IKiO1iGCm/[email protected]>" /usr/sbin/hdup (remote): WARNING: Protocol: name mismatch! /usr/sbin/hdup (remote): Protocol: bogus header. /usr/sbin/hdup (remote): WARNING: No lockfile found! gpg: Error writing to `-': Broken pipe gpg: handle plaintext failed: file write error hdup: WARNING: SIGINT received, cleaning up! gpg: some signal caught ... exiting hdup: WARNING: SIGPIPE received, cleaning up! hdup: WARNING: AN ERROR OCCURED! Hdup version.: 1.6.31 Host.........: ns2 Date.........: 07-04-2004 Scheme.......: restore Encryption...: yes (gpg, 98CB7724) AN ERROR OCCURED! NOTHING WAS DONE! I had to ctrl-c to get past the file write error. I then tried locally, and it seems to work, though I get an errors. [[email protected] src]$ mkdir /restore [[email protected] src]$ hdup -V -V restore ns2 07-04-2004 /restore No -c switch using default configfile: /etc/hdup/hdup.conf. hdup: ns2: STARTING RESTORE. No user given, defaulting to: operator. No tar path given, defaulting to: /bin/tar. No mcrypt path given, defaulting to: /usr/bin/mcrypt. No gpg path given, defaulting to: /usr/bin/gpg. restore: looking in /home/ns2/07-04-2004. Restoring from /home/ns2/07-04-2004/ns2.07-04-2004.monthly.tar.bz2.nc. You need a passphrase to unlock the secret key for user: "ns2.domain.com (hdup) <admin-9IKiO1iGCm/[email protected]>" 2048-bit ELG-E key, ID 235EDA21, created 2004-05-10 (main key ID 98CB7724) gpg: encrypted with 2048-bit ELG-E key, ID 235EDA21, created 2004-05-10 "ns2.domain.com (hdup) <admin-9IKiO1iGCm/[email protected]>" /bin/tar: : Cannot mkdir: No such file or directory /bin/tar: Error exit delayed from previous errors Restoring from /home/ns2/07-04-2004/ns2.07-04-2004.weekly.tar.bz2.nc. You need a passphrase to unlock the secret key for user: "ns2.domain.com (hdup) <admin-9IKiO1iGCm/[email protected]>" 2048-bit ELG-E key, ID 235EDA21, created 2004-05-10 (main key ID 98CB7724) gpg: encrypted with 2048-bit ELG-E key, ID 235EDA21, created 2004-05-10 "ns2.domain.com (hdup) <admin-9IKiO1iGCm/[email protected]>" /bin/tar: : Cannot mkdir: No such file or directory /bin/tar: Error exit delayed from previous errors hdup: WARNING: AN ERROR OCCURED! Hdup version.: 1.6.31 Host.........: ns2 Date.........: 07-04-2004 Scheme.......: restore Encryption...: yes (gpg, 98CB7724) Archives.....: ns2.07-04-2004.monthly.tar.bz2.nc ns2.07-04-2004.weekly.tar.bz2.nc AN ERROR OCCURED! NOTHING WAS DONE! [[email protected] src]$ ls /restore bin etc initrd mnt perllocal.pod sbin sys usr boot home lib opt root selinux tmp var [[email protected] src]$