[SOLVED] Any way to make a full clone and/or image of mounted running drive? (running Ubuntu 21.04)

Windows 10 has Volume Shadow Service (VSS) that allows apps like Casper to make full images and bootable clones of Windows disks while they’re mounted and running. Any apps do this for Ubuntu? I want to make images and clones of my main Ubuntu 21.04 drive while it’s mounted and running.

Can this only be done with LVM? Can LVM run on an ext4 / Ubuntu 21.04 system? Or is LVM only for servers?

I’m using Timeshift to take regular daily system snapshots and that’s working great. But I also want to make full images and clones without unmounting my main drive and without booting from a live USB stik.

I read about something called Continuous Data Protection (CDP) and Linux Hot Copy, but it seems they only work on Linux/Ubuntu servers.

dd is an option but will have difficultly in cleanly cloning files that are simultaneously being modified on the original.

man dd
1 Like

The difference between desktop linux and server linux is not that much. It would likely work just fine.

VSS has a lot of complicated scheduling so that it doesn’t make copies of open files, instead it effectively closes the file, makes a copy, then reopens it in a way that the user doesnt notice.

The closest thing I can tell is BTRFS snapshots or LVM. But what do you mean by “clone” do you mean a byte for byte copy of the whole disk?

Check out this tool and see if its anything like what you want: https://rsnapshot.org/

1 Like

OK, I think FSArchiver may do what I want. I installed fsarchiver and now I need to install the GUI which is qt-fsarchiver. See pic below. Which file should I download and install for my AMD Ubuntu 21.04 laptop?
.
.

The one on the bottom – amd64. FYI the “amd” in “amd64” designates that it is 64 bit and not that it is for an AMD processor (it also works on Intel CPUs)

1 Like

OK, thanks. That’s what I thought but, as a Linux newbie, I’ve learned the hard way to never assume. :slight_smile: I’ll get it installed and see if fsarchiver actually works the way I hope it does. I’ll report back.

Good tip. I’ll read thru the docs. Thanks.

I finally got FSArchiver working to make a clone of a mounted and running drive. It’s working good.

Details here [SOLVED] Any way to make a full clone and/or image of mounted running drive? (running 21.04)

Could someone mark this thread as resolved? Thx.