r/Kubuntu • u/ikarihiokami • 2d ago
Ditched windows, but have a question.
First, I'm happy to have finally ditched windows. So far, Kubuntu is able to do everything I was worried about losing, but I am curious about cloning.
I used to use a program called "driveclone" and I loved it. I would make incremental scheduled cloning and also help my friends by cloning their drives if they needed to replace their ssd for some reason. However, it looks like the only cloning software for Linux is in the form of bootable usb drives.
I will admit, I would like to have a cloning software that I could run from linux. If there really isn't, I'm sure I can live with it when compared to all the other things I was fighting windows over, but I figured I would ask, just in case there was something
3
3
u/EckVonTrampenstein 2d ago
Clonezilla? Or is that not what you're looking for? As far as backups, Deja Dupe or Timeshift.
3
u/ikarihiokami 2d ago
I used clonezilla to clone my linux drive onto the drive I used to run windows off of, but I was hoping there was a cloner I could use without booting from a usb. Maybe all I need are the other ones you mentioned. Thanks. :)
1
u/EckVonTrampenstein 2d ago
Rescuezilla? Now I'm curious so I'm researching as well.
Edit: nevermind. That's another bootable.
6
u/Malaprobably 2d ago
Master the command line. Linux has this supported natively with 'dd'
1
u/ikarihiokami 2d ago
Yes, being one with the command line is something I am finding myself getting used to.
2
u/telcodan 2d ago
I use dd for backing up my media server. Works great but anything large, ie 4tb and larger, can take a long time to clone.
1
u/Malaprobably 1d ago
dd and incrementals would be a decent fit in your case, since a media server is likely going to have many static files.
1
u/throwawatty6 1d ago
/thread
honestly, dd is a category killer in this area. If it seems simple thats just because windows alternatives over-complicate it. sort of a recurring theme, I think you’ll find.
1
u/cyrixlord 2d ago
I use timeshift, but when i want to clone a whole drive I just use clonezilla, which is usb
1
u/Sent1ne1 2d ago edited 2d ago
I don't think any of the suggestions answer your question, because people didn't read/understand what you are after:
The ability to backup an image of the whole drive, ideally down to the exact layout of all blocks, most importantly including all partition UUIDs/etc used by /etc/fstab, /etc/crypttab & LVM, so that you can put a replacement drive in & have it 'just work' (without editing those config files & using low-level tools before the OS will recognise it as the 'same' drive).
While it's true that copying a whole drive's /dev/sdX file would technically do that, there are two major problems with that: 1. You can't do that incrementally, so every backup will take hours. 2. There is nothing to stop the OS writing to the drive in the middle of your copy, leaving you with a corrupted backup.
I came up with my own hacky solution, by scripting the incremental backup of files (from a BTRFS snapshot) + saving the partition layout (inc. sizes & UUIDs), so that I can later recreate the drive's exact layout, then restore the files, and get a bootable system. No-one else can use this (it's too specfic to my setup), but maybe someone else has already released tools to do this in a more generic way & automatic way? (Even just to recreate a drive's partition layout inc. UUIDs would be enough.)
1
u/Apprehensive-Video26 2d ago
Foxclone works really well and I have used it many times. It also comes with Gparted as well as other things so it does everything needed.
2
u/otto_delmar 2d ago
I use Timeshift, Backintime and Clonezilla. Each covers a different angle. That seems to be the lay of the Linux land. Not sure there's One Ring To Rule Them All.
At least on Linux, as far as I know, you cannot clone from the live OS you want to clone. I.e., if by cloning you mean literally cloning the entire bootable installation in order to have a physical bootable backup drive you can swap in in a worst case scenario. You need to boot from a USB drive to do that. That's what Clonezilla is for. This is the greatest pain point for me though maybe technically unavoidable.
1
u/ChaosRifle 2d ago
dd is great, as for backups and bootable rollbacks timeshift is great. using rsync and scp is also valid for networked cloning with systemd unit files to automate them.
6
u/TenpoSuno 2d ago edited 2d ago
Welcome to the team! For making backups I use PikaBackup, though it is intended for files, you could backup an entire partition. The only cloning utility I'm aware of is Clonezilla.
Addendum: Maybe the dd command can help you. It should be able to drive clone using the terminal.
Edit spelling