Want more timely Centmin Mod News Updates?
Become a Member

CMM Backup Script

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

  1. fabianski

    fabianski Member

    99
    12
    8
    Feb 20, 2019
    Brazil
    Ratings:
    +31
    Local Time:
    12:18 PM
    Is there any way to create a backup routine?
    Daily a backup of the database and sends it to google drive
    And weekly a backup of the files and send to the drive
    I think this would be enough for most people
     
    • Like Like x 1
  2. brijendrasial

    brijendrasial Member

    40
    43
    18
    Mar 21, 2018
    Ratings:
    +60
    Local Time:
    8:48 PM
    1.13.9
    10.0.22-MariaDB
    I have that in my mind. I will make as I get time.
     
    • Like Like x 2
  3. pamamolf

    pamamolf Premium Member Premium Member

    3,405
    320
    83
    May 31, 2014
    Ratings:
    +608
    Local Time:
    6:18 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Daily for both :)
     
  4. upgrade81

    upgrade81 Premium Member Premium Member

    228
    14
    18
    Sep 5, 2016
    Switzerland
    Ratings:
    +20
    Local Time:
    5:18 PM
    1.17
    10.3
    Is it possible to do this with cron?
     
  5. brijendrasial

    brijendrasial Member

    40
    43
    18
    Mar 21, 2018
    Ratings:
    +60
    Local Time:
    8:48 PM
    1.13.9
    10.0.22-MariaDB
    ./script.sh -b

    Using the above command you can set cron to make local backups.
     
  6. Dnyan

    Dnyan Member

    55
    9
    8
    Sep 16, 2017
    Ratings:
    +11
    Local Time:
    8:48 PM
    1.17.2
    10.1.41
    it would be better if there is tutorial on how to install and use this addon / script.
     
  7. iotivedo

    iotivedo New Member

    5
    2
    3
    Apr 13, 2019
    Ratings:
    +3
    Local Time:
    5:18 PM
    1.15
    Maria DB 10.3
    What about incremental remote backup? It's possible?
     
    • Like Like x 1
  8. Jon Snow

    Jon Snow Active Member

    432
    64
    28
    Jun 30, 2017
    Ratings:
    +102
    Local Time:
    12:18 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    Would it be possible to let the user choose what exactly is backed up? Say, if I only want the sql and public folder backed up instead of vhost/etc or if I only want the sql file itself backed up.

    And @eva2000 would your centminmod updates ever break this script?

    I'd also recommend updating the screenshot from the first post because people don't read all of the posts in long threads (which can happen to this one). You've added support for both S3 and Google Drive.
     
  9. eva2000

    eva2000 Administrator Staff Member

    41,088
    9,194
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,104
    Local Time:
    1:18 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    break probably not - worse probably would be me adding new locations/directory paths which this backscript may not be aware of i suppose
     
    • Like Like x 1
  10. brijendrasial

    brijendrasial Member

    40
    43
    18
    Mar 21, 2018
    Ratings:
    +60
    Local Time:
    8:48 PM
    1.13.9
    10.0.22-MariaDB
    I dont have edit option available to add again the option available in the script.
     
    • Funny Funny x 1