LinuxCommandLibrary

rdiff-backup

Reverse differential backup with file history

TLDR

Backup directory

$ rdiff-backup [source/] [backup/]
copy
Backup to remote
$ rdiff-backup [source/] [user@host::backup/]
copy
Restore latest
$ rdiff-backup -r now [backup/] [restore/]
copy
Restore from specific time
$ rdiff-backup -r [3D] [backup/] [restore/]
copy
List increments
$ rdiff-backup --list-increments [backup/]
copy
Remove old backups
$ rdiff-backup --remove-older-than [2W] [backup/]
copy
Verify backup
$ rdiff-backup --verify [backup/]
copy

SYNOPSIS

rdiff-backup [-r time] [options] source destination

DESCRIPTION

rdiff-backup creates incremental backups using reverse diffs. The destination mirrors current state while storing history.
Each backup stores only differences from previous. Space-efficient for frequent backups.
Restoration from any point in history is possible. Diffs are applied to reconstruct old states.
Remote backup works over SSH. No special server needed, just rdiff-backup on both ends.
Retention policies remove old increments. Balance history depth against storage.

PARAMETERS

-r, --restore-as-of TIME

Restore from time.
--list-increments
Show backup history.
--remove-older-than TIME
Delete old increments.
--verify
Verify backup integrity.
--include PATTERN
Include files.
--exclude PATTERN
Exclude files.
-v, --verbosity N
Verbosity level.
--force
Force operation.

TIME FORMATS

now - Current
3D - 3 days ago
2W - 2 weeks ago
1M - 1 month ago
2024-01-15 - Specific date

CAVEATS

Requires rdiff-backup on remote. Large initial backup. Metadata changes trigger updates.

HISTORY

rdiff-backup combines rsync-style mirroring with reverse-diff versioning. It provides space-efficient incremental backup while maintaining easy restoration.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community