From 878b620965c9eca5612e910c61f7ed4f63c22450 Mon Sep 17 00:00:00 2001 From: bescoto Date: Thu, 11 Sep 2003 19:10:49 +0000 Subject: Added examples documentation file git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@422 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/examples-body.html | 167 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 167 insertions(+) create mode 100644 rdiff-backup/examples-body.html diff --git a/rdiff-backup/examples-body.html b/rdiff-backup/examples-body.html new file mode 100644 index 0000000..d74907b --- /dev/null +++ b/rdiff-backup/examples-body.html @@ -0,0 +1,167 @@ +

Examples

+ +

Sections:

+ + + +

Backing up

+ + + +

Restoring

+ + + + +

+ +
  • +

    Back files up from /home/bob to /mnt/backup, leaving increments in +/mnt/backup/rdiff-backup-data. Do not back up directory /home/bob/tmp or +any files in it.

    + +

    rdiff-backup --exclude /home/bob/tmp /home/bob /mnt/backup

  • + +
  • +

    The file selection options can be combined in various ways. The following +command backs up the whole file system to /usr/local/backup. However, the +entire /usr directory is skipped, with the exception of /usr/local, which +is included, except for /usr/local/backup, which is excluded to prevent +a circularity:

    + +

    rdiff-backup --exclude /usr/local/backup --include /usr/local +--exclude /usr / /usr/local/backup

  • + +
  • +

    Suppose /mnt/backup is an rdiff-backup destination directory, and +space is running out there. The following command erases backup +information older than a week:

    + +

    rdiff-backup --remove-older-than 7D /mnt/backup

  • + +
  • +

    +The following reads the file important-data.2001-07-15T04:09:38-07:00.dir and +restores the resulting directory important-data as it was on Februrary 14, +2001, calling the new directory "temp". Note that rdiff-backup goes into +restore mode because it recognizes the suffix of the file. The -v9 means +keep lots of logging information.

    + +

    rdiff-backup -v9 important-data.2001-07-15T04:09:38-07:00.dir +temp

  • + +
  • +

    Suppose you backed up to the directory /backup on the host +remote.host.net, where your username is user. The following command +restores all of that data as it was 3 days ago to the directory +output.

    + +

    rdiff-backup -r 3D user@remote.host.net::/backup output

  • + +
  • +

    Backup foo on one remote machine to bar on another. This will +probably be slower than running rdiff-backup from either machine.

    + +

    rdiff-backup smith@host1::foo jones@host2::bar

    + +
  • +

    Test to see if the specified ssh command really opens up a working +rdiff-backup server on the remote side.

    + + +

    rdiff-backup --test-server hostname.net::/ignored

  • + -- cgit v1.2.1