NetAdminTools.com
 
SignalQ Sites:
NetAdminTools - Coprolite - NoNIC - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - MCJ - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


Restoring Individual Files and Directories with Tar
Topic: Backup/Recovery   Posted:2005-11-04
Printer Friendly: Print

spacerspacer
One of our systems has a DLT drive we use for backup. It isn't in a library, and we just use regular tar to back up our main share. Here are some pointers on restoring from tape with tar. First off, you need to specify the exact path from the perspective of the tar archive. To show what these paths are and allow you to search, run the output to a text file:

tar -tMvf /dev/st0 > /tapeout.txt &

Once you know the exact path, change to the correct directory, and restore the file:

tar -xvf /dev/st0 netadmin/database.db1

You might consider restoring to a completely different directory. Do be wary about non-relative paths. There is always a chance that the tar archive hasn't stripped off the leading /. To restore an entire directory, use the path:

tar -xvf /dev/st0 netadmin/backups/july/





Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com

Created by:
MCJ
MCJ CMS