how do I restore root user?

May 12, 2015 752 views
Backups Linux Commands Getting Started DigitalOcean Ubuntu

I made my droplet, then i work on it two months. today I logged in as root user to delete all files from some folder.
i move to this folder:

cd /srv/agl/public

then i paste this command to remove files :

rm * -r

i thought that it was not work so i did it again and again, then i got error :

/bin/rm not found ( or something like this )

so i turned off my droplet to restore from backup. Unfortunately one thing that i saw in "images" page is : "You currently have no backups" - I did not turn on backups !!!

then i turned on my droplet and now i do not have access via ssh or ftp. I don't set autostart for mysql or ftp or nothing.
one thing i wan't to recover is redmine database. Did anyone have some idea how to get database ?

droplet info :
1GB Ram
Disk New York 3
Ubuntu 14.04 x64 vmlinuz-3.13.0-37-generic

sorry for my english

1 Answer

It appears that your attempt to change directory to /srv/agl/public did not succeed and you instead deleted some important parts of your filesystem. Without a backup, our support team can set your droplet to boot to a recovery environment where you can mount your disk and see if your files are still there. If they are you will be able to copy them off to another server or your computer via SFTP. Please open a support ticket and our team can help guide you in this process.

Have another answer? Share your knowledge.