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.


* https://rubackup.gitlab.io/
*https://rubackup.gitlab.io/
* Directory for BackUp Configuration Files Default Location: /etc/rubackup.d
*Directory for BackUp Configuration Files Default Location: /etc/rubackup.d
* rubackup --config '/etc/rubackup.d - EXAMPLES/110-Rocky8_ALL-Partition.yaml' --loglevel 6 --logfile /var/log/Rocky_ALL-Partition.log
*rubackup --config '/etc/rubackup.d/Rocky8_ROOT-Partition_to-FSArchive.yaml' --loglevel 6 --logfile /var/log/Rocky_ALL-Partition.log
* Example Configuration File (even though the -v (Verbose Option) is included, it doesn't really work to show progress);
*Example Configuration File (even though the -v (Verbose Option) is included, it doesn't really work to show progress);
<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
global:
global:
Line 48: Line 48:
</syntaxhighlight>
</syntaxhighlight>


* Restore a BackUp
*Restore a BackUp
** If a duplicate partition (Volume if LMV) is mounted;
**If a duplicate partition (Volume if LMV) is mounted;
*** umount /mnt/sdb3
***umount /mnt/sdb3
*** lvremove WhatEverVolumeGroupName/VolumeName (look in /dev for the Volume Group, then look in that Directory for the Volume Name): lvremove VG_01_Clone/root
***lvremove WhatEverVolumeGroupName/VolumeName (look in /dev for the Volume Group, then look in that Directory for the Volume Name): lvremove VG_01_Clone/root
**** To Reverse "unmounting an LVM device";
****To Reverse "unmounting an LVM device";
***** vgcfgrestore VG_01_Clone -f /etc/lvm/archive/WhatEverVolumeGroup.vg (--test switch can be added to see if it will work)
*****vgcfgrestore VG_01_Clone -f /etc/lvm/archive/WhatEverVolumeGroup.vg (--test switch can be added to see if it will work)
***** lvscan (it will probably show the restored item as 'inactive')
*****lvscan (it will probably show the restored item as 'inactive')
***** lvchange -a y /dev/VG_01_Clone/root
*****lvchange -a y /dev/VG_01_Clone/root
***** mount -av (to mount everything or remount everything in fstab)
*****mount -av (to mount everything or remount everything in fstab)
***** from: https://www.thegeekdiary.com/how-to-recover-deleted-logical-volume-lv-in-lvm-using-vgcfgrestore/
*****from: https://www.thegeekdiary.com/how-to-recover-deleted-logical-volume-lv-in-lvm-using-vgcfgrestore/
**** OR
****OR
***** lvcreate -n root --size 200G VG_01_Clone
*****lvcreate -n root --size 200G VG_01_Clone
***** ...hmm, still working on this
*****...hmm, still working on this
***** Good info here: https://tuxfixer.com/how-to-create-lvm-volume-group-and-logical-volume/
*****Good info here: https://tuxfixer.com/how-to-create-lvm-volume-group-and-logical-volume/
** If not, create a partition (LVM, etc) ideally equal in size to the original (it can be as small as the expanded size of the backup)
**If not, create a partition (LVM, etc) ideally equal in size to the original (it can be as small as the expanded size of the backup)
** fsarchiver restfs /mnt/sdd1/BackUps/ruBackUp/Rocky8_ROOT-Partition/Rocky8_-20230207.fsa id=0,dest=/dev/VG_01_Clone/root
**fsarchiver restfs /mnt/sdd1/BackUps/ruBackUp/Rocky8_ROOT-Partition/Rocky8_-20230207.fsa id=0,dest=/dev/VG_01_Clone/root