BuildIso vs. BTRFS System Backup/Restore

I am settled and enjoying my Manjaro.
I was just thinking and reading about system backup and restore. It is clear the best is BTRFS, Timeshift or Snapper.

But as I experienced before BTRFS (especially for /home) has problems (Baloo keeps reindexing all files thus makes the system unusable) plus I read some issues with BTRFS. I am on KDE and Baloo is essential for me)

So, I am considering one of two options in case system breaks:
1- Reinstall with BTRFS System partition and EXT4 /home or user data
2- Create ISO, (software, configuration, /homeā€¦ etc) to install from in case needed.

For sure the first option is more convenient but I am a bit worried as I saw some issues with BTRFS/Grub, Restoreā€¦ (Better Snapper or Timeshift?)

The second option appears to be easier, no BTRFS hassles as I am fully EXT4.

What would be the best buildiso command/options to create an ISO to install from that even reinstall pCloud with my user name and password included, my /home, Chromium browser with even cookies and saved username and passwords for websitesā€¦

Or you recommend I better go with BTRFS as I described above.

Sorry, I feel I can not make a final decision. So I prefer to hear from experts and users and their experiences to make a final decision.

Well - that is a matter of opinion. btrfs certainly has interesting features but when it pukes - you may be lost.

I even noted update announcement comment on known issues ā€¦

I have tried btrfs - an no amount of wild horses are going to drag me down into that pool again.

There is no such command

  • You define a set of packages
  • You copy your preferred configuration into the desktop-overlay folder
  • You build the ISO

Depending on your choices the ISO can get quite big :stuck_out_tongue_winking_eye:

1 Like

So you use EXT4? I liked BTRFS and it did seem to be problematic at times.

If you are sure for using full EXT4, you should test your hardware before: CPU cache, wrong binary calculation in CPU, RAM and Disks with different test tools for example: Memtest86+, mprime and linpack etcā€¦

If you feel sure that hardwares are all ok, then you can use EXT4 completely.

Some people have problem that they got a lot of corrupt data without checksum ability when hardware have some issue without easily noticing

For example:

The test tool Memtest86+ can not detect the error of RAM, but BTRFS did.

1 Like

@linux-aarhus
So, this confirms my point of view, BTRFS is a no-go, as I donā€™t care about RAID or whatever other features. I would better stick with EXT4.

How is that and we have Build Manjaro ISOs with buildiso - Manjaro that shows:

Build your ISO with the following command:

buildiso -p xfce

You need to specify the name of your ISO profile after the -p argument. In this case, it is xfce.

If the build process fails with an error, start it again.

and

You can use arguments with the buildiso command for more build options:

buildiso -f -p xfce -b stable

  • -f letā€™s you specify if you want the full ISO. If omitted a minimal ISO will be build.
  • -b letā€™s you specify the branch. You can also set this in your manjaro-tools.conf file.

You can find other examples of builds using different arguments for buildiso here.

So, I should perhaps

buildiso -f -p MyManjaro -b stable

But I am not sure what options to add to build an ISO of EVERYTHING on my laptop (including even cookies, user names and passwords in Chromiuom and pCloudā€¦ or whatever is installed, configured, logged in)

