Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support Can't restore my deleted etc from tape Post 302535626 by styno on Friday 1st of July 2011 10:04:59 AM
Old 07-01-2011
- You can first check/test the archive with "tar -tvf /dev/yourtape".
- Then check the output and verify the full paths to the files on tape.
- if the filepath is /etc/yourfiles you can restore from anywhere, if it is etc/yourfiles (notice, no leading slash) then you should restore from the read-write mounted location of the original root filesystem.
- read-only could mean that you are still sitting in the path where the cdrom is (ofcourse) read-only mounted
This User Gave Thanks to styno For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Tape Restore Problems!!!

Hi. I have been having problems with restoring from a tape backup. I use the following cpio command: find / -print | cpio -ouvB > /dev/rStp0 After running this cpio command, the screen will display all files, but when I try to read or restore the tape I get the following error: Tape input... (1 Reply)
Discussion started by: cstovall
1 Replies

2. Filesystems, Disks and Memory

Restore to disk from tape

I have been restoring from tape some old data. I have done quite a few tapes and have had no problems until now. The command I am running is "dd if=/dev/rmt/1hbn bs=1024 | tar -pBxF - ". This is the second tape have have come up with the error "Not enough space". This tape has a couple of... (1 Reply)
Discussion started by: mtoombs
1 Replies

3. Linux

how can i restore a deleted file

I am a relatively new linux user.would like to know how to undo a deleted file (2 Replies)
Discussion started by: wojtyla
2 Replies

4. HP-UX

Backup Tape Restore?

I am trying to do a restore on a backup tape (DDS2) and am having a little trouble. For one, I dont know how the tape was made, whether is was tar, cpio, dump..etc. Anyone know how to restore a tape without knowing the format of the backup? (5 Replies)
Discussion started by: bake255
5 Replies

5. AIX

Restore a tape

Hello everyone I have a tape with some information that I got to restore, the tape was made with the fbackup command in a hp box. My question is that I have to restore in a Ibm box, how can I do this ? Thanks in advance (1 Reply)
Discussion started by: lo-lp-kl
1 Replies

6. Solaris

restore deleted folder

Hi, Can someone help me out as to how to recover a deleted folder? the user id which deleted the folder is known, the approx time is known. Its urgent, plz help (2 Replies)
Discussion started by: aboxilica
2 Replies

7. Shell Programming and Scripting

how to restore the deleted files

hi, if i delete a file from /home/san/abc.cpp in linux/unix and i want to restore it back how to do that ? (3 Replies)
Discussion started by: mail2sant
3 Replies

8. Shell Programming and Scripting

Restore File To Its Location from where it was deleted

Hello, When I am deleleting some file that time I am moving that file to backup directory and when I say restore then its showing me the backupdirectory path and file with index..Ex..if i delete 3 files then restore will shoe me: :0:/backup/somedeletedfile :1:/backup/somedeletedfile10... (2 Replies)
Discussion started by: AbhijitIT
2 Replies

9. Shell Programming and Scripting

restore deleted file

I accidently deleted the files from linux machine. How to restore back the files. (1 Reply)
Discussion started by: sandy1028
1 Replies

10. Solaris

Emergency - restore a deleted zfs snapshot

Hi, I deleted a zfs snapshot because it was as big as the original zfs. After the snapshot was removed, all the data in the original zfs is gone. How this happened? Can I restore the snapshot? Please help. Thanks a lot! (5 Replies)
Discussion started by: aixlover
5 Replies
FSARCHIVER(8)						      System Manager's Manual						     FSARCHIVER(8)

