Sponsored Content
Full Discussion: Recovery Script
Top Forums Shell Programming and Scripting Recovery Script Post 302539086 by cero on Friday 15th of July 2011 07:28:01 AM
Old 07-15-2011
The recovery process heavily depends on the way you backed up your files.
Without a backup an undelete is not possible with the tools a shell script provides. The data your files contained may still be on your disk, but the inode entries are discarded.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Password recovery

We recently terminated a developer at my place of employment who created scripts on a windows server (that i do not have access to) that invoke FTP sessions on my UnixWare 7.1.1 servers. I need to know the password that is being used. Does anyone know of a good password crack? (8 Replies)
Discussion started by: rm -r *
8 Replies

2. UNIX for Dummies Questions & Answers

Password Recovery

Hi, I am new to unix and I set a password for a user and now I need to recover what that password was. Is there a way, where as root, I can view what a users passwords is? Thanks, Eric (2 Replies)
Discussion started by: ejbrever
2 Replies

3. Solaris

crashdump recovery help

Hi all, how i recovery the files when system is crash? (using crashdump concept) regards Krishna (1 Reply)
Discussion started by: murthy76
1 Replies

4. Solaris

Solaris recovery

Some thing happened to our solaris 10 ( sparc ) box and it is not coming up now. These are some of the console messages : I assume it is not able to find very basic system libraries so i need to tell it some how to find it under /lib:/usr/lib. I booted it from the CD but now i... (4 Replies)
Discussion started by: rajwinder
4 Replies

5. AIX

AIX DR Recovery

I will be going for a DR test next month and have few concerns regarding restoring user vg's System which will be restored is on P750 (AIX 6.1) and the DR hdwr is P570. I do have bootable mksysb of the system and also have savevg (with no data) using "savevg -r -f " for the user volume... (5 Replies)
Discussion started by: mk8570
5 Replies

6. AIX

Automated Disk space recovery script

Hi, I have to write a shell script for disk space recovery - We have been facing disk space shortage issues very often. d=`df -k |awk '{print $5}' | egrep "" | cut -c-2` if then echo "DISK SPACE STATUS :NOT OK" >> /backup/stats/healthcheck/SCP1_BLU_HCsummary_$dt.txt else echo "DISK... (3 Replies)
Discussion started by: vasukv
3 Replies

7. Shell Programming and Scripting

bash script for password recovery

Hi all, I'm a complete newbie to bash scripting, although I have some experience in programming. The thing is that I have a .dmg file on my mac which I protected with a password, and now I've forgotten it. I remember the first few letters of the password and the characters that represent the... (4 Replies)
Discussion started by: sujay.jauhar
4 Replies

8. Homework & Coursework Questions

Password recovery in login script help

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Hi guys. My case study is about creating a script that includes password recovery whenever a user forgets... (1 Reply)
Discussion started by: jenimesh19
1 Replies

9. Shell Programming and Scripting

Script to automate recovery process

Hello All! First post... I am working on a script that is used to recover a crashed drive from an rsync backup. I'm down to the place where I need to create all of the directories in /mnt where I will then mount each of the volumes and begin the restore process to each volume... I have... (3 Replies)
Discussion started by: RogerBaran
3 Replies

10. Ubuntu

Backup and Recovery

Is it possible to take incremental backup in Linux using tar command? Please guide me. Suppose I have a directory /data. And want incremental backup. What will be the incremental "tar" command syntax? (6 Replies)
Discussion started by: engineer2002
6 Replies
EXT3GREP(8)						 recover files on ext3 filesystems					       EXT3GREP(8)

