Discover Centmin Mod today
Register Now

CMM Backup Script

Discussion in 'Add Ons' started by brijendrasial, Jan 8, 2019.

  1. brijendrasial

    brijendrasial New Member

    15
    10
    3
    Mar 21, 2018
    Ratings:
    +16
    Local Time:
    9:44 PM
    1.13.9
    10.0.22-MariaDB
    Hello Everyone,

    I am not a good coder in any way but tried to create a script for general use. This script initially supports local backups and their restoration. Will be updating it soon to support more backup options.
    Brijendrasial/CentMinMod_Backup

    [​IMG]
     
    • Like Like x 4
    • Winner Winner x 1
    • Informative Informative x 1
  2. eva2000

    eva2000 Administrator Staff Member

    38,678
    8,540
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,123
    Local Time:
    2:14 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  3. frm

    frm New Member

    18
    3
    3
    Dec 17, 2018
    Ratings:
    +4
    Local Time:
    1:14 AM
    1.15.7
    10.3.11
    This would be great if there was a 5th option of a database backup for servers just running a database.

    Also if the FTP or S3 could work as backups could exceed storage space. :)
     
  4. brijendrasial

    brijendrasial New Member

    15
    10
    3
    Mar 21, 2018
    Ratings:
    +16
    Local Time:
    9:44 PM
    1.13.9
    10.0.22-MariaDB
    Hello,

    Sorry I dont get that much time and in free time I complete. Between FTP backup is completed. If someone can provide me amazon s3 backup server for few days I would love to complete it too. Suggestions are always welcome
     
    • Like Like x 2
  5. brijendrasial

    brijendrasial New Member

    15
    10
    3
    Mar 21, 2018
    Ratings:
    +16
    Local Time:
    9:44 PM
    1.13.9
    10.0.22-MariaDB
    Database backup and restore both or just database backup is needed.
     
  6. upgrade81

    upgrade81 Premium Member Premium Member

    202
    14
    18
    Sep 5, 2016
    Italy
    Ratings:
    +19
    Local Time:
    5:14 PM
    1.13.8
    10
    I can supply it to you.
    but how are you going to structure your backups?
    what will you use incremental? Full? Deduplication?
    Borg?
     
  7. brijendrasial

    brijendrasial New Member

    15
    10
    3
    Mar 21, 2018
    Ratings:
    +16
    Local Time:
    9:44 PM
    1.13.9
    10.0.22-MariaDB
    full backup per account I use and will add functionality every month.
     
  8. brijendrasial

    brijendrasial New Member

    15
    10
    3
    Mar 21, 2018
    Ratings:
    +16
    Local Time:
    9:44 PM
    1.13.9
    10.0.22-MariaDB
    To make only full database backup one per mysql account run the below command.

    Code:
    ./CMM_backup.sh -f
     
    Last edited: Mar 26, 2019 at 1:42 AM
  9. brijendrasial

    brijendrasial New Member

    15
    10
    3
    Mar 21, 2018
    Ratings:
    +16
    Local Time:
    9:44 PM
    1.13.9
    10.0.22-MariaDB
    Now single database backup is supported.

    Code:
    ./CMM_backup.sh -u DB_NAME
     
    • Like Like x 1
  10. brijendrasial

    brijendrasial New Member

    15
    10
    3
    Mar 21, 2018
    Ratings:
    +16
    Local Time:
    9:44 PM
    1.13.9
    10.0.22-MariaDB
    Last change. Now many full site and db backup uncompressed using below command.

    Code:
    ./CMM_backup.sh -b
    If someone can share amazon s3 account let me know so I can develop last module.
     
..