.TH RDIFF-BACKUP 1 "AUGUST 2001" "Version 0.2.1" "User Manuals" \" -*- nroff -*- .SH NAME rdiff-backup \- local/remote mirror and incremental backup .SH SYNOPSIS .B rdiff-backup .BI [ options ] .BI [[[ user@ ] host1.foo ]:: source_directory ] .BI [[[ user@ ] host2.foo ]:: destination_directory ] .B rdiff-backup .B {{ -l | --list-increments } .BI "| --remove-older-than " time_interval } .BI [[[ user@ ] host2.foo ]:: destination_directory ] .B rdiff-backup --calculate-average .I statfile1 statfile2 ... .SH DESCRIPTION .B rdiff-backup is a script, written in .BR python (1) , that uses the .BR rdiff (1) program to back up one directory to another. The target directory ends up a copy of the source directory, but extra reverse diffs are stored in the target directory, so you can still recover files lost some time ago. The idea is to combine the best features of a mirror and an incremental backup. rdiff-backup also preserves symlinks, special files, hardlinks, permissions, uid/gid ownership (if it is running as root), and modification times. .B rdiff-backup can also operate in a bandwidth efficient manner over a pipe, like .BR rsync (1). Thus you can use ssh and rdiff-backup to securely back a hard drive up to a remote location, and only the differences will be transmitted. Using the default settings, rdiff-backup requires that the remote system accept ssh connections, and that .B rdiff-backup is installed in the user's PATH on the remote system. For information on other options, see the section on .B REMOTE OPERATION. .SH OPTIONS .TP .B -b, --backup-mode Force backup mode even if first argument appears to be an increment file. .TP .B --calculate-average Enter calculate average mode. The arguments should be a number of statistics files. rdiff-backup will print the average of the listed statistics files and exit. .TP .B --change-source-perms If this option is set, rdiff-backup will try to change the mode of any 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. This option should generally not be used if rdiff-backup has root access to the source directory, as root can access files regardless of their permissions. .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. .TP .BI "--current-time " seconds This option is useful mainly for testing. If set, rdiff-backup will it for the current time instead of consulting the clock. The argument is the number of seconds since the epoch. .TP .BI "--exclude " shell_pattern Exclude the file or files matched by .IR shell_pattern . If a directory is matched, then files under that directory will also be matched. See the .B FILE SELECTION section for more information. .TP .B "--exclude-device-files" Exclude all device files. This can be useful for security/permissions reasons or if rdiff-backup is not handling device files correctly. .TP .BI "--exclude-filelist " filename Excludes the files listed in .I filename See the .B FILE SELECTION section for more information. .TP .B --exclude-filelist-stdin Like .B --exclude-filelist, but the list of files will be read from standard input. See the .B FILE SELECTION section for more information. .TP .BI "--exclude-mirror " regexp Exclude files in the mirror area matching regexp. This argument can be used multiple times. The rdiff-backup-data directory is automatically excluded, so this option rarely needs to be used. .TP .BI "--exclude-regexp " regexp Exclude files matching the given regexp. Unlike the .B --exclude option, this option does not match files in a directory it matches. See the .B FILE SELECTION section for more information. .TP .B --force Authorize overwriting of a destination directory. rdiff-backup will generally tell you if it needs this. .TP .BI "--include " shell_pattern Similar to .B --exclude but include matched files instead. Unlike .BR --exclude , this option will also match parent directories of matched files (although not necessarily their contents). See the .B FILE SELECTION section for more information. .TP .BI "--include-filelist " filename Like .BR --exclude-filelist , but include the listed files instead. See the .B FILE SELECTION section for more information. .TP .B --include-filelist-stdin Like .BR --include-filelist , but read the list of included files from standard input. .TP .BI "--include-regexp " regexp Include files matching the regular expression .IR regexp . Only files explicitly matched by .I regexp will be included by this option. See the .B FILE SELECTION section for more information. .TP .B "-l, --list-increments" List the number and date of partial incremental backups contained in the specified destination directory. This option is incompatible with backing up or restoring and must be run in a separate instance of rdiff-backup. .TP .B "-m, --mirror-only" Do not create an rdiff-backup-data directory or make any increments. In this mode rdiff-backup is similar to rsync (but usually slower). .TP .B --no-compression Disable the default gzip compression of most of the .snapshot and .diff increment files stored in the rdiff-backup-data directory. A backup volume can contain compressed and uncompressed increments, so using this option inconsistently is fine. .TP .B "--no-compression-regexp " regexp Do not compress increments based on files whose filenames match regexp. The default is "(?i).*\\.(gz|z|bz|bz2|tgz|zip|rpm|deb|jpg|gif|png|jp2|mp3|ogg|avi|wmv|mpeg|mpg|rm|mov)$" .TP .BI --no-hard-links Don't preserve hard links from source to mirror directories. Otherwise, no increment files will themselves be hard linked, but a hard link database will be written so that hard links from any dataset will be recreated if originally present. If many hard linked files are present, this option can drastically decrease memory usage. .TP .B --no-resume 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 .B --print-statistics If set, summary statistics will be printed after a successful backup If not set, this information will still be available from the session_statistics.