- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- using frecover to "clone" a filesystem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2001 08:55 AM
08-28-2001 08:55 AM
a test filesystem. Is there a way to use frecover and a
current set of backups to do this ?
If I can use frecover, I can probably do this with the system up.
My alternative is to take the system down and "cp"
the files.
Thanks in advance,
Craig Holbert
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2001 09:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2001 09:23 AM
08-28-2001 09:23 AM
Re: using frecover to "clone" a filesystem
You could do this using 'frecover'.
Consider the example of a file called "/tmp/dummydir/myfile" on an 'fbackup' tape. Given that you want to restore this to the /var directory, do this:
# cd /var
# frecover -f /dev/rmt/0m -X -x -i /tmp/dummydir/myfile
This will recover the file so that it is:
/var/tmp/dummydir/myfile
At this point you can trim intermediate directories you don't want by moving ('mv') the files.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2001 09:40 AM
08-28-2001 09:40 AM
Re: using frecover to "clone" a filesystem
you may also use cpio. cp will not get all the regular files and those that start with ".", etc. (at least in one pass).
try:
cd /source_dir
find . -depth -print|cpio -pdm /new_dir
of course, the source directory should be "quiet".
HTH
David Lieberman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2001 10:12 AM
08-28-2001 10:12 AM
Re: using frecover to "clone" a filesystem
Assuming that I have last night's set of 2 DLT backup tapes and know what each tape contains ...
Can I do this:
cd /new_dir
frecover -Fx -i /old_dir -f /dev/rmt/5m
thanks again
Craig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2001 12:54 PM
08-28-2001 12:54 PM
Re: using frecover to "clone" a filesystem
The -F option would be usefull if there aren't any subdirs in /old_dir, because it will strip off all dir paths and restore them to the current working dir. Otherwise I would use James' suggestion (he's always right!).
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2001 01:15 PM
08-28-2001 01:15 PM
Re: using frecover to "clone" a filesystem
I agree with Denver insofar as the '-F' option would be perfect if you don't have any leading directories. Otherwise...
BTW, the '-F' and '-X' options are mutually exclusive. If you try to include both, you will get: "specified both X and F keys; F assumed".
ALSO: Denver => Oh, Lord, I wish that I could be... ;-)
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 10:56 AM
08-29-2001 10:56 AM
Re: using frecover to "clone" a filesystem
I tested this late yesterday afternoon with some log files.
I am doing it for real right now.
I did a cd /new_dir/only_sub_dir
and specified frecover -Fx -i /old_dir/only_sub_dir -f
/dev/rmt/5m
cp or cpio would have been ok, but would have to
quiesce the system to keep all the files in sync ...
This way I can take 2 or 3 days using the same set of
backups to keep it all in sync
craig