Rocky Linux and Disk Imaging: Difference between revisions

mNo edit summary
mNo edit summary
Line 9: Line 9:
OK, RUBackUp then.  Cool.
OK, RUBackUp then.  Cool.


=== What You'll Need ===
===What You'll Need===


* Of Course: https://rubackup.gitlab.io/ (This is just a simple Copy / Paste of files to "install")
*Of Course: https://rubackup.gitlab.io/ (This is just a simple Copy / Paste of files to "install")
** After installing (probably to /opt/rubackup, just to keep things inline with their examples);
**After installing (probably to /opt/rubackup, just to keep things inline with their examples);
*** ln -s rubackup.rb rubackup (enables one to simply type rubackup instead of rubackup.rb)
***ln -s rubackup.rb rubackup (enables one to simply type rubackup instead of rubackup.rb)
*** export PATH="/opt/rubackup:$PATH" (makes the "rubackup command" available from any directory)
***export PATH="/opt/rubackup:$PATH" (makes the "rubackup command" available from any directory)
* And for LVM Support, which is needed for "Live" BackUps (and snapshots): https://www.fsarchiver.org/ (for the latest version, this requires make, make config, make install, and all the associated compiling tools)
*And for LVM Support, which is needed for "Live" BackUps (and snapshots): https://www.fsarchiver.org/ (for the latest version, this requires make, make config, make install, and all the associated compiling tools)


=== Quick Tips ===
===Quick Tips===


* RUBACKUP is configured to look in /etc/rubackup.d for "BackUp Scripts"
*RUBACKUP is configured to look in /etc/rubackup.d for "BackUp Scripts"
* Also see this for addtional configuration items: [[Installing FSArchiver on Rocky Linux]]
*Also see this for addtional configuration items: [[Installing FSArchiver on Rocky Linux]]
* ZSTD is busted in Rocky Linux 9 (and probably others) as of some time in 2023
*ZSTD is busted in Rocky Linux 9 (and probably others) as of some time in 2023


*https://rubackup.gitlab.io/
*https://rubackup.gitlab.io/
Line 74: Line 74:
</syntaxhighlight>
</syntaxhighlight>


*Restore a BackUp
*Restore a BackUp (assumes MBR based Drive)
**Use CFDISK to recreate the various Partitions (ideally the same size (or bigger)), and make the first partition active (Bootable option in CFDISK)
**Use BLIVET-GUI or equivalent VG..., LG... commands to recreate the LVM stuff.
***LVRENAME VG OldLV NewLV
***...oh, and BLIVET-GUI can't deal with any names that are duplicated among various LVM disks
**Restore: fsarchiver restfs WhatEverArchiveName id=X,dest=/dev/sdXY (get the id from fsarchiver archinfo WhatEverArchiveFile)
*Restoring and LVM Related Stuff
**If a duplicate partition (Volume if LMV) is mounted;
**If a duplicate partition (Volume if LMV) is mounted;
***umount /mnt/sdb3
***umount /mnt/sdb3