See --link-dest. That is what makes rsync shine for backups.
On 10/6/21 10:09 AM, Helmut Jarausch via rsync wrote:> Hi,
>
> I'd like to mirror my root file system (e.g.) to a different disk. The
> mirror should always be most recent.
> In addition, I'd like to be able to restore my file system to the state
> of one or more backups before
> without storing full size snapshots.
>
> The --backup-dir option does most of the work, but what happens if the
> old backup doesn't contain a file
> which is part of the current source. How can I restore the old version
> including deletion of files
> which didn't exist in the old version?
>
> Many thanks for some hints or pointers,
> Helmut
>
--
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
Kevin Korb Phone: (407) 252-6853
Systems Administrator Internet:
FutureQuest, Inc. Kevin at FutureQuest.net (work)
Orlando, Florida kmk at sanitarium.net (personal)
Web page: https://sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,