Fedora Linux Support Community & Resources Center
  #1  
Old 5th June 2012, 11:02 PM
bitsofme Offline
Registered User
 
Join Date: Jul 2004
Location: Isle of Man
Age: 45
Posts: 75
linuxchrome
Restore amanda back up

Hi all,

While trying to upgrade to f17 i messed up my boot disk.

Not a problem I thought just install F17 as a fresh install as all my data is on other hard drives in a logical volume.

Problem I lost my logical volume configuration and can not open the logical volume.

Not a problem as I back up my /etc partition to amazon s3 using amanda and I copied my amanda config so if I lost the system I had a working config.

Problem my indexes are gone (did not know I needed to back them up as well).

Trying to restore using amrestore as it does not use indexes results in -

Restoring from tape DailySet1-1 starting with file 1.
amrestore: 1: skipping split dumpfile: date 20120501024502 host main disk /home/andrew/Documents/scans part 1/UNKNOWN lev 1 comp .gz program /bin/tar crypt enc server_encrypt /usr/sbin/amcrypt-ossl server_decrypt_option -d
amrestore: 2: skipping split dumpfile: date 20120501024502 host main disk /home/andrew/dosprog part 1/UNKNOWN lev 1 comp .gz program /bin/tar crypt enc server_encrypt /usr/sbin/amcrypt-ossl server_decrypt_option -d
amrestore: 3: skipping split dumpfile: date 20120501024502 host main disk /home/andrew/Dropbox/Photos part 1/UNKNOWN lev 0 comp .gz program /bin/tar crypt enc server_encrypt /usr/sbin/amcrypt-ossl server_decrypt_option -d
amrestore: 4: skipping split dumpfile: date 20120501024502 host main disk /home/andrew/Dropbox/certificates part 1/UNKNOWN lev 1 comp .gz program /bin/tar crypt enc server_encrypt /usr/sbin/amcrypt-ossl server_decrypt_option -d
amrestore: 5: skipping split dumpfile: date 20120501024502 host main disk "/home/andrew/My Kindle Content" part 1/UNKNOWN lev 1 comp .gz program /bin/tar crypt enc server_encrypt /usr/sbin/amcrypt-ossl server_decrypt_option -d
amrestore: 6: skipping split dumpfile: date 20120501024502 host main disk /home/andrew/Documents/Personal part 1/UNKNOWN lev 0 comp .gz program /bin/tar crypt enc server_encrypt /usr/sbin/amcrypt-ossl server_decrypt_option -d
amrestore: 7: skipping split dumpfile: date 20120501024502 host main disk "/home/andrew/Calibre Library" part 1/UNKNOWN lev 0 comp .gz program /bin/tar crypt enc server_encrypt /usr/sbin/amcrypt-ossl server_decrypt_option -d
amrestore: 8: skipping split dumpfile: date 20120501024502 host main disk /etc part 1/UNKNOWN lev 1 comp .gz program /bin/tar

anyone know how to restore a split backup from amazon s3 without indexes so I can remount my logical volume and get my data back?

I found this http://wiki.zmanda.com/index.php/Res...th_split_dumps

but the files are named differently slot-35f00000001-b0000000000000000.data

Any thoughts?

Thanks

---------- Post added at 11:02 PM ---------- Previous post was at 09:20 PM ----------

Hi Again,

Downloaded the last tape from s3 and the filestart contains this

AMANDA: SPLIT_FILE 20120604024502 main /etc part 1/-1 lev 1 comp .gz program /bin/tar
ORIGSIZE=21530
DLE=<<ENDDLE
<dle>
<program>GNUTAR</program>
<disk>/etc</disk>
<level>1</level>
<auth>BSDTCP</auth>
<compress>FAST</compress>
<record>YES</record>
<index>YES</index>
<datapath>AMANDA</datapath>
</dle>
ENDDLE
To restore, position tape at start of file and run:
dd if=<tape> skip=1 | /usr/bin/gzip -dc | /bin/tar -xpGf - ...

I tried the dd command and after changing <tape> to the filename of the first backup file I get -

dd if=slot-35f00000007-b0000000000000000.data skip=1 | /bin/gzip -dc | /bin/tar -xpG

gzip: stdin: not in gzip format
/bin/tar: This does not look like a tar archive
/bin/tar: Exiting with failure status due to previous errors

Last edited by bitsofme; 5th June 2012 at 11:08 PM.
Reply With Quote
  #2  
Old 6th June 2012, 06:14 PM
bitsofme Offline
Registered User
 
Join Date: Jul 2004
Location: Isle of Man
Age: 45
Posts: 75
linuxchrome
Re: Restore amanda back up

Hi all,
changed the command to

dd if=slot-35f00000007-b0000000000000000.data | /bin/gzip -dc | /bin/tar -xpG -

and my files appeared.

The skip=1 must bypass the header file on the tape but if the file is on the disk nothing to skip.

yea Linux now just need to work out why everything but the etc folder was encrypted.
Reply With Quote
Reply

Tags
amanda, restore

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A n00bs question on Backup and Restore - Time Machine / System Restore wise (!!) padre_e Gamers' Lounge 3 25th August 2010 02:18 PM
backup restore and restore point. F.User_4_Life Using Fedora 0 12th April 2008 12:51 AM
Can I sytstem restore or revert back... I gotta problem? relay01 Using Fedora 2 23rd April 2007 08:53 AM
amanda client chris_maden Using Fedora 0 21st October 2006 03:46 AM


Current GMT-time: 19:37 (Wednesday, 23-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat