public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to replay a backup system?
@ 2023-10-12 16:54 Helmut Jarausch
  2023-10-12 17:09 ` Neil Bothwick
  0 siblings, 1 reply; 3+ messages in thread
From: Helmut Jarausch @ 2023-10-12 16:54 UTC (permalink / raw
  To: gentoo-user

Hi,
from time to time - as was the case a few days ago - Gentoo updates  
lead to an unbootable system.
I backup my system each day - using BTRFS snapshots.

Now, only a few files on current system have changed; the rest of the  
400 GB root partition is unchanged.
Therefore I only have to replace these newer files by the versions  
saved a day before.

How can this be done efficiently? Unfortunately AFAIK rsync doesn't  
have an option to copy only files which are
NEWER on the destination than the corresponding files in the backup.

Many thanks for a hint,
Helmut


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] How to replay a backup system?
  2023-10-12 16:54 [gentoo-user] How to replay a backup system? Helmut Jarausch
@ 2023-10-12 17:09 ` Neil Bothwick
  2023-10-12 19:32   ` Helmut Jarausch
  0 siblings, 1 reply; 3+ messages in thread
From: Neil Bothwick @ 2023-10-12 17:09 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 943 bytes --]

On Thu, 12 Oct 2023 18:54:10 +0200, Helmut Jarausch wrote:

> from time to time - as was the case a few days ago - Gentoo updates  
> lead to an unbootable system.
> I backup my system each day - using BTRFS snapshots.
> 
> Now, only a few files on current system have changed; the rest of the  
> 400 GB root partition is unchanged.
> Therefore I only have to replace these newer files by the versions  
> saved a day before.
> 
> How can this be done efficiently? Unfortunately AFAIK rsync doesn't  
> have an option to copy only files which are
> NEWER on the destination than the corresponding files in the backup.

You can replace the original root subvolume with the snapshot. One way of
doiing it is detailed at
https://unix.stackexchange.com/questions/19211/how-to-create-a-snapshot-in-btrfs-and-then-rollback-to-it-after-some-work


-- 
Neil Bothwick

Bang on the LEFT side of your computer to restart Windows

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] How to replay a backup system?
  2023-10-12 17:09 ` Neil Bothwick
@ 2023-10-12 19:32   ` Helmut Jarausch
  0 siblings, 0 replies; 3+ messages in thread
From: Helmut Jarausch @ 2023-10-12 19:32 UTC (permalink / raw
  To: gentoo-user

On 10/12/2023 07:09:35 PM, Neil Bothwick wrote:
> On Thu, 12 Oct 2023 18:54:10 +0200, Helmut Jarausch wrote:
> 
> > from time to time - as was the case a few days ago - Gentoo updates
> > lead to an unbootable system.
> > I backup my system each day - using BTRFS snapshots.
> >
> > Now, only a few files on current system have changed; the rest of  
> the
> > 400 GB root partition is unchanged.
> > Therefore I only have to replace these newer files by the versions
> > saved a day before.
> >
> > How can this be done efficiently? Unfortunately AFAIK rsync doesn't
> > have an option to copy only files which are
> > NEWER on the destination than the corresponding files in the backup.
> 
> You can replace the original root subvolume with the snapshot. One  
> way of
> doiing it is detailed at
> https://unix.stackexchange.com/questions/19211/how-to-create-a-snapshot-in-btrfs-and-then-rollback-to-it-after-some-work
> 
> 

Thanks Neil,

unfortunately my root FS is of type ext4, only my backup FS is of type  
BTRFS

Helmut



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-12 19:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-12 16:54 [gentoo-user] How to replay a backup system? Helmut Jarausch
2023-10-12 17:09 ` Neil Bothwick
2023-10-12 19:32   ` Helmut Jarausch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox