Restore /etc
Mistake always happened, but Make sure don't make it happened again and again..!
In this Tips, We are going to solve the problem is you confuse to delete folder or everything in "etc" which is the main folder to store the configurations in Linux systems.
but this could help if you have the update to date of a "etc" backup.
Move everything from the "etc from backup" to the "/etc "
extract the "etc from backup" and use command rsync
rsync -arl /restore/path/etc/ /etc/
Options:
-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X)
-r, --recursive recurse into directories
-l, --links copy symlinks as symlinks
We use these options to support the symlink,and recursive directory in /etc
and then issue other command to reload the configurations of init.
sudo initctl reload-configuration
and waiting for a good change to reboot your server.
If there is crash or error, You are fixed.,,,, :D
Cheers,
No comments:
Post a Comment