Read-write snapshots can be booted just by temporarily changing the GRUB boot entry rootflags=subvol=$nameofsnapshottoboot - any changes are persistent, because the snapshot is a writable snapshot, so it’s changing pretty much immediately There are no automatic snapshots on Fedora. Only if you took a snapshot before the problem happened. Would it be possible to restore a btrfs snapshot from the rescue environment? However, rsnapshot has the advantage that it does not need any software to use the backup: you can access and use it always just by the capabilities of hardlink-capable file systems (most fs we use as of today support that). In such cases, borg or restic might be better alternatives, as they only backup the changes. Supplement: rsnapshot should be avoided if you backup large files that regularly change (it will backup the whole file in each backup/snapshot even if just one byte has changed). Given the example above, and depending on how you use rsync, it might also adopt the accidental deletion of files. This means that you have to implement the backup capability yourself: e.g., if you just make an rsync without anything else, the backup might adopt a failure of the origin and thus, fails itself, while rsync on itself does not keep copies of previous states (to which you could revert) unless you ensure this capability yourself: data loss is the worst outcome. But keep focused on comparing “what you want to protect against” with “which solution/configuration incorporates which protection”.īe carefull with rsync, because it is a generic tool like cp or dd: it is not explicitly a backup tool. Check out yourself which of these solutions suit you best. You mentioned BTRFS snapshots: they might protect you against the accidental deletion of files, but not against the failure of the drive hardware or file system issues.Ī “full backup” that contains protection against hardware failure and accidental deletion of files/file system failures and such, might be something like rsnapshot, borg or restic if they backup to another physical drive that contains a separated file system. It will potentially also not protect you if there is an issue with the file system. But it does not protect you if you or a buggy application accidentally delete a file permanently. A major question you have to ask first is: against what do you want to protect?Į.g., RAID protects you if the hardware of one physical drive fails.
0 Comments
Leave a Reply. |