Yes @Zesko
Everything is currently running perfectly since I stopped distrohopping since 11 March. (and installing only EXT4, no BTRFS)
I have been here before (some time ago but had lots of issues I guess was because of BTRFS and Baloo indexing all the time, I had some issues as well with Grub, I couldnā€™t reboot again. You may check my earlier posts last August/September 2021 e.g. System Gets Unresponsive (KDE) - #9 by limotux)

Yes, to summarize my experience with BTRFS:
1- It is good to have snapshots you can boot to just in case, but following problems were really bad.
2- Iā€™m on KDE, and Baloo is very important to me (a book worm here + many other documents like medical reports, blood testsā€¦ (a bit old man here 60+, contracts, Legalā€¦ etc)
With BTRFS for /home, Baloo kept indexing ALL documents with every snapshot as if they were copies, so searching for a unique file XYZ.txt with unique text, it returns in Dolphin 3, 4, 5, ā€¦ 10 results ALL pointing to the same file)

So, imagine I did only 2 blood tests, and BTRFS made with time 10 snapshots, if I want retrieve the 2 to compare I would get 20 results (10 and 10). And try to find out which are the 2 tests!
3- I had issues with Grub, sometimes it couldnā€™t boot the system to ANY snapshotā€¦ couldnā€™t boot at all. So, I had to continue distrohopping, tried EndeavourOS, and had same issues.

Then after lot of distrohopping I am settled with Manjaro BUT without BTRFS.
And in my Linux life since 2000 I was never happier.
A great distro, a great community, everything is more than perfect.

1 Like

Yes, but the bug is Baloo, not BTRFS and not ZFS.

2 Likes

Sure, I understand. I saw a bug filed there. and to my surprise it was given a normal priority not a top priority :thinking: I wonder how/why.

Still remains some issues with BTRFS as my previous post.

I am not saying by any means that BTRFS is bad, absolutely not. It is a wonderful file system and has lots of really needed features. (for me, snapshots, RAID perhaps, plus many more.)

Maybe if I donā€™t care about Baloo that much it may be perfect with me.
Maybe other issues I had with Grub was that I was trying some ā€œbadā€ things like installing LXQT or XFCE, Dolphin, Baloo, Snapper+Timeshiftā€¦ I know I messed up. But that time was my first attempt to try ARCH or Arch Distro.

So, I think I should go for buildiso.
Hopefully I can ā€œcronā€ it daily or weekly, automagicaly copy it to pCloud folder (over write previous ISO), so I can install from it and get instantly my system as it was. Just in case.

Not true. Baloo every few updates does run amok but it simply eats tons of memory slowing the system down when it does, but it has never actually harmed the file system.

My bad! Maybe I didnā€™t put it clear. I never said harming the file system I mean by

Making ā€˜my systemā€™ i.e. my machine, my laptop. not the file system.
Yes as you said, I agree with you, with what I quoted.

look at the process as an onion :slight_smile: - with the tears

At the core you have the profile.conf - where can define as much as you like - in everything related including theming of the installer should you feel inclined t - including kernel, branch etc.

addgroups="lp,network,power,wheel"
autologin="true"
branch="unstable"
disable_systemd=('pacman-init')
disable_systemd_live=('tlp' 'tlp-sleep')
displaymanager="sddm"
efi_boot_loader="grub"
enable_systemd=('systemd-timesyncd' 'systemd-resolved' 'fstrim.timer' 'NetworkManager' 'firewalld')
extra="true"
geoip="true"
hostname="lxqt-kwin"
kernel="linux515"
login_shell="/bin/bash"
mhwd_used="true"
multilib="false"
nonfree_mhwd="false"
office_installer="false"
password="manjaro"
user_shell="/bin/bash"
username="manjaro"

Configuration are applied in order

1./etc/manjaro-tools/manjaro-tools.conf
2.~/.config/manjaro-tools/manjaro-tools.conf
3.~/iso-profiles/custom/my-xfce/profile.conf
4. command line override

If you run buildiso on its own it assume a build list - default is defined in manjaro-tools.conf - and stored in ~/.config/manjaro-tools/iso.list.d

#buildlist=default

I donā€™t think the option to build a list of profiles has been in much use - but it made sense when the tools was developed - before my time with Manjaro - which goes back to 2016.

To override that build list - you supply a profile using -p <profilename>.

In fact everything added to the commandline will override what is defined in configuration files.

E.g. the branch - if your profile says ā€˜stableā€™ you can override by specifying -b unstable and vice-versa.

So if your profile.conf defines everything you need, you can modify the default.list and specify your profile name and then all you have to do is to run buildiso with no arguments.

Oooooopsss :cry: :sob:

I will see and try!
Maybe

buildiso -f -p manjaro -b stable -v -q 

:rofl:

Looks like baloo indexes your snapshots? That is a really bad behavior, but look, according to the wiki, you can exclude folders: Baloo/Configuration - KDE Community Wiki

Please donā€™t say you index the whole root filesystem with baloo!?

If you update your kernel without rebooting - then run buildiso - then you will get weird errors.

If you plan to run buildiso just after an update - reboot first ā€¦ - just a heads-up

1 Like

Iā€™ve already tried to configure Baloo filter that Baloo only indexes the ~/Documents directory, that works but:
Nevertheless, Baloo reindexes this same directory without changing after creating a new read-only snapshot and rebooting. That looks like a duplicates index of Baloo.

Yes, it seems so. I did not select or configure anything. I just followed defaults.

Honestly I donā€™t know. Followed defaults. I would like Baloo to index only /home (but there is a bug already filed about this)

Hmmmā€¦ sounds there might be a way to avoid this continuous reindexing?

The best thing I can think of is BTRFS for system and EXT4 for /home

OK.
Just to report back.
After a few tries

sudo buildiso -f -p kde -b stable 

Seemed to wotk BUT I noticed it is like downloading and installing stuff not really creating an ISO of the installed system!
Did I do something wrong?

I couldnā€™t understand this. So I quit and recovered to the latest snapshot I took with TimeShift.

donā€™t use sudo - you will mess with the permissions of the output dir

buildiso cannot create an image of your running system

You used buildiso as a backup tool - which it is not - it is a deployment tool - but it can be used to create a user defined ISO - it does not backup your system