[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reverse diffs are a standard such that patch can apply?
From: |
Robert Nichols |
Subject: |
Re: Reverse diffs are a standard such that patch can apply? |
Date: |
Wed, 15 Feb 2023 12:07:35 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 |
On 2/15/23 10:32, rhkramer@gmail.com wrote:
I've googled enough to find out that rdiff stores the backup files as reverse
diffs so I should be able to go to the backup directory and copy the latest
version if I need that.
If I need an earlier version, presumably the diffs are a "standard" format such
that I can apply patch (multiple times as necessary) to get to the earlier
version I need?
You don't have to do any patching manually, just ask rdiff-backup to "restore" and use
the "--at {time}" option to specify what version. The manpage explains this fairly
clearly:
restore [CREATION OPTIONS] [COMPRESSION OPTIONS] [SELECTION OPTIONS]
[FILESYSTEM
OPTIONS] [USER GROUP OPTIONS] [--at time|--increment] source targetdir
restore a source backup repository at a specific time or a specific
source increment to a target directory. See RESTORING for details.
--at time
the source parameter is interpreted as a back-up directory, and the
content is restored from the given time. See TIME FORMATS for
details.
--increment
the source parameter is expected to be an increment within a back-up
repository, to be restored into the given target directory.
--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.