Skip to main content

Restore Default File/Folder Structure

This script will restore the mandatory files and directories for your Ultra.cc service to the default structure and re-install your nginx webserver. It will not overwrite any media files or application configuration files, except for any webserver files you have updated in ~/.apps/nginx.

This is an unofficial script that is provided for your convenience. The script is provided as-is and may not be updated or maintained by Ultra.cc. Customers are welcome to use and customize unofficial scripts for their unique needs and requirements. Unofficial support may be offered via Discord only and at the sole discretion of Ultra.cc staff. Use at your own risk.

The script is to be used if you have accidentally deleted the default files and directories required for your service to run.

Listed below are all the files and directories that will be restored.

  • ~/.bashrc
  • ~/.profile
  • ~/bin
  • ~/.apps
  • ~/downloads
  • ~/media
  • ~/www

Additionally, a symbolic link will be created between ~/downloads and ~/www

Usage

  • Connect to your Ultra.cc slot via SSH, see guide here
  • Once connected, execute the following command:
bash <(wget -qO- https://scripts.ultra.cc/util/Ultra_restore/main.sh)
  • You should see Restoration process has been started...
  • Then you should see Service has been restored to default
  • Done!