Want to subscribe to topics you're interested in?
Become a Member

Writing Cpanel Restore Script

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

  1. brijendrasial

    brijendrasial Member

    56
    54
    18
    Mar 21, 2018
    Ratings:
    +73
    Local Time:
    12:27 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.
     
    • Like Like x 2
  2. eva2000

    eva2000 Administrator Staff Member

    41,350
    9,279
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,236
    Local Time:
    4:57 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 Member

    56
    54
    18
    Mar 21, 2018
    Ratings:
    +73
    Local Time:
    12:27 PM
    1.13.9
    10.0.22-MariaDB
    Subdomain restore supported now.
     
    • Like Like x 1
  4. brijendrasial

    brijendrasial Member

    56
    54
    18
    Mar 21, 2018
    Ratings:
    +73
    Local Time:
    12:27 PM
    1.13.9
    10.0.22-MariaDB
    Addon Domains restore added.
     
    • Like Like x 1
  5. brijendrasial

    brijendrasial Member

    56
    54
    18
    Mar 21, 2018
    Ratings:
    +73
    Local Time:
    12:27 PM
    1.13.9
    10.0.22-MariaDB
    Cpmove restore is also working
     
    • Like Like x 1
  6. brijendrasial

    brijendrasial Member

    56
    54
    18
    Mar 21, 2018
    Ratings:
    +73
    Local Time:
    12:27 PM
    1.13.9
    10.0.22-MariaDB
    FTP Creation while restoring accounts added.