Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I somehow managed to wipe the whole of the /var directory tree. Is there a quick way I can restore this and the permissions? If not, can someone tell me what directories to create and their permissions. I'm using Slackware 10, so I've lost all the packages info aswell, is there any way of getting these back?
Nope, . I could maybe get the packages data back by just re-installing them from the CD (I have every package installed so it wouldn't be hard), and I have kept all the packages I have created. Is there any other important data I will need to get back? I know a lot of it is just log files.
Well you could restore all the default directories and such with permissions but some vital files would be missing, especially the packages info stored in the directory. If you use pkgtools like removepkg, installpkg, etc, all those are wiped so you couldn't use those tools to perform upgrades, installs of tgz packages, etc.
But one system is different from another. You could have had directories others don't have and vice versa. I'd suggest if you don't have too much on this machine, back up all your other configs/files and just do a reinstall of your system if you don't have a backup copy of your /var directory.
Yeah, I know about the packages info, but I could probably get this back as I said in my last post. I don't seem to have any other problems, just a few error messages about missing directories. But I could hopefully fix these by restoring the directories and permissions. Is there anything else critically important that is put in /var in Slackware?
Unlike Windows, there is no practical way to recover deleted files in Linux. Unless you've got a backup copy of /var, I would say your best bet is just to reinstall. Good luck with it. -- J.W.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.