restore file or dir from dump file
Is it possible to restore just single file or directory from a dump file?
Which switch should I use? regards brumela |
Could you be more specific? How did you get the dump file, which application did you use to create it, what directory or file are you trying to retrieve... :) A dump file could mean a variety of things.
Cool |
hmm,... yes you are right, I created my dump file with dump command, like this
Quote:
|
Well it looks like there is a restore command that comes with the dump package (don't have it, simply reading what's available on the net) and if it's run in interactive mode you can restore single directories.
Cool |
yes, you can restore a single file from a "dump"
I have used dump/restore throughout my 40+ year career as a *NIX/SA and still use it today.
dump/restore were the old ways of backing up systems that old *NIX hacks used. Many UNIX SA's still use them today because they are complete. Most people do not use dump today because they are unaware or have forgotten, but it works and works very well. If you have a backup script that runs monthly via root cron (server_dump.sh) to back up a server like this (level 0 dump): Code:
#!/bin/bash Code:
mke2fs /dev/sda1 (the following command runs "restore" in an interactive mode so it doesn't do anything without asking): root@mon1:/backups/servers/prod-db-01# restore -ivf <full pathname of dump file> Once "restore" opens and reads the header, it will present you with a prompt: "restore >", at this prompt you can type various commands that let you traverse the directory paths within the dump, list directories, restore files, etc.) Code:
Verify tape and initialize maps Code:
restore> ls[ENTER] Please review the man page for "restore". The linux version was written by the gentlman that wrote the original version of "dump/restore" so it's complete. I hope this works for you. Thanks, David |
Quote:
|
after 19 years
There are lot of UNIX admins still working on old systems and may not know how to use the dump/restore command. I found this thread because I was double-checking my memory. I think the important thing is the sharing of information. Right?
|
Quote:
|
All times are GMT -5. The time now is 12:07 AM. |