How do I create an ISO of a system backup?

Can someone point me to a how to on timeshift?
Specifically what I want to do is:
Create a backup, snapshot or what ever you call it that I can take and make an .iso of and then install on a separate partition on the same computer or use it as an installation media that can be installed on any computer.

I’ve edited your topic title to make it clear what you’re actually asking. :wink:

1 Like

I tried to use the manjaro-tools buildiso process to build an .iso and it wouldn’t load in virtualbox. The instructions for this are not for the faint of heart. This is quite complicated to make an .iso.
You guys need an easier tool to use.
I will try clonezilla if that is what you are suggesting.

I have had very good luck with qt-fsarchiver LiveDVD . It is an Ubuntu based Live DVD:

Clonezilla/Rescuzilla works fine too, but I have had to chroot and reinstall grub after restoring. I did not have that issue with qt-fsarchiver.

I’ve created a systemrescueCD on a usb drive and ran fsarchiver from it to create a .fsa archive of the partition. I will now be restoring that archive to a different partition on the hard drive.
I will come back here and post the results.

I had the same question and stumbled upon “eggs” – AUR (en) - eggs

I do hope you have no btrfs on your backup :sunglasses:
Because with btrfs as filesystem it is forbidden to restore a backup into a system while there is a second partition with the same ID (I know. I did this once :wink: )

No need for an AUR package:

1 Like

Need some advice.
Here are my partitions on this laptop:

[demo@manjaro ~]$ sudo blkid | grep -v loop
[sudo] password for demo: 
/dev/nvme0n1p9: UUID="5853e799-bebb-4c86-8c11-a5641cb5ea91" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="d2d72c64-98fb-4cab-8920-6965de74d804"
/dev/nvme0n1p11: UUID="45ca132d-4a37-4dc3-afa0-be2e80d6a4a2" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="root" PARTUUID="b98315d8-a7b8-ec46-99e9-bb1d23141d2f"
/dev/nvme0n1p7: LABEL="homeMX" UUID="cac48442-5edc-41ac-af1d-97edf076c0d7" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="home" PARTUUID="2445d333-c9fa-414a-818b-c257c7ab2d0f"
/dev/nvme0n1p5: BLOCK_SIZE="512" UUID="A8545C22545BF214" TYPE="ntfs" PARTUUID="3404b9c8-72be-4f1f-a7ab-bfaea9ad6d4b"
/dev/nvme0n1p3: PARTLABEL="Microsoft reserved partition" PARTUUID="7482307c-c60d-4283-b7fa-fa58b5689885"
/dev/nvme0n1p1: LABEL="Recovery" BLOCK_SIZE="512" UUID="28C6655CC6652AF0" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="7a4b29c2-c214-483d-b2b0-41ff9b3fdd38"
/dev/nvme0n1p8: LABEL="rootMX19" UUID="252e8492-9bba-464c-8c87-4a705ebf6ef4" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="73701bfa-a06b-43af-83c0-13334a7cafeb"
/dev/nvme0n1p10: UUID="1b9cd8e2-756a-4a24-9641-d3cdd3bed29a" TYPE="swap" PARTUUID="0be36f91-7a26-4a54-a365-f8c811fa686d"
/dev/nvme0n1p6: LABEL="rootMX21" UUID="ae691757-a5f4-43d3-9580-0da970b5827f" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="debian-sid" PARTUUID="8e1bcc89-9898-f842-901e-efbc1655aa25"
/dev/nvme0n1p4: TYPE="BitLocker" PARTLABEL="Basic data partition" PARTUUID="25046e5e-3b5a-4816-990a-ac2514d7bedf"
/dev/nvme0n1p2: UUID="6865-B8CE" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="5758188c-330c-4b9b-a98f-e999cf7ec14e"

What I want to do is replace the /home that is part of the manjaro install. It is not on a separate partition.
I want to put the /home directory I have and use the /home partition that has the label “homeMX” from above.
How would I do this?

eggs won’t work for me. It complains about 64 bit.

You cannot create an ISO from a system backup. If you want something which can be restored in case of emergency - you should use Clonezilla. Clonezilla is the defacto tool for creating a cold copy of your system.

Do not use Clonezilla to create a copy of your system to another internal disk. You will get mount issues due to duplicated partition UUIDs.

But as you specify the option to install the ISO to another partition or disk even a different computer then you need a different approach.

That is possible and the first thing to do is to know what changes you have made to the applications installed.

You will benefit a lot from going over this wiki article Build Manjaro ISOs with buildiso - Manjaro as you will use it to create your own iso. You can even watch a video made by Philip Mûller Manjaro Tools: How to create your own Manjaro Spin - YouTube showcasing the process.

The following will assume you have only added packages from the official repo.

The tasks are

  • Install the tools.
  • Clone the iso profiles repo.
  • Create a list of packages added to the system
  • Create a copy of the dotfiles and dotfolders from your $USER’s home.
  • Clean up the copy to only include the settings you actually changed.
  • Copy these files - the your selected profile
    • place them inside $PROFILE/desktop-overlay/etc/skel
  • Edit the file $PROFILE/Packages-Desktop
    • add your list of packages and save the file
  • Run buildiso -p $PROFILE -b $BRANCH -k $LINUX -f -t ~/iso-build
    • run buildiso -h to see all switches

When the build is done navigate the folder ~/iso-build to find the resulting ISO.

If you have been adding packages using PKGBUILDS e.g. from AUR you have extra work to do.

1 Like