Welcome to Centmin Mod Community
Register Now

Backing up a VPS

Discussion in 'Virtual Private Server (VPS) hosting' started by viralpoet, Nov 6, 2017.

  1. viralpoet

    viralpoet Member

    35
    3
    8
    Mar 5, 2017
    Ratings:
    +9
    Local Time:
    8:03 PM
    1.10.3
    10
    I have a 600Gb SSD VPS with 100GB of external storage for backup purposes
    I need a step by step guide of what and how to backup my websites.
    I'm assuming I'd need the database and the public files included, but would I need to cover anything else?
    Given the space I have what would you include, how long and how would you overwrite at xx days?
    I'm assuming all this can be scripted with a cron, but what would that entail?
     
  2. eva2000

    eva2000 Administrator Staff Member

    35,049
    7,739
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,933
    Local Time:
    6:03 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    The Centmin Mod to Centmin Mod data migration/server move how to guide gives a good run down of what you want to backup as well as what you may want to back up Centmin Mod Site Data Migration Guide

    Yes you'd need to script it yourself and run via cronjobs. The linked data migration guide's manual commands are also examples of what you could script too.

    For backup scripts in general, there's a few threads on the forums and linked resources which maybe worth reading:
     
    Last edited: Nov 6, 2017
    • Like Like x 1
  3. joselin hernandez

    joselin hernandez New Member

    4
    1
    3
    Nov 23, 2017
    New York, USA
    Ratings:
    +3
    Local Time:
    1:33 PM
    Contact your server hosting provider. It's the best way.
     
    • Dislike Dislike x 1
  4. joselin hernandez

    joselin hernandez New Member

    4
    1
    3
    Nov 23, 2017
    New York, USA
    Ratings:
    +3
    Local Time:
    1:33 PM
    Contact your server hosting provider. It's the best way.
     
    • Dislike Dislike x 1
  5. BoostN

    BoostN Active Member

    111
    25
    28
    Aug 19, 2014
    Ratings:
    +35
    Local Time:
    3:03 AM
    1.13.6
    10.0.34
    That might be the case, but don't ever depend on your host to provide you backups. You never know what might happen.

    In any case, always have a Plan "B", and "C". I push my SQL/Code files to Amazon S3 daily.. just in case.

    See my thread from 2 days ago about a VPS that had disk failure. The backup job was also bad and I had to restore to a 6 day old backup, then luckily I keep my own backups in SQL and I was able to restore without much lost content.
     
    • Agree Agree x 1
..