From 5c059e737511644b0056b8326b52763c82efcac4 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 10 May 2002 23:14:12 +0000 Subject: Documentation of --parsable-output, --chars-to-quote (and related), new restoring section, and new -r or --restore-as-of syntax. git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@71 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/rdiff-backup.1 | 128 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) diff --git a/rdiff-backup/rdiff-backup.1 b/rdiff-backup/rdiff-backup.1 index 150dc5b..82b6f11 100644 --- a/rdiff-backup/rdiff-backup.1 +++ b/rdiff-backup/rdiff-backup.1 @@ -51,6 +51,16 @@ unreadable files or unreadable/unexecutable directories in the source directory so it can back them up. It will then restore their original permissions and mtimes afterwards. .TP +.BI "--chars-to-quote " chars +If this option is set, any characters in +.I chars +present in filenames on the source side will be quoted on the +destination side, so that they do not appear in filenames on the +remote side. See +.B --quoting-char +and +.BR --windows-mode . +.TP .BI "--checkpoint-interval " seconds This option controls every how many seconds rdiff-backup checkpoints its current status. The default is 20. @@ -167,6 +177,33 @@ are present, this option can drastically decrease memory usage. Do not resume last aborted backup even if it falls within the resume window. .TP +.BI "-r, --restore-as-of " restore_time +Restore the specified directory as it was as of +.IR restore_time . +See the +.B TIME FORMATS +section for more information on the format of +.IR restore_time , +and see the +.B RESTORING +section for more information on restoring. +.TP +.B --parsable-output +If set, rdiff-backup's output will be tailored for easy parsing by +computers, instead of clarity for humans. Currently this only applies +when listing increments using the +.B -l +or +.B --list-increments +switches. +.TP +.BI "--quoting-char " char +Use the specified character for quoting characters specified to be +escaped by the +.B --chars-to-quote +option. The default is the semicolon ";". See also +.BR --windows-mode . +.TP .BI "--remote-cmd " command This command has been depreciated as of version 0.4.1. Use --remote-schema instead. @@ -224,6 +261,11 @@ is noisiest). This determines how much is written to the log file. .B "-V, --version" Print the current version and exit .TP +.B --windows-mode +This option is short for "--chars to quote : --windows-time-format" +and is appropriate when backing up to a filesystem that doesn't allow +colons in filenames. +.TP .B --windows-time-format If this option is present, use underscores instead of colons in increment files, so 2001-07-15T04:09:38-07:00 becomes @@ -325,6 +367,87 @@ rdiff-backup server on the remote side. .RS rdiff-backup --test-server hostname.net::/this/is/ignored +.SH RESTORING +There are two ways to tell rdiff-backup to restore a file or +directory. Firstly, you can run rdiff-backup on a mirror file and use +the +.B -r +or +.B --restore-as-of +options. Secondly, you can run it on an increment file. +.PP +For example, suppose in the past you have run: +.PP +.RS +rdiff-backup /usr /usr.backup +.PP +.RE +to back up the /usr directory into the /usr.backup directory, and now +want a copy of the /usr/local directory the way it was 3 days ago +placed at /usr/local.old. +.PP +One way to do this is to run: +.PP +.RS +rdiff-backup -r 3D /usr.backup/local /usr/local.old +.PP +.RE +where above the "3D" means 3 days (for other ways to specify the time, +see the +.B TIME FORMATS +section). The /usr.backup/local directory was selected, because that +is the directory containing the current version of /usr/local. +.PP +The second way to do this would be to find the corresponding increment +file. It would be in the /backup/rdiff-backup-data/increments/usr +directory, and its name would be something like +"local.2002-11-09T12:43:53-04:00.dir" where the time indicates it is +from 3 days ago. Note that the increment files all end in ".diff", +".snapshot", ".dir", or ".missing", where ".missing" just means that +the file didn't exist at that time (finally, some of these may be +gzip-compressed, and have an extra ".gz" to indicate this). Then +running: +.PP +.RS +rdiff-backup /backup/rdiff-backup-data/increments/usr/local.