Skip to main content

Deleted the entire sbin folder

Comments

8 comments

  • cPanelMichael
    Hello, Unfortunately, I'm unsure of a reliable method to recover the /usr/sbin directory on CentOS. I recommend backing up your existing data to a remote location and reinstalling the OS/cPanel. You can then attempt to manually restore the account-specific data. The other option is to setup the new server first, install cPanel, and then attempt to transfer the data via the "Transfer Tool" option in Web Host Manager: Transfer Tool - Documentation - cPanel Documentation How to Move All cPanel Accounts from One Server to Another - cPanel Knowledge Base - cPanel Documentation Note the removal of your /usr/sbin directory may prevent the Transfer Tool from working as intended. Thank you.
    0
  • server948
    Hello, Unfortunately, I'm unsure of a reliable method to recover the /usr/sbin directory on CentOS. I recommend backing up your existing data to a remote location and reinstalling the OS/cPanel. You can then attempt to manually restore the account-specific data. The other option is to setup the new server first, install cPanel, and then attempt to transfer the data via the "Transfer Tool" option in Web Host Manager: Note the removal of your /usr/sbin directory may prevent the Transfer Tool from working as intended. Thank you.

    Setup the new server? What new server? I only have one server and I'm not getting another one.
    0
  • server948
    If so where do I find it in cpanel backups?
    0
  • cPanelMichael
    Hello, Unfortunately, the backup system included with cPanel does not backup the entire filesystem. It's designed to backup individual accounts and certain system configuration files. Documentation on the available backup configuration options is found at: Backup Configuration - Documentation - cPanel Documentation You could consult with your data center/hosting provider to see if any data is automatically backed up, however it's likely the removal of that directory will prevent the OS from working normally. Users are typically advised to backup the existing data, and then reinstall the OS/cPanel. Thank you.
    0
  • cPanelMichael
    Setup the new server? What new server? I only have one server and I'm not getting another one.

    One alternative to backing up your existing data and reinstalling the OS is to setup cPanel on a new server and transfer the data manually. The backup question is answered on your other open thread. Thank you.
    0
  • server948
    No way in hell. try a real answer besides "do a total reinstall". so how can i get the backup of sbin from a cpanel backup?
    0
  • Infopro
    You can't. Multiple threads have been merged here. Have you manually backed up the accounts and databases yet? If not you should be concentrating on that right now. A cPanel forced update fixes your cPanel installation if it finds an issue. Reinstalling CSF was a waste of your time. What you killed by mistake was a whole lot of system files. When you get into the new server, take a look at that directory and you'll see what I mean. If you don't have another server, you need one right now. Or, you'll need to at least download the accounts related files off that server that you still have access to for safe keeping. You don't need to backup the whole server, just your accounts and associated files. Moving things over to a new server or backing up local to the server so you can reload it is really your only path forward here.
    0
  • twhiting9275
    Just my 0.02 here. You can TRY setting up a temporary VPS, making sure that it's precisely the same OS, version, etc, and try rsyncing the data... However, I still wouldn't rely on anything on the old server cPanel won't backup system binary files. It doesn't do that. It'll back up your server's accounts, mysql data, all the good stuff, but not binaries. Not gonna happen, and wisely so. If you don't want to go and get a new server, then, you might be able to talk your datacenter / host into the following: #1: Temporarily removing your primary drive, making it secondary #2: Temporarily adding another primary drive to your server #3: Reloading the OS onto the drive in #2 Then, you can take the backups you made (you do have backups of your accounts, et all, right?) and place them on the server itself, and have the host/dc remove the SECONDARY drive and reclaim it. Obviously, you want to keep the primary drive. Unfortunately, as Infopro and Michael mentioned, you've pretty much majorly screwed up your server. Take it from me, who's been in this business way longer than you can imagine. You cannot safely recover from your mistake without a full OS reload. You can patch it up, and hope it works (see my first suggestion), but I wouldn't trust a thing there, because who knows what might be missing, and what might not be correct. This is why I tell people not to mess with things they don't understand, all the time . These mistakes are incredibly costly in time and $$$.
    0

Please sign in to leave a comment.