diff --git a/ghetto/backup/archiver.cfg b/ghetto/backup/imager.cfg similarity index 100% rename from ghetto/backup/archiver.cfg rename to ghetto/backup/imager.cfg diff --git a/ghetto/backup/archiver.sh b/ghetto/backup/imager.sh similarity index 91% rename from ghetto/backup/archiver.sh rename to ghetto/backup/imager.sh index db0f3cd..43ef8f4 100755 --- a/ghetto/backup/archiver.sh +++ b/ghetto/backup/imager.sh @@ -358,26 +358,31 @@ for fs in $FULLPARTS $LVS; do done echo "fsarchiver restfs \$DEST/fsarchive.fsa $RESTOREFLAGS" >> $DEST/restore.sh -echo "" >> $DEST/restore.sh -echo "echo Please run the rest of the commands in restore.sh manually." >> $DEST/restore.sh -echo "# Now for the hard part, I know you can do it!" >> $DEST/restore.sh -echo "# mkdir /mnt/backup" >> $DEST/restore.sh -echo "# mount /dev/mapper/ /mnt/backup" >> $DEST/restore.sh -echo "# mount -o bind /dev /mnt/backup/dev" >> $DEST/restore.sh -echo "# chroot /mnt/backup /bin/bash" >> $DEST/restore.sh -echo "# mount /boot" >> $DEST/restore.sh -echo "# grub-install " >> $DEST/restore.sh -echo "# umount /mnt/backup/boot" >> $DEST/restore.sh -echo "# exit" >> $DEST/restore.sh -echo "# umount /mnt/backup/dev" >> $DEST/restore.sh -echo "# umount /mnt/backup" >> $DEST/restore.sh -echo "#" >> $DEST/restore.sh -echo "# The good news is you're done. umount the partition the backups live" >> $DEST/restore.sh -echo "# on, repeat the team mantra (WTWTCH), and reboot." >> $DEST/restore.sh + +echo "echo All done, reboot to experience your system as it was before it was imaged" >> $DEST/restore.sh +echo "echo" >> $DEST/restore.sh + +# This has be resolved by grabbing a bigger chunk of the disk header" +#echo "" >> $DEST/restore.sh +#echo "echo Please run the rest of the commands in restore.sh manually." >> $DEST/restore.sh +#echo "# Now for the hard part, I know you can do it!" >> $DEST/restore.sh +#echo "# mkdir /mnt/backup" >> $DEST/restore.sh +#echo "# mount /dev/mapper/ /mnt/backup" >> $DEST/restore.sh +#echo "# mount -o bind /dev /mnt/backup/dev" >> $DEST/restore.sh +#echo "# chroot /mnt/backup /bin/bash" >> $DEST/restore.sh +#echo "# mount /boot" >> $DEST/restore.sh +#echo "# grub-install " >> $DEST/restore.sh +#echo "# umount /mnt/backup/boot" >> $DEST/restore.sh +#echo "# exit" >> $DEST/restore.sh +#echo "# umount /mnt/backup/dev" >> $DEST/restore.sh +#echo "# umount /mnt/backup" >> $DEST/restore.sh +#echo "#" >> $DEST/restore.sh +#echo "# The good news is you're done. umount the partition the backups live" >> $DEST/restore.sh +#echo "# on, repeat the team mantra (WTWTCH), and reboot." >> $DEST/restore.sh echo "" echo "" -fsarchiver archinfo $FSARCHIVE | less +fsarchiver archinfo $FSARCHIVE | more echo "" echo "Does this look right to you?" echo ""