Add a sample cpio command.
Submitted by: Corey Sklenicka <corey@cloudnet.com>
This commit is contained in:
parent
7214271be9
commit
ee8183e279
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=9706
1 changed files with 14 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
The FreeBSD Documentation Project
|
||||
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/backups/chapter.sgml,v 1.28 2001/04/09 00:33:48 dd Exp $
|
||||
$FreeBSD: doc/en_US.ISO8859-1/books/handbook/backups/chapter.sgml,v 1.29 2001/05/19 07:06:50 murray Exp $
|
||||
-->
|
||||
|
||||
<chapter id="backups">
|
||||
|
|
@ -284,7 +284,19 @@ sa0(ncr1:4:0): Logical unit is in process of becoming ready</screen>
|
|||
|
||||
<para>&man.cpio.1; does not support backups across the network. You can
|
||||
use a pipeline and &man.rsh.1; to send the data to a remote tape
|
||||
drive. (XXX add an example command)</para>
|
||||
drive.</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>for f in <replaceable>directory_list; do</replaceable></userinput>
|
||||
<userinput>find $f >> backup.list</userinput>
|
||||
<userinput>done</userinput>
|
||||
&prompt.root; <userinput>cpio -v -o --format=newc < backup.list | ssh <replaceable>user</replaceable>@<replaceable>host</replaceable> "cat > <replaceable>backup_device</replaceable></userinput></screen>
|
||||
|
||||
<para>Where <replaceable>directory_list</replaceable> is the list of
|
||||
directories you want to back up,
|
||||
<replaceable>user</replaceable>@<replaceable>host</replaceable> is the
|
||||
user/hostname combination that will be performing the backups, and
|
||||
<replaceable>backup_device</replaceable> is where the backups should
|
||||
be written to (e.g., <filename>/dev/nrsa0</filename>).</para>
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue