old-www/HOWTO/Autodir-HOWTO/backupopts.html

291 lines
4.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Backup options</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Autodir HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Autodir options"
HREF="aoptions.html"><LINK
REL="NEXT"
TITLE="Examples"
HREF="x714.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Autodir HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="aoptions.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x714.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="backupopts"
></A
>21. Backup options</H1
><P
>These options are passed to <EM
>Autodir</EM
> to request backup support.</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="literal"
>-b</TT
></DT
><DD
><P
>This is the main option to specify the backup program path and arguments to it. The path given should be an absolute path, otherwise <EM
>Autodir</EM
> does not accept it.</P
></DD
><DT
><TT
CLASS="literal"
>-w</TT
></DT
><DD
><P
>Whenever a <EM
>virtual directory</EM
> is not used for a period of time, it is assumed inactive and it is unmounted. After unmounting the directory, whether to launch the backup immediately or to wait some more time is decided with this option. It takes arguments in seconds. It is the <EM
>minimum</EM
> time to wait before starting backup after <EM
>virtual directory</EM
> expiration. It should not exceed one day.</P
></DD
><DT
><TT
CLASS="literal"
>-p</TT
></DT
><DD
><P
>This is the priority to be given to the backup process. <EM
>This is in the range of 1 to 40 inclusive</EM
>. Lower value means higher priority and vice versa. The default value is 30.</P
></DD
><DT
><TT
CLASS="literal"
>-c</TT
></DT
><DD
><P
>This restricts the maximum number of backup processes at any given time. The default is 150.</P
></DD
></DL
></DIV
><DIV
CLASS="caution"
><P
></P
><TABLE
CLASS="caution"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/caution.gif"
HSPACE="5"
ALT="Caution"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>Using quotes</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>The argument for the <TT
CLASS="literal"
>-b</TT
> option is includes the absolute backup program path as well as its own arguments. Therefore it is recommended to use single quotes around this argument.</P
></TD
></TR
></TABLE
></DIV
><P
>The <TT
CLASS="literal"
>-b</TT
> option takes a path to executable file as well as arguments to it. However, the arguments are interpreted for a sequence of %x characters and replaced with predefined strings as follows:</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="literal"
>%N</TT
></DT
><DD
><P
>Replaced with the <EM
>virtual directory</EM
> name.</P
></DD
><DT
><A
NAME="back_esc_str"
></A
><TT
CLASS="literal"
>%L</TT
></DT
><DD
><P
>Replaced with an absolute path to the <EM
>real directory</EM
>.</P
></DD
><DT
><TT
CLASS="literal"
>%K</TT
></DT
><DD
><P
>Replaced with host name.</P
></DD
><DT
>Others</DT
><DD
><P
>Others are fed to <TT
CLASS="literal"
>strftime</TT
>. See the man page for <TT
CLASS="literal"
>strftime</TT
> for more information.</P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="aoptions.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x714.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Autodir options</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Examples</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>