old-www/LDP/GNU-Linux-Tools-Summary/html/x10099.htm

312 lines
3.9 KiB
HTML

<HTML
><HEAD
><TITLE
>rsync</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="GNU/Linux Command-Line Tools Summary"
HREF="book1.htm"><LINK
REL="UP"
TITLE="Archiving Files"
HREF="c9978.htm"><LINK
REL="PREVIOUS"
TITLE="Archiving Files"
HREF="c9978.htm"><LINK
REL="NEXT"
TITLE="Compression"
HREF="x10181.htm"></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"
>GNU/Linux Command-Line Tools Summary</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="c9978.htm"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 15. Archiving Files</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x10181.htm"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="RSYNC"
></A
>rsync</H1
><P
></P
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
>rsync</DT
><DD
><P
><A
NAME="AEN10107"
></A
><SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>rsync</I
></SPAN
> is a replacement <A
NAME="AEN10110"
></A
>for the old <A
NAME="AEN10112"
></A
><SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>rcp<A
NAME="AEN10115"
></A
></I
></SPAN
> (remote-copy) command. It can use <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>ssh</I
></SPAN
> for encryption <A
NAME="AEN10118"
></A
>and is a very flexible <A
NAME="AEN10120"
></A
>tool, it can copy from local <A
NAME="AEN10122"
></A
>machine<A
NAME="AEN10124"
></A
> to local machine, from local to remote <A
NAME="AEN10126"
></A
>(and vice-versa), and to and from rsync <A
NAME="AEN10128"
></A
>servers.<A
NAME="AEN10130"
></A
> </P
><P
><SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>rsync</I
></SPAN
> uses an advanced <A
NAME="AEN10134"
></A
>differencing algorithm,<A
NAME="AEN10136"
></A
> so when to copies <A
NAME="AEN10138"
></A
>or syncs <A
NAME="AEN10140"
></A
>something it will (a) only copy new/changed files and (b) if the files have being changed it will copy the differences <A
NAME="AEN10142"
></A
>between the files (not the entire file). Using this method <A
NAME="AEN10144"
></A
><SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>rsync</I
></SPAN
> saves <A
NAME="AEN10147"
></A
>time <A
NAME="AEN10149"
></A
>and bandwidth.<A
NAME="AEN10151"
></A
> </P
><P
><SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>rsync</I
></SPAN
> also has advanced <A
NAME="AEN10155"
></A
>exclusion options <A
NAME="AEN10157"
></A
>similar to <SPAN
CLASS="ACRONYM"
>GNU</SPAN
> tar.<A
NAME="AEN10160"
></A
> <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>rsync</I
></SPAN
> has a well written manual page,<A
NAME="AEN10163"
></A
> for further information <A
NAME="AEN10165"
></A
>read the <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>rsync</I
></SPAN
> documentation <A
NAME="AEN10168"
></A
>online or type:</P
><PRE
CLASS="SCREEN"
>man rsync</PRE
><P
>If you wish to visit <A
NAME="AEN10172"
></A
>the rsync <A
NAME="AEN10174"
></A
>site you will find <A
NAME="AEN10176"
></A
>it over <A
HREF="http://www.samba.org/rsync/"
TARGET="_top"
>here</A
><A
NAME="AEN10179"
></A
></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="c9978.htm"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="book1.htm"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x10181.htm"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Archiving Files</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c9978.htm"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Compression</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>