Re: best way to make a full backup of a system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ESGLinux wrote:
> but If I use the ks file It leaves the system as I installed, I´ll lost all
> of my configurations, isn´t it?

Marti, Robert wrote:
> A kickstart takes no time. There's a ks file in /root after you
> install a box.

Writing about kickstart and the fact it does take some time, I meant
that you should make effort to non-interactively script your RHEL
configuration.
Refer to the section %post of the ks.cfg. The history of RHEL
installation you have just in /root/anaconda-ks.cfg, but your
customization you should describe in the %post section, e.g. change your
configuration files, add additional users, create directories, or change
permissions.

Everything in the %post section must be non-interactive.  A simple
example, if you want to add user john with password redhat:

useradd -p $(openssl passwd -1 redhat) john

or you want to create you custom /etc/resolv.conf file you'd better write:

cat <<EOF > /etc/resolv.conf
search example.com
nameserver 192.168.0.254
EOF

instead of vi/nano/gedit /etc/resolv.conf and interactively edit the file.

Regards

-- 
Bohdan Sydor
RHC{E,I,X}
www.sydor.net

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux