4 ms·
> -"As a practical goal, you should be able to recreate your host with a single Bash script." I disagree with this. A single bash script configuring an entire
by encryptluks2 5y ago
> -"As a practical goal, you should be able to recreate your host with a single Bash script."
I disagree with this. A single bash script configuring an entire hosts can be overly complex and very difficult to follow. As someone who has created complex bash scripts, this will become very time consuming and prevent you from making many changes without significant efforts. I'd suggest familiarizing yourself with tools like cloud-init and Ansible.
- deleted 5y ago[deleted]
- jenscow 5y agoMy take on that, was the host creation should be simple enough to only require bash.
- chasil 5y ago"Relax and Recover" (rear) is a useful tool, written specifically in the bash dialect, that will write a compressed clone of your system to a bootable USB flash drive, network share (NFS/SMB), and other targets. Booting with rear, a (somewhat "klunky") interface will allow you to restore your captured backup, apparently pristine. It is similar in effect to the HP-UX Ignite tool that I used on that platform. Oracle has published a number of articles and blogs on or relating to it, and it is well worth study. The invocation of tar that preserves the SELinux contexts is particularly worth capturing.
- encryptluks2 5y agoYes, but capturing something is far different than being able to reproduce a system across multiple machines.