$ tar cvf - filenames | ssh remote-host dd of=/dev/rmt/n obs=block-size
创建磁带归档文件,归档时列出文件并指定磁带设备。
提供有关 tar 文件项的其他信息。
表示磁带设备的占位符。
确定要复制的文件。使用空格分隔多个文件。
将 tar 命令的输出传输到远程系统。
表示输出设备。
表示分块因子。
# tar cvf - * | ssh mercury dd of=/dev/rmt/0 obs=126b password: a answers/ 0 tape blocks a answers/test129 1 tape blocks a sc.directives/ 0 tape blocks a sc.directives/sc.190089 1 tape blocks a tests/ 0 tape blocks a tests/test131 1 tape blocks 6+9 records in 0+1 records out