Get the most out of your Centmin Mod LEMP stack
Become a Member

Writing Cpanel Restore Script

Discussion in 'Add Ons' started by brijendrasial, Sep 5, 2019.

  1. brijendrasial

    brijendrasial Active Member

    125
    94
    28
    Mar 21, 2018
    Ratings:
    +148
    Local Time:
    4:51 PM
    1.13.9
    10.0.22-MariaDB
    Hello,

    I am writing cpanel account restore script. Right now only main domain and all database restore is supported and will be modifying as per need in future. Only backup made using user account can be restored for now not cpmove

    Brijendrasial/CentMinMod_Cpanel-Restore

    usage

    git clone Brijendrasial/CentMinMod_Cpanel-Restore
    cd CentMinMod_Cpanel-Restore
    chmod 0777 cmm_cpanel_restore.sh
    ./cmm_cpanel_restore.sh -c backup.tar.gz

    Keep this script and backup file in same directory.

    This will created domain name , move all files and database and create vhost.

    I will make more changes in coming days.
     
  2. eva2000

    eva2000 Administrator Staff Member

    44,731
    10,197
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,805
    Local Time:
    9:21 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    nice thanks for sharing. I am working on cpanel backup/restore script for my paying clients as well centminmod/cpanel-backup still alot of testing to do - preview example of backup segement. But good to see other folks like yourself are looking to getting cpanel/whm user's data migrated over to Centmin Mod as well :)
     
  3. brijendrasial

    brijendrasial Active Member

    125
    94
    28
    Mar 21, 2018
    Ratings:
    +148
    Local Time:
    4:51 PM
    1.13.9
    10.0.22-MariaDB
    Subdomain restore supported now.
     
  4. brijendrasial

    brijendrasial Active Member

    125
    94
    28
    Mar 21, 2018
    Ratings:
    +148
    Local Time:
    4:51 PM
    1.13.9
    10.0.22-MariaDB
    Addon Domains restore added.
     
  5. brijendrasial

    brijendrasial Active Member

    125
    94
    28
    Mar 21, 2018
    Ratings:
    +148
    Local Time:
    4:51 PM
    1.13.9
    10.0.22-MariaDB
    Cpmove restore is also working
     
  6. brijendrasial

    brijendrasial Active Member

    125
    94
    28
    Mar 21, 2018
    Ratings:
    +148
    Local Time:
    4:51 PM
    1.13.9
    10.0.22-MariaDB
    FTP Creation while restoring accounts added.