Chapter 5 Sun MediaCenter Server Utilities 5-13
The preceding command differs from the one before it in two respects, indicated by
the w and b options. The w option means that you are prompted before files of the
same name are overwritten. The b option, in combination with the value of 40,
specifies that smc_tar uses a block size of 40 rather than the default of 20.
You can use smc_tar with the x option from a remote host, extracting content
packages to a Sun MediaCenter server:
The following command shows how you can use the c option of smc_tar from a
machine remote from a Sun MediaCenter server.
The preceding command copies the title “Bambi” on the server smc_server to a
local tape device. This command can be extended as follows:
The preceding command copies the title “Bambi” on smc_server1 and the title
“Flipper” on smc_server2 to a local tape device.
Because of the size of the files containing video content, it is usually preferable to
create the tar file for a content package as piped input to smc_tar, rather than
creating the tar file, then invoking smc_tar as a separate command. For example,
on the Sun MediaCenter server, enter:
Note that the TOC file is the first argument to tar. This is a requirement of a content
package. The preceding command presumes that the TOC and content files are
accessible from the Sun MediaCenter server. Where these files are remote from the
Sun MediaCenter server, you can use a command such as:
server# smc_tar xf /dev/rmt/0 smc_server:bambi
remote_host# smc_tar cf /dev/rmt/0 smc_server:bambi
remote_host# smc_tar cf /dev/rmt/0n smc_server1:bambi
remote_host# smc_tar cf /dev/rmt/0n smc_server2:flipper
server# tar cf - <your title>.TOC <your content>.mpg | smc_tar xf -
remote_host# tar cf - <your title>.TOC <your content>.mpg | smc_tar xf \
- smc_server:<your title>