Live data from Hacker News

Easily replicate/clone your Linux install

foxclone.com

11–20 of 21 posts

Re: Easily replicate/clone your Linux install

#12
I'm not sure I'd ever want to replicate or clone my Linux install, including all hardware-related settings and all those applications that I installed at some point via apt and used only once or twice.

What I do need to replicate from time to time (whenever I deal with multiple machines) are 1) my data and 2) my settings / dotfiles. For the former, I use Syncthing (and of, course, backups because syncing can easily go wrong). As for the latter, I've been curating my dotfiles for ten years now and over time added various install scripts, which not only put the dotfiles in the right place but also install and set up the software they are for. One install script e.g. installs zsh, sets it as my default shell and creates a symlink from `~/.zshrc` to my zsh config. Basically, whenever I set up a new machine, I just need to run those scripts and I'm good to go within a few minutes.

Re: Easily replicate/clone your Linux install

#13
post #7

I haven't reinstalled Linux in years; usually, if I want to migrate my install somewhere else I use one of the following approaches: - `rsync -qaHAXS src dest` - `btrfs/zfs send/recv` Lately I standardized around ZFS, so I've moved several times my install using send and receive (even using SSH) and it's beautiful.

Interested to hear more, too...

Re: Easily replicate/clone your Linux install

#14
post #7

I haven't reinstalled Linux in years; usually, if I want to migrate my install somewhere else I use one of the following approaches: - `rsync -qaHAXS src dest` - `btrfs/zfs send/recv` Lately I standardized around ZFS, so I've moved several times my install using send and receive (even using SSH) and it's beautiful.

This sounds worthy of a gist, or blog entry. Share, please!

Re: Easily replicate/clone your Linux install

#15
post #7

I haven't reinstalled Linux in years; usually, if I want to migrate my install somewhere else I use one of the following approaches: - `rsync -qaHAXS src dest` - `btrfs/zfs send/recv` Lately I standardized around ZFS, so I've moved several times my install using send and receive (even using SSH) and it's beautiful.

Yes, please post a tutorial!

Re: Easily replicate/clone your Linux install

#17
post #7

I haven't reinstalled Linux in years; usually, if I want to migrate my install somewhere else I use one of the following approaches: - `rsync -qaHAXS src dest` - `btrfs/zfs send/recv` Lately I standardized around ZFS, so I've moved several times my install using send and receive (even using SSH) and it's beautiful.

I fifth the tutorial request as well!

Re: Easily replicate/clone your Linux install

#18
post #7

I haven't reinstalled Linux in years; usually, if I want to migrate my install somewhere else I use one of the following approaches: - `rsync -qaHAXS src dest` - `btrfs/zfs send/recv` Lately I standardized around ZFS, so I've moved several times my install using send and receive (even using SSH) and it's beautiful.

I use btrfs send and receive. Works wonderfully! There's a tool called snap-sync for Arch Linux which makes it seamless.

Re: Easily replicate/clone your Linux install

#20

I'm not sure I'd ever want to replicate or clone my Linux install, including all hardware-related settings and all those applications that I installed at some point via apt and used only once or twice. What I do need to replicate from time to time (whenever I deal with multiple machines) are 1) my data and 2) my settings / dotfiles. For the former, I use Syncthing (and of, course, backups because syncing can easily g…

An example where such a clone is useful : I run Ubuntu 18.04 and wild like to switch to 20.04.

Since the 18.04 has a history of experiments more or less successful, I want to start from scratch.

I want to be able to rollback in case something goes wrong, but I have only one M2 drive for my system.

So cloning to an external drive, making sure I can boot from it and then delete the existing system gives me peace of mind.

Post reply on HN