NAME
ext3grep - ext3 file recovery tool SYNOPSIS
ext3grep [OPTIONS] FILE ... DESCRIPTION
ext3grep is a simple tool intended to aid anyone who accidentally deletes a file on an ext3 filesystem, only to find that they wanted it shortly thereafter. OPTIONS
--superblock Print contents of superblock in addition to the rest. If no action is specified then this option is implied. --print Print contents of block or inode, if any. --ls Print directories, one line per entry. See the FILTERS section for details on filtering this output. --accept FILE Accepts 'file' as a legal filename. Can be used multiple times. If you change any --accept you must remove BOTH stage* files! --journal Prints the contents of the journal. --show-path-inodes Show the inode of each directory component in paths. Filters: --group gid Only show/process files owned by process group gid. --directory Only show/process process directory inodes. --after dtime Only show/process entries deleted on or after dtime. --before dtime Only show/process entries deleted before dtime. --deleted Only show/process deleted entries. --allocated Only show/process allocated inodes/blocks. --unallocated Only show/process unallocated inodes/blocks. --reallocated Do not suppress entries with reallocated inodes. Inodes are considered 'reallocated' if the entry is deleted but the inode is allo- cated, but also when the file type in the dir entry and the inode are different. --zeroed-inodes Do not suppress entries with zeroed inodes. Linked entries are always shown, regardless of this option. --depth depth Process directories recursively up till a depth of 'depth'. Actions: --inode-to-block inode_num Print the block that contains inode inode_num. --inode inode_num Show info on inode inode_num. If --ls is used and the inode is a directory, then the filters apply to the entries of the directory. If you do not use --ls then --print is implied. --block block_num Show info on block block_num. If --ls is used and the block is the first block of a directory, then the filters apply to entries of the directory. If you do not use --ls then --print is implied. --histogram=[atime|ctime|mtime|dtime|group] Generate a histogram based on the given specs. Using atime, ctime or mtime will change the meaning of --after and --before to those times. --journal-block block_num Show info on journal block block_num. --journal-transaction seq Show info on transaction with sequence number seq. --dump-names Write the paths of files to stdout. This implies --ls but suppresses its output. --search-start str Find blocks that start with the fixed string str. --search str Find blocks that contain the fixed string str. --search-inode block_num Find inodes that refer to block block_num. --search-zeroed-inodes Return allocated inode table entries that are zeroed. --inode-dirblock-table dir Print a table for directory path dir of directory block numbers found and the inodes used for each file. --show-journal-inodes inode_num Show copies of inode inode_num still in the journal. --restore-file path Will restore file path. path is relative to root of the partition and does not start with a '/' (it must be one of the paths returned by --dump-names). The restored directory, file or symbolic link is created in the current directory as ./path. --restore-all As --restore-file but attempts to restore everything. The use of --after is highly recommended because the attempt to restore very old files will only result in them being hard linked to a more recently deleted file and as such pollute the output. --show-hardlinks Show all inodes that are shared by two or more files. --version, -[vV] Prints the version information and exits. --help, Prints a help message and exits. EXAMPLES
Restoring all files from the ext3 partition/file /backup/sda1: ext3grep --restore-all /backup/sda1 Listing the files owned by GID 1000 on /backup/sda1: ext3grep --ls --group 1000 /backup/sda1 Finding all files containing the string Critical_report in their name on /backup/sda1: ext3grep --dump-names /backup/sda1 | grep 'Critical_report' LIMITATIONS
Do not attempt to use ext3grep for recovery from a mounted filesystem. Ever. No, not even then. ext3grep sometimes runs out of memory spare on 32-bit architectures and crashes. It is highly recommended that you run ext3grep in a 64-bit environment when dealing with large filesystems, though this is seen as a bug. ext3grep cannot recover files if there are no remnants of them. Some files that ext3grep recovers may have trailing null bytes - just scrape them off like the burnt bits on toast. SEE ALSO
debugfs(8) AUTHOR
ext3grep was written by Carlo Wood <carlo@alinoe.com>. This manual page was written by Rich Ercolani <rercola@acm.jhu.edu>, for the Debian project (but may be used by others). It may be distrib- uted under the same terms as ext3grep, the GNU General Public License, either version 2 or (at your option) any later version. 0.8.0 2008-09-14 EXT3GREP(8)
All times are GMT -4. The time now is 03:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy