* SUMMARY: Recommendations for archiving files
@ 2002-03-08 1:05 Aldridge, Robert E.
0 siblings, 0 replies; only message in thread
From: Aldridge, Robert E. @ 2002-03-08 1:05 UTC (permalink / raw)
To: tru64-unix-managers
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01C1C63D.565EC280", Size: 17737 bytes --]
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1C63D.565EC280
Content-Type: text/plain
Tru64 Managers:
The recommendations were to use 'tar' or 'cpio'
'cpio' was favored because it can handle a large list of file names.
'tar' was favored because it is very portable
'pax' is a newer open standard (seems to be available on at least Tru64 and
HP-UX)
Notes:
Cpio : use 'portable' format (option c or -H crc)
Use larger block sizes
Tar restore requires reading in the entire archive
ACLs would not be captured on any kind of 'portable' tape
Recommendations against 'dump' and 'vdump'
My next step will be to research the 'pax' command.
Thanks again for the assistance and many replies.
Robert
-------------------------
-------------------------
tar or cpio. Pay close attention to the largest file size
that you may have to deal with. Both tar and cpio are
likely to have 8 GB file size limits using their defaults.
Extensions to support archiving larger files may be a bit
vendor specific. As noted in "ALAN'S E-MAIL" (me), the
choice of which may come down to personal preference over
the interface used to create and extract an archive.
On the media side, 5 years is getting to the point where
you'd want to consider transferring the data to current
generation media.
---------------
Exclude "dump" (IMHO, good for complete file systems, but not for
custom-made collections).
I personally prefer "cpio" over "tar", because the former can handle
large lists of file names (via stdin) whereas the latter needed
all names as command arguments (this has changed recently, but I
would prefer not to rely on that, especially cross-platform).
With "cpio", ensure you use a "portable" header format -
in former times, this was the "c" option,
with GNU "cpio", it is "-H crc" AFAIR.
For performance reasons, use large blocks; for portability reasons,
I would stay below 64 kB (assume some 16 bit addressing somewhere
in the chain), so my proposal is 48 kB.
-----------
I normally use cpio with the -c option (-c is for character based headers,
no binary). cpio does not backup special files, but that should not be a
problem in your case.
You might also want to look into PAX, since it is supposed to be the new
backup standard, but I'm not sure it is really all that common. (I have
never used pax, so don't let me lead you one way or another.)
One big, big caution.
ACLs. If you have ACLs (C2 Access Control Lists natively supported in
AdvFS) that you need to maintain, then I think you have zero portable
solutions.
Also, if you use backup options to backup the ACLs, you may have trouble
years from now.
FYI: Compaq has extended tar to support ACLs, but I think you have to give
it an option to kick in this non-standard feature.
-----------
Either tar or cpio, in their POSIX-standard forms (i.e. the ones supported
by the pax utility). Actually, anything for which you have full
documentation will do. (That rules out vdump, I believe.)
See "man pax" for details.
The type of tape drive is pretty much irrelevant, except that you may want
to choose a good block size (larger than tar and cpio's defaults). 63kB is
pretty much canonical.
-----
For portability I'd use tar.
A few years ago in another job, I read a 5 year old Concurrent Computers
CV-UX tar on an IBM AIX System and was surprised to find it worked. Just to
see if I could, I tried it on SUN and was able to read it there as well.
-----
Use vdump if you want to restore it using Tru64.
Otherwise a combination of TAR files combined with cpio to a tape using the
default block size will work. It will be very slow but it should transcend
platforms with ease.
Jeff
-----
If you're going to assume another OS in 5 years, then I'd choose Tar.
(assuming that you'd move these files into a directory before the tar):
cd /path/to/directory_where_the_archives_live
tar -cvf /dev/tapedevice .
The problem with this is: If you have to pull just one file off, you'll end
up extracting the entire tarball first just to get the one file. However,
since a tar made on a Tru64 box is able to be opened on Solaris and other
UNIX's, this minor inconvenience seems manageable.
We've tried making a Legato tape to send to another office that uses Solaris
instead of Tru64 and they couldn't read the tape on their Legato Servers
(though this may have been because of their skills in Legato and not knowing
about the 'scanner' command and not any particular problem with
cross-platform Legato restores). The only tape we could create that they
could read on their Solaris systems was ones created with tar. However, if
you ask Legato, they may be able to tell you a way to read these Tru64 tapes
on other platforms (or tell you that it is not possible).
----
-----Original Message-----
From: Aldridge, Robert E.
Sent: Monday, March 04, 2002 12:09 PM
To: tru64-unix-managers
Subject: Recommendations for archiving files
Tru64 Managers:
On our Tru64 5.1 cluster, we want to archive about 50GB of files for the
users. What's the recommended format for this archive?
For daily backups, we use Legato Networker -- but I'm not sure I want to use
Networker for something I might have to go back to in 5 years.
Assuming I use the DLT40/80 tape drive on the system, what format would you
recommend? Dump? Tar? Cpio?
Specific command examples (and switches) would be appreciated.
I also have to assume that I might have another brand of Unix in 5 years --
so I don't want a vendor-specific format.
I searched the Tru64 mailing archive, and came up with a decent summary of
the same problem. I'm just looking for validation (that the information is
still relevant and accurate)...
----------------------------------------------------------------------------
----
SUMMARY: Archiving Files to Tape
----------------------------------------------------------------------------
----
To: tru64-unix-managers@xxxxxxxx
Subject: SUMMARY: Archiving Files to Tape
Date: Thu, 01 Feb 2001 13:18:16 -0800 (PST)
----------------------------------------------------------------------------
----
...
What is the best method to archive specific files to
DLT tape?
The (Short) Answer is:
tar or cpio, since vdump doesn't archive specific
files (only filesets and subdirectories).
ALAN'S E-MAIL FOLLOWS:
The manual page from V4.0D suggests that vdump can do
subdirectories, but not individual files. The other
significant limitation of vdump is that it uses an
on-media format that can only be read by vdump. That
doesn't make it very portable.
Tar or cpio should be readable by a large number of
other instances of tar or cpio. Which of those to
use may be as much a matter of personal taste as a
matter of capability.
----------------------------------------------------------------------------
----
Thanks for your assistance.
Robert Aldridge
McDermott Technology
------_=_NextPart_001_01C1C63D.565EC280
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>SUMMARY: Recommendations for archiving files</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Tru64 Managers:</FONT>
</P>
<P><FONT SIZE=2>The recommendations were to use 'tar' or 'cpio'</FONT>
<BR><FONT SIZE=2>'cpio' was favored because it can handle a large list of file names.</FONT>
<BR><FONT SIZE=2>'tar' was favored because it is very portable</FONT>
<BR><FONT SIZE=2>'pax' is a newer open standard (seems to be available on at least Tru64 and HP-UX)</FONT>
</P>
<P><FONT SIZE=2>Notes:</FONT>
<BR><FONT SIZE=2>Cpio : use 'portable' format (option c or -H crc)</FONT>
<BR><FONT SIZE=2>Use larger block sizes</FONT>
<BR><FONT SIZE=2>Tar restore requires reading in the entire archive</FONT>
<BR><FONT SIZE=2>ACLs would not be captured on any kind of 'portable' tape</FONT>
</P>
<P><FONT SIZE=2>Recommendations against 'dump' and 'vdump'</FONT>
</P>
<BR>
<P><FONT SIZE=2>My next step will be to research the 'pax' command. </FONT>
</P>
<P><FONT SIZE=2>Thanks again for the assistance and many replies.</FONT>
</P>
<BR>
<P><FONT SIZE=2>Robert</FONT>
</P>
<BR>
<P><FONT SIZE=2>-------------------------</FONT>
<BR><FONT SIZE=2>-------------------------</FONT>
</P>
<P> <FONT SIZE=2>tar or cpio. Pay close attention to the largest file size</FONT>
<BR> <FONT SIZE=2>that you may have to deal with. Both tar and cpio are</FONT>
<BR> <FONT SIZE=2>likely to have 8 GB file size limits using their defaults.</FONT>
<BR> <FONT SIZE=2>Extensions to support archiving larger files may be a bit</FONT>
<BR> <FONT SIZE=2>vendor specific. As noted in "ALAN'S E-MAIL" (me), the</FONT>
<BR> <FONT SIZE=2>choice of which may come down to personal preference over</FONT>
<BR> <FONT SIZE=2>the interface used to create and extract an archive.</FONT>
</P>
<P> <FONT SIZE=2>On the media side, 5 years is getting to the point where</FONT>
<BR> <FONT SIZE=2>you'd want to consider transferring the data to current</FONT>
<BR> <FONT SIZE=2>generation media.</FONT>
<BR><FONT SIZE=2>---------------</FONT>
</P>
<P><FONT SIZE=2>Exclude "dump" (IMHO, good for complete file systems, but not for </FONT>
<BR><FONT SIZE=2>custom-made collections). </FONT>
<BR><FONT SIZE=2>I personally prefer "cpio" over "tar", because the former can handle </FONT>
<BR><FONT SIZE=2>large lists of file names (via stdin) whereas the latter needed </FONT>
<BR><FONT SIZE=2>all names as command arguments (this has changed recently, but I </FONT>
<BR><FONT SIZE=2>would prefer not to rely on that, especially cross-platform).</FONT>
</P>
<P><FONT SIZE=2>With "cpio", ensure you use a "portable" header format - </FONT>
<BR><FONT SIZE=2>in former times, this was the "c" option, </FONT>
<BR><FONT SIZE=2>with GNU "cpio", it is "-H crc" AFAIR.</FONT>
</P>
<P><FONT SIZE=2>For performance reasons, use large blocks; for portability reasons, </FONT>
<BR><FONT SIZE=2>I would stay below 64 kB (assume some 16 bit addressing somewhere </FONT>
<BR><FONT SIZE=2>in the chain), so my proposal is 48 kB.</FONT>
<BR><FONT SIZE=2>-----------</FONT>
<BR><FONT SIZE=2>I normally use cpio with the -c option (-c is for character based headers, no binary). cpio does not backup special files, but that should not be a problem in your case.</FONT></P>
<P><FONT SIZE=2>You might also want to look into PAX, since it is supposed to be the new backup standard, but I'm not sure it is really all that common. (I have never used pax, so don't let me lead you one way or another.)</FONT></P>
<P><FONT SIZE=2>One big, big caution.</FONT>
</P>
<P><FONT SIZE=2>ACLs. If you have ACLs (C2 Access Control Lists natively supported in AdvFS) that you need to maintain, then I think you have zero portable solutions.</FONT></P>
<P><FONT SIZE=2>Also, if you use backup options to backup the ACLs, you may have trouble years from now.</FONT>
</P>
<P><FONT SIZE=2>FYI: Compaq has extended tar to support ACLs, but I think you have to give it an option to kick in this non-standard feature.</FONT></P>
<P><FONT SIZE=2>-----------</FONT>
<BR><FONT SIZE=2>Either tar or cpio, in their POSIX-standard forms (i.e. the ones supported by the pax utility). Actually, anything for which you have full documentation will do. (That rules out vdump, I believe.)</FONT></P>
<P><FONT SIZE=2>See "man pax" for details.</FONT>
</P>
<P><FONT SIZE=2>The type of tape drive is pretty much irrelevant, except that you may want to choose a good block size (larger than tar and cpio's defaults). 63kB is pretty much canonical.</FONT></P>
<P><FONT SIZE=2>-----</FONT>
<BR><FONT SIZE=2>For portability I'd use tar. </FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2>A few years ago in another job, I read a 5 year old Concurrent Computers CV-UX tar on an IBM AIX System and was surprised to find it worked. Just to see if I could, I tried it on SUN and was able to read it there as well. </FONT></P>
<P><FONT SIZE=2> </FONT>
</P>
<BR>
<P><FONT SIZE=2>-----</FONT>
<BR><FONT SIZE=2>Use vdump if you want to restore it using Tru64.</FONT>
<BR><FONT SIZE=2>Otherwise a combination of TAR files combined with cpio to a tape using the default block size will work. It will be very slow but it should transcend platforms with ease.</FONT></P>
<P><FONT SIZE=2>Jeff</FONT>
<BR><FONT SIZE=2>-----</FONT>
</P>
<P><FONT SIZE=2>If you're going to assume another OS in 5 years, then I'd choose Tar.</FONT>
</P>
<P><FONT SIZE=2>(assuming that you'd move these files into a directory before the tar):</FONT>
<BR><FONT SIZE=2>cd /path/to/directory_where_the_archives_live</FONT>
<BR><FONT SIZE=2>tar -cvf /dev/tapedevice .</FONT>
</P>
<P><FONT SIZE=2>The problem with this is: If you have to pull just one file off, you'll end up extracting the entire tarball first just to get the one file. However, since a tar made on a Tru64 box is able to be opened on Solaris and other UNIX's, this minor inconvenience seems manageable.</FONT></P>
<P><FONT SIZE=2>We've tried making a Legato tape to send to another office that uses Solaris instead of Tru64 and they couldn't read the tape on their Legato Servers (though this may have been because of their skills in Legato and not knowing about the 'scanner' command and not any particular problem with cross-platform Legato restores). The only tape we could create that they could read on their Solaris systems was ones created with tar. However, if you ask Legato, they may be able to tell you a way to read these Tru64 tapes on other platforms (or tell you that it is not possible).</FONT></P>
<P><FONT SIZE=2> ----</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<P><FONT SIZE=2> </FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Aldridge, Robert E. </FONT>
<BR><FONT SIZE=2>Sent: Monday, March 04, 2002 12:09 PM</FONT>
<BR><FONT SIZE=2>To: tru64-unix-managers</FONT>
<BR><FONT SIZE=2>Subject: Recommendations for archiving files</FONT>
</P>
<BR>
<P><FONT SIZE=2>Tru64 Managers: </FONT>
<BR><FONT SIZE=2>On our Tru64 5.1 cluster, we want to archive about 50GB of files for the users. What's the recommended format for this archive?</FONT></P>
<P><FONT SIZE=2>For daily backups, we use Legato Networker -- but I'm not sure I want to use Networker for something I might have to go back to in 5 years.</FONT></P>
<P><FONT SIZE=2>Assuming I use the DLT40/80 tape drive on the system, what format would you recommend? Dump? Tar? Cpio? </FONT>
<BR><FONT SIZE=2>Specific command examples (and switches) would be appreciated. </FONT>
</P>
<BR>
<P><FONT SIZE=2>I also have to assume that I might have another brand of Unix in 5 years -- so I don't want a vendor-specific format. </FONT>
<BR><FONT SIZE=2>I searched the Tru64 mailing archive, and came up with a decent summary of the same problem. I'm just looking for validation (that the information is still relevant and accurate)...</FONT></P>
<BR>
<P><FONT SIZE=2>-------------------------------------------------------------------------------- </FONT>
<BR><FONT SIZE=2>SUMMARY: Archiving Files to Tape </FONT>
<BR><FONT SIZE=2>-------------------------------------------------------------------------------- </FONT>
<BR><FONT SIZE=2>To: tru64-unix-managers@xxxxxxxx </FONT>
<BR><FONT SIZE=2>Subject: SUMMARY: Archiving Files to Tape </FONT>
<BR><FONT SIZE=2>Date: Thu, 01 Feb 2001 13:18:16 -0800 (PST) </FONT>
<BR><FONT SIZE=2>-------------------------------------------------------------------------------- </FONT>
<BR><FONT SIZE=2>... </FONT>
<BR><FONT SIZE=2>What is the best method to archive specific files to </FONT>
<BR><FONT SIZE=2>DLT tape? </FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2>The (Short) Answer is: </FONT>
<BR><FONT SIZE=2>tar or cpio, since vdump doesn't archive specific </FONT>
<BR><FONT SIZE=2>files (only filesets and subdirectories). </FONT>
<BR><FONT SIZE=2>ALAN'S E-MAIL FOLLOWS: </FONT>
<BR><FONT SIZE=2>The manual page from V4.0D suggests that vdump can do </FONT>
<BR><FONT SIZE=2>subdirectories, but not individual files. The other </FONT>
<BR><FONT SIZE=2>significant limitation of vdump is that it uses an </FONT>
<BR><FONT SIZE=2>on-media format that can only be read by vdump. That </FONT>
<BR><FONT SIZE=2>doesn't make it very portable. </FONT>
<BR><FONT SIZE=2>Tar or cpio should be readable by a large number of </FONT>
<BR><FONT SIZE=2>other instances of tar or cpio. Which of those to </FONT>
<BR><FONT SIZE=2>use may be as much a matter of personal taste as a </FONT>
<BR><FONT SIZE=2>matter of capability. </FONT>
<BR><FONT SIZE=2>-------------------------------------------------------------------------------- </FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>Thanks for your assistance. </FONT>
<BR><FONT SIZE=2>Robert Aldridge </FONT>
<BR><FONT SIZE=2>McDermott Technology </FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C1C63D.565EC280--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-03-08 1:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-08 1:05 SUMMARY: Recommendations for archiving files Aldridge, Robert E.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox