Take backup of all sensitive files to start work as a novice sys-admin
I am trying to editing files of /etc/ and similar directories but I do not know much about inner structure as I could harm my server. I want to take back up of all imortant file but I do not want to use just "cp -r", I want to use well built script.
I have found one here. Can I use this to take backup of my /etc/ directory? http://borahshell.blogspot.in/2014/0...recursive.html I can not try and observer result because server will not give me second chance that's why I thought, I should ask you all expert first. Please comment on the script. Thank You --Regards Sam |
That script just uses cp (recursively).
How will you backup symbolic links? Most files are owned by root and have various group owners. You will need to preserve these. rsync can handle the permissions - not sure about the links. |
Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 10:58 PM. |