PDA

View Full Version : Restore Windows Client (one file/subfolder)



ulrich
November 26th, 2008, 01:31 AM
Hi,

I am recently testing Amanda 2.6.0p2 with ZWC community and am trying to "easily" restore single files keeping all acls.
I have set up the server under Ubuntu 8.04, writing all data to the harddisk (vtapes).
I can backup my winXP Client with ZWC without problems. But when it comes to restoring I get confused.
What I did:
cd /tmp
sudo -u backup amfetchdump daily thales.local.triagnosys.com C:/amandatest/

giving me the whole dump. I copied it to my windows client where I unpacked it using winrar.
In this scenario I have no problems because C:\amandatest is just 1Mb.
But our servers contain of course much more data. So amfetchdump will take hours and copying the dump will take hours.
Plus I get several dumps (full and the following incrementals). That would leave me extracting all of them and copying the newest files from the incrementals, right?

So I tried:
amrecover daily -t johndoe.local.triagnosys.com -s johndoe.local.triagnosys.com
sethost thales
setdisk C:/amandatest



AMRECOVER Version 2.6.0p2. Contacting server on johndoe.local.triagnosys.com ...
220 johndoe AMANDA index server (2.6.0p2) ready.
Setting restore date to today (2008-11-25)
200 Working date set to 2008-11-25.
200 Config set to daily.
501 Host johndoe is not in your disklist.
Trying host johndoe ...
501 Host johndoe is not in your disklist.
Trying host johndoe ...
501 Host johndoe is not in your disklist.
Use the sethost command to choose a host to recover
amrecover> sethost thales
501 Host thales is not in your disklist.
Trying host thales.local.triagnosys.com ...
200 Dump host set to thales.local.triagnosys.com.
amrecover> ls
Must select a disk before listing files; use the setdisk command.
amrecover> listdisk
200- List of disk for host thales.local.triagnosys.com
201- "C:/amandatest/"
201- "C:/Intel/"
201- "C:/Dokumente und Einstellungen/admin/"
200 List of disk for host thales.local.triagnosys.com
amrecover> setdisk C:/amandatest/
200 Disk set to "C:/amandatest/".
amrecover> ls
2008-11-25-13-57-45 "neu rtf-dokument.rtf"
2008-11-25-13-10-43 wrar380.exe
2008-11-25-13-10-43 berechtigungen/
amrecover> add wrar380.exe
Added file /wrar380.exe
amrecover> extract

Extracting files using tape drive changer on host johndoe.local.triagnosys.com.
The following tapes are needed: daily003

Restoring files into directory /tmp
Continue [?/Y/n]?

Extracting files using tape drive changer on host johndoe.local.triagnosys.com.
Load tape daily003 now
Continue [?/Y/n/s/d]?
warning: restore program for pkzip not available.
amrecover couldn't exec: No such file or directory
problem executing restore
Extractor child exited with status 1
amrecover>


What am I doing wrong?

Regards,
Ulrich

paddy
November 26th, 2008, 04:08 PM
amrecover command will have to transfer the whole backup image to the client before extracting the file.

amrecover does not know how to handle images backed up by Zmanda Windows Client (ZIP format files).

Paddy

ulrich
November 28th, 2008, 12:06 AM
So I am right with my assumption that a restore for one file will take hours in case my backup is very large?

Is there another way to backup windows with acls in amanda? Right now we are using amanda 2.5 and are backing up our windows servers via samba.

Regards,
Ulrich

kekiku
April 21st, 2009, 06:46 PM
i noticed that this question was left unanswered. can anyone confirm this? can you only restore by what you have listed in disklist? i.e.; if you have e: in disklist, you cannot specify e:/home/myhome for amfetchdump?

thank you in advance...

paddy
April 22nd, 2009, 11:14 AM
i noticed that this question was left unanswered. can anyone confirm this? can you only restore by what you have listed in disklist? i.e.; if you have e: in disklist, you cannot specify e:/home/myhome for amfetchdump?

thank you in advance...

Yes. amfetchdump parameter "diskname" must match what is there in the disklist configuration file.

Paddy

kekiku
April 22nd, 2009, 01:12 PM
thank you very much for your reply!:D

kekiku
December 17th, 2009, 05:47 PM
not to beat the horse to death, but may i ask another question about disklist and restores?

is there any utility/command/whatever that would allow me to specify 'e:' for windows or '/home' for unix in my disklist file but be able to restore in more detail? i.e.; 'e:/home/noname/docs' for windows and/or '/home/noname/scripts' for unix?

thank you in advance.

paddy
April 26th, 2010, 05:30 PM
You can use amrecover for Unix files (http://wiki.zmanda.com/man/amrecover.8.html)

Use setdisk command to set the DLE (/home) and use add command to add the specific directories (/home/noname/scripts) to be restored.