04-16-2002
Check the man page!!
Found in the man page for tar -
x Extract or restore. The named files are extracted from
the tarfile and written to the directory specified in
the tarfile, relative to the current directory. Use
the relative path names of files and directories to be
extracted. If a named file matches a directory whose
contents has been written to the tarfile, this direc-
tory is recursively extracted. The owner, modification
time, and mode are restored (if possible); otherwise,
to restore owner, you must be the super-user.
Character-special and block-special devices (created by
mknod(1M)) can only be extracted by the super-user. If
no file argument is given, the entire content of the
tarfile is extracted. If the tarfile contains several
files with the same name, each file is written to the
appropriate directory, overwriting the previous one.
Filename substitution wildcards cannot be used for
extracting files from the archive; rather, use a com-
mand of the form:
tar xvf... /dev/rmt/0 `tar tf... /dev/rmt/0 |grep 'pattern'`
This works great - you just set the pattern to ".pds"
To do a directory in UNIX - ls *.pds (UNIX does not have the same restrictions as VMS - files do not need extensions - you will find it will free the mind. The only thing I have found that works better in VMS is search (ie. grep).
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
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. HP-UX
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
4. AIX
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
5. SCO
Here is the scenario. We have an billing system that ran on SCO 5.0.6. The HP Netserver went dwon, along with SCSI disks. They are unretrievable. I installed an IDE HDD, and reinstalled SCO. I am not too familiar w/ SCO or UNIX, and need to know how to install Tape drive, and how to restore from... (11 Replies)
Discussion started by: jlewis808
11 Replies
6. SCO
I am a mewbie to UNIX. I am using SCO Open Server 5 to run a legacy medical billing program "MDX" I have backup tapes made on HP DataStore8 which have the application and data files. Recently unable to login as individual user but can log into root. Previous commands that had restored the system... (5 Replies)
Discussion started by: canbe842
5 Replies
7. Solaris
I have a T2000 server that is JumpStarted with Solaris 10 from the JumpStart server. Host name and IP address is changed after that. Then we backup the server using FLAR to tape:
root.damas# date; flarcreate -c -t -n "Sol10_cairo_image" -a "engineering@starsolutions.com" -R / /dev/rmt/0n ;... (2 Replies)
Discussion started by: StarSol
2 Replies
8. Solaris
Hope someone can help me here...
I've got to restore an E450 with 300MHz cpus which was running Solaris 2.6 from tape. Regrettably the boot drive has failed.
I've access to the first release of Solaris 2.6 CD's and to a set of Solaris 9 CD's.
I remember that different E450 CPUs needed different... (1 Reply)
Discussion started by: pamplemousse
1 Replies
9. Emergency UNIX and Linux Support
Hi
I recently deleted my /etc but I had a backup on tape. I was able to boot the server with a cd-rom and mounted the /c1t0d0s0 which is where the root directory resides. However when I tried to restore the backup with tar xvf /dev/rmt/0n I wasn't successful even though I was able to use the tar... (2 Replies)
Discussion started by: rahmantanko
2 Replies
10. AIX
Hi,
I have taken a backup of a directory on my tape in using below command
cd /backup
find * -print|backup -ivf '/dev/rmt0' '-U' |tee -a /syslogs/backup.log and output appear in below format.
a 0 rman-before-08032014
a 58403323904... (2 Replies)
Discussion started by: m_raheelahmed
2 Replies
LEARN ABOUT FREEBSD
smbtar
SMBTAR(1) User Commands SMBTAR(1)
NAME
smbtar - shell script for backing up SMB/CIFS shares directly to UNIX tape drives
SYNOPSIS
smbtar [-r] [-i] [-a] [-v] {-s server} [-p password] [-x services] [-X] [-N filename] [-b blocksize] [-d directory] [-l loglevel] [-u user]
[-t tape] {filenames}
DESCRIPTION
This tool is part of the samba(7) suite.
smbtar is a very small shell script on top of smbclient(1) which dumps SMB shares directly to tape.
OPTIONS
-s server
The SMB/CIFS server that the share resides upon.
-x service
The share name on the server to connect to. The default is "backup".
-X
Exclude mode. Exclude filenames... from tar create or restore.
-d directory
Change to initial directory before restoring / backing up files.
-v
Verbose mode.
-p password
The password to use to access a share. Default: none
-u user
The user id to connect as. Default: UNIX login name.
-a
Reset DOS archive bit mode to indicate file has been archived.
-t tape
Tape device. May be regular file or tape device. Default: $TAPE environmental variable; if not set, a file called tar.out .
-b blocksize
Blocking factor. Defaults to 20. See tar(1) for a fuller explanation.
-N filename
Backup only files newer than filename. Could be used (for example) on a log file to implement incremental backups.
-i
Incremental mode; tar files are only backed up if they have the archive bit set. The archive bit is reset after each file is read.
-r
Restore. Files are restored to the share from the tar file.
-l log level
Log (debug) level. Corresponds to the -d flag of smbclient(1).
ENVIRONMENT VARIABLES
The $TAPE variable specifies the default tape device to write to. May be overridden with the -t option.
BUGS
The smbtar script has different options from ordinary tar and from smbclient's tar command.
CAVEATS
Sites that are more careful about security may not like the way the script handles PC passwords. Backup and restore work on entire shares;
should work on file lists. smbtar works best with GNU tar and may not work well with other versions.
DIAGNOSTICS
See the DIAGNOSTICS section for the smbclient(1) command.
VERSION
This man page is correct for version 3 of the Samba suite.
SEE ALSO
smbd(8), smbclient(1), smb.conf(5).
AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
Ricky Poulten wrote the tar extension and this man page. The smbtar script was heavily rewritten and improved by Martin Kraemer. Many
thanks to everyone who suggested extensions, improvements, bug fixes, etc. The man page sources were converted to YODL format (another
excellent piece of Open Source software, available at ftp://ftp.icce.rug.nl/pub/unix/) and updated for the Samba 2.0 release by Jeremy
Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2 for Samba 3.0 was done by
Alexander Bokovoy.
Samba 3.5 06/18/2010 SMBTAR(1)