Welcome to the Linux Foundation Forum!

How to recover accidentally deleted /etc/rc.d and /etc/rc0.d files or folders?


Hi There,

I am new to LINUX/UNIX systems.
I have accidentally deleted /etc/rc.d and /etc/rc0.d folders, we have a similar server with almost same services.

  1. Can we copy the files/folders from the identical server to damaged server without affecting the folder structure, symlinks or softlinks, file ownership or groups in linux. (there is no connection between servers have to copy to local and local to damaged server) to minimize the impact?

please help me with the commands for copying these files or folders /etc/rc.d and /etc/rc0.d with symlinks and other properties.

OS Details:
Linux version 2.6.32-642.11.1.el6.x86_64 (mockbuild@x86-027.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) ) SMP Wed Oct 26 10:25:23 EDT 2016


Upcoming Training