GNU/Linux >> Linux Esercitazione >  >> Linux

CentOS / RHEL:come eseguire il backup/ripristino della configurazione utilizzando authconfig

Passaggi

1. Eseguire il backup dei file di configurazione utilizzando l'utilità authconfig. La sintassi generale del comando è:

# authconfig --savebackup=[name]

Ad esempio :

# authconfig --savebackup=config_backup

2. I backup vengono salvati nella seguente posizione:

# ll /var/lib/authconfig/backup-config_backup/
total 80
-rw-r--r-- 1 root root  401 Oct 28 00:18 authconfig
-rw-r--r-- 1 root root    1 Oct 28 00:18 cacheenabled.conf
-rw-r--r-- 1 root root  830 Oct 28 00:18 fingerprint-auth-ac
-rw-r--r-- 1 root root  512 Oct 28 00:18 krb5.conf
-rw-r--r-- 1 root root 2293 Oct 28 00:18 libuser.conf
-rw-r--r-- 1 root root 1816 Oct 28 00:18 login.defs
-rw-r--r-- 1 root root   67 Oct 28 00:18 network
-rw-r--r-- 1 root root 4290 Oct 28 00:18 nslcd.conf
-rw-r--r-- 1 root root 1722 Oct 28 00:18 nsswitch.conf
-rw-r--r-- 1 root root  464 Oct 28 00:18 openldap.conf
-rw-r--r-- 1 root root 8857 Oct 28 00:18 pam_ldap.conf
-rw-r--r-- 1 root root 1174 Oct 28 00:18 password-auth-ac
-rw-r--r-- 1 root root  882 Oct 28 00:18 smartcard-auth-ac
-rw-r--r-- 1 root root  844 Oct 28 00:18 smb.conf
-rw-r--r-- 1 root root  416 Oct 28 00:18 sssd.conf
-rw-r--r-- 1 root root 1174 Oct 28 00:18 system-auth-ac
-rw-r--r-- 1 root root  585 Oct 28 00:18 yp.conf

3. Le configurazioni possono essere ripristinate utilizzando il seguente comando:

# authconfig --restorebackup=[name]

Nel nostro caso di esempio:

# authconfig --restorebackup=config_backup


Linux
  1. MySQL:come eseguire il backup (scaricare) e ripristinare il database utilizzando mysqldump

  2. Come installare TeamViewer su CentOS 6 / RHEL 6

  3. CentOS / RHEL 7:come rimuovere l'immagine di ripristino usando grubby

  4. CentOS / RHEL:come ridurre il file system radice LVM

  5. Come modificare il nome dell'interfaccia in CentOS/RHEL 8 usando prefixdevname

Come eseguire il backup e il ripristino dei dati utilizzando Restic in Linux

Come eseguire il backup e il ripristino di file utilizzando BorgBackup in Linux

Come ripristinare il backup del database utilizzando JetBackup 5?

CentOS / RHEL 7:come reimpostare la password di root

CentOS / RHEL 5,6:come modificare il fuso orario

Come reimpostare la password di root in CentOS/RHEL 8