To split a snap output file into multiple smaller files of arbitrary or specified size.
The snapsplit command is used to split a snap output file into smaller files. This command is useful for dealing with very large snap files. It breaks the file down into files of a specific size that are multiples of 1 megabyte. Furthermore, it will combine these files into the original file when called with the -u option.
The output files are named as following: snap.machinename.timestamp.pax.Z.xxx. Machinename is the hostname and timestamp is in the format MMDDYYHHMMSS. In addition, xxx represents the extension for the split files which is crucial when putting these files back together. The extensions from the start of the files go in the following order: xaa, xab, xac, xad, xae ..., xaz, xba, xbb, xbc, xbd, ..., xbz, xca, xcb, xcc, ....
When performing ls on these files, the first file listed would represent the top of the original file and the last file, the end of the original file.
Note that this command should only be used for snap files that are paxed and compressed. When executed on local system where snap output was gathered, the -H option need not be used. That flag is provided for the case where user has moved a complete snap file to a remote system and wishes to split it. Any machine name may be selected, but it is recommended, to use the machine name where data was collected.
Item | Description |
---|---|
-f filename | Input snapsplit file. It should be a compressed pax file. The default is snap.pax.Z. |
-H machinename | Name of the host machine. If none is specified, the default is the current host. Care must be exercised to name snap files for the appropriate system. |
-s size | Specifies the size of snap output in multiples of 1 MB. The last file will be smaller or equal to this size. Size should be entered in megabytes. The default size is 1 MB. |
-T timestamp | Timestamp of the snapsplit files to use in restoring the original snap output. It is in the format MMDDYYHHMMSS, where MM for month, DD for day, YY for year, HH for hours, MM is for minutes and SS is for seconds. |
-u | Flag used for rejoining snapsplit files. Used with the -T flag. |
snapsplit
The output of this command is written
to current directory.snapsplit -H doe -f snap.somefile.pax.Z
snapsplit -u -T 102303141211 -H sue
snapsplit -u -T 102603084512
snap -g -o /dev/rfd0
Output is written to the /tmp/ibmsupt/general/lslpp.hBc and /tmp/ibmsupt/general/general.snap files.
This command also writes the system information to a removable diskette.Item | Description |
---|---|
/usr/sbin/snapsplit | Contains the snapsplit command. |