Re[2]: Search file in amanda database
2005-06-08 07:19:23
Hello, Gavin,
on 08.06.2005, 12:42 you wrote to amanda-users AT amanda DOT org:
GH> Well, you didn't look very hard, did you ;-)
GH> http://www.amanda.org/docs/using.html#config_use_amrecover
I think Giovanni wants to recover a file without even knowing the path
...
If this is the case I would simply use something like
# zgrep -R pippo.sh <indexdir>/<hostname>/*
Example:
root@oops1:/usr/adm/amanda/daily/index/oops1 # zgrep -R amdump */*
[...]
_home_Amanda/20050504_0.gz:/amanda-2.4.5b1-20050406/man/amdump.8
_home_Amanda/20050505_0.gz:/amanda-2.4.5b1-20050406/man/amdump.8
_home_Amanda/20050506_0.gz:/amanda-2.4.5b1-20050406/man/amdump.8
[...]
which would give me back the information of DLE and date (inside path
and filename of the found files).
In the example I have dumps of amdump.8 for 2005-05-04, 2005-05-05 and
2005-05-06 on DLE /home/Amanda ...
After that I could use this information inside amrecover to find the
proper tape.
Basically the same procedure as Alex has described already, just with
more words :)
---
Best regards,
Stefan G. Weichinger.
mailto://sgw AT amanda DOT org
|
|
|