NAME
fsarchiver - filesystem archiver DESCRIPTION
fsarchiver is a system tool that allows you to save the contents of a filesystem to a compressed archive file. The file-system can be restored on a partition which has a different size and it can be restored on a different file-system. Unlike tar/dar, FSArchiver also cre- ates the filesystem when it extracts the data to partitions. Everything is checksummed in the archive in order to protect the data. If the archive is corrupt, you just lose the current file, not the whole archive. LINKS
Official project homepage: http://www.fsarchiver.org Quick Start Guide: http://www.fsarchiver.org/QuickStart Forums where to ask questions: http://www.fsarchiver.org/forums/ Report a bug: http://www.fsarchiver.org/forums/viewforum.php?f=17 SYNOPSIS
fsarchiver [ options ] savefs archive filesystem ... fsarchiver [ options ] restfs archive id=n,dest=filesystem[,mkfs=fstype] ... fsarchiver [ options ] savedir archive directory ... fsarchiver [ options ] restdir archive destination fsarchiver [ options ] archinfo archive fsarchiver [ options ] probe [detailed] COMMANDS
savefs Save filesystems to archive. restfs Restore filesystems from archive. This overwrites the existing data on filesystems. Zero-based index n indicates the part of the archive to restore. Optionally, a filesystem may be converted to fstype. savedir Save directories to archive (similar to a compressed tarball). restdir Restore data from archive which is not based on a filesystem to destination. archinfo Show information about an existing archive file and its contents. probe Show list of filesystems detected on the disks. OPTIONS
-h, --help Show help and information about how to use fsarchiver with examples. -V, --version Show program version and exit. -v, --verbose Verbose mode (can be used several times to increase the level of details). The details will be printed to the console. -o, --overwrite Overwrite the archive if it already exists instead of failing. -d, --debug Debug mode (can be used several times to increase the level of details). The details will be written in /var/log/fsarchiver.log. -A, --allow-rw-mounted Allow to save a filesystem which is mounted in read-write (live backup). By default fsarchiver fails with an error if the partition if mounted in read-write mode which allows modifications to be done on the filesystem during the backup. Modifications can drive to inconsistencies in the backup. Using lvm snapshots is the recommended way to make backups since it will provide consistency, but it is only available for filesystems which are on LVM logical-volumes. -a, --allow-no-acl-xattr Allow to run savefs when partition is mounted without the acl/xattr options. By default fsarchiver fails with an error if the par- tition is mounted in such a way that the ACL and Extended-Attributes are not readable. These attributes would not be saved and then such attributes could be lost. If you know what you don't need ACL and Extended-Attributes to be preserved then it's safe to run fsarchiver with that option. -e pattern, --exclude=pattern Exclude files and directories that match that pattern. The pattern can contains shell asterisks such as * and ?, and the pattern may be either a simple file/dir name or an absolute file/dir path. You must use quotes around the pattern each time you use wildcards, else it would be interpreted by the shell. The wildcards must be interpreted by fsarchiver. See examples below for more details about this option. -L label, --label=label Set the label of the archive: it's just a comment about the contents. It can be used to remember a particular thing about the ar- chive or the state of the filesystem for instance. -z level, --compress=level Valid compression levels are between 1 (very fast) and 9 (very good). The memory requirement increases a lot with the best compres- sion levels, and it's multiplied by the number of compression threads (option -j). Level 9 is considered as an extreme compression level and requires an huge amount of memory to run. For more details please read this page: http://www.fsarchiver.org/Compression -s mbsize, --split=mbsize Split the archive into several files of mbsize megabytes each. -j count, --jobs=count Create more than one compression thread. Useful on multi-core CPUs. By default fsarchiver will only use one compression thread (-j 1) and then only one logical processor will be used for compression. You should use that option if you have a multi-core CPU or more than one physical CPU on your computer. The typical way to use this option is to specify the number of logical processors available so that all the processing power is used to compress the archive very quickly. You may also want to use all the logical processors but one for that task so that the system stays responsive for other applications. -c password, --cryptpass=password Encrypt/decrypt data in archive. Password length: 6 to 64 chars. You can either provide a real password or a dash ("-c -") with this option if you do not want to provide the password in the command line and you want to be prompted for a password in the termi- nal instead. EXAMPLES
save only one filesystem (/dev/sda1) to an archive: fsarchiver savefs /data/myarchive1.fsa /dev/sda1 save two filesystems (/dev/sda1 and /dev/sdb1) to an archive: fsarchiver savefs /data/myarchive2.fsa /dev/sda1 /dev/sdb1 restore the first filesystem from an archive (first = number 0): fsarchiver restfs /data/myarchive2.fsa id=0,dest=/dev/sda1 restore the second filesystem from an archive (second = number 1): fsarchiver restfs /data/myarchive2.fsa id=1,dest=/dev/sdb1 restore two filesystems from an archive (number 0 and 1): fsarchiver restfs /data/arch2.fsa id=0,dest=/dev/sda1 id=1,dest=/dev/sdb1 restore a filesystem from an archive and convert it to reiserfs: fsarchiver restfs /data/myarchive1.fsa id=0,dest=/dev/sda1,mkfs=reiserfs save the contents of /usr/src/linux to an archive (similar to tar): fsarchiver savedir /data/linux-sources.fsa /usr/src/linux save a /dev/sda1 to an archive split into volumes of 680MB: fsarchiver savefs -s 680 /data/myarchive1.fsa /dev/sda1 save a filesystem and exclude all files/dirs called 'pagefile.*' fsarchiver savefs /data/myarchive.fsa /dev/sda1 --exclude='pagefile.*' exclude 'share' in both '/usr/share' and '/usr/local/share': fsarchiver savefs /data/myarchive.fsa --exclude=share absolute exclude valid for '/usr/share' but not '/usr/local/share' fsarchiver savefs /data/myarchive.fsa --exclude=/usr/share save a filesystem (/dev/sda1) to an encrypted archive: fsarchiver savefs -c mypassword /data/myarchive1.fsa /dev/sda1 extract an archive made of simple files to /tmp/extract: fsarchiver restdir /data/linux-sources.fsa /tmp/extract show information about an archive and its file systems: fsarchiver archinfo /data/myarchive2.fsa WARNING
fsarchiver is still in development, don't use it for critical data yet. AUTHOR
fsarchiver was written by Francois Dupoux. It is released under the GPL2 (GNU General Public License version 2). This manpage was written by Ilya Barygin and Francois Dupoux. 30 December 2009 FSARCHIVER(8)
All times are GMT -4. The time now is 09:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy