Best method to flawlessly backup one Linux machine and restore on a new machine

I have read multiple ways to back up an existing Linux machine and restore it in full on a new machine. What is the best fool proof method and tool.

2 Likes

You have the option of a full system back up which can be achieved with Clonezilla or you can use a file level back up with Deja Dup. You could also do file level backup with rsync but it is command line based unlike Deja Dup which is GUI. There is nothing like fool proof when it comes to backing up a Linux system but the options I mentioned are to a large extent reliable.

2 Likes

Welcome to the forum, @troutseeker! Yes Clonezilla stands out as a foolproof tool. It allows you to clone your entire disk or specific partitions and restore them to a new machine efficiently.

It’s especially useful if you’re moving to hardware with similar or compatible configurations. Remember to check the new machine’s hardware compatibility and adjust any necessary configurations post-restore.

Other alternatives to Clonzilla:

  1. dd Command: A powerful Unix tool that can create a bit-by-bit copy of your hard drive. It’s very effective but requires caution due to its potential to overwrite data if used incorrectly.
  2. rsync: Great for incremental backups. It allows you to backup only the changes made since the last backup, saving time and storage space.
  3. FSArchiver: A flexible tool that allows you to save the contents of a file system to a compressed archive. It is capable of restoring the file system to a partition whose size is not exactly the same as the original.
  4. G4L (Ghost for Linux): A disk imaging tool that functions similarly to Ghost. It supports a variety of file systems and network interfaces.
  5. UrBackup is another excellent choice for backing up Linux machines, distinct from the likes of Clonezilla, Partimage, and FSArchiver.

Happy Linuxing!

2 Likes

Greatly appreciated !

2 Likes

I’m a dd fan too, but I vaguely recall it didn’t handle devices/drivers well. Is my memory faulty? The memory has something to do with configuration or bits (as in what ls would show).

1 Like

I’m using dd for full disk backups and Rclone for partial backups.

1 Like

Deja Dup looks well-designed, but I wonder whether it’s possible with an incremental backup tool like this to remove old backups containing large files that have since been discarded, to keep the backup size in check.

@AnthonyRKing @hydn i would like to introduce timeshift timeshift - Fedora Packages which is much better and highly configurable. You can take complete restore and backup of your drive and also restore it to a particular date. You can set monthly or weekly backups and it is the same as snapshot of the system in other operating system. This comes very handy and can help you restore system at the same state so that you dont have to configure and install a system again and again.

Thank you all,Gaurav

1 Like

Indeed. Thanks for adding that! There’s also:

I’ve been using rclone to mount my Google Drive cloud storage to the file system and sync in real-time.

Works great because I can access files via thunar: