Welcome to Centmin Mod Community
Become a Member

Sysadmin Backup

Discussion in 'System Administration' started by raciasolvo, Oct 18, 2016.

  1. raciasolvo

    raciasolvo Member

    98
    10
    8
    Oct 7, 2016
    Ratings:
    +27
    Local Time:
    1:06 AM
    Nginx 1.11.6
    MariaDB 10.0.27
    I am setting up a backup. For vhosts backup I use this dirs:
    Code (Text):
    - /home/nginx/domains/*/backup
    - /home/nginx/domains/*/log
    - /home/nginx/domains/*/public/wp-content/cache
    + /home/nginx/domains/${VHOSTNAME}
    + /usr/local/nginx/conf/${VHOSTNAME}*
    + /usr/local/nginx/conf/*/${VHOSTNAME}*
    + /root/tools/*_${VHOSTNAME}*
    + /root/.config/*/${VHOSTNAME}*
    - **

    duplicity format (DUPLICITY(1) manual page)
    rootpath=/, + is a include path, - is a exclude path
    + DB Backup
    + cron ?
    Have I any directory forgotten?

    For server I use:
    Code (Text):
    - /swapfile
    - /proc
    - /mnt
    - /tmp
    - /dev
    - /sys
    - /svr-setup
    - /var/tmp
    - /var/log
    - /usr/src
    - /usr/local/src
    - /usr/local/nginxbackup
    - /root/.cache
    - /root/centminlogs
    - /home/nginx/domains
    + **

    What do you think about this list? Do I need to remove or add a path? I need a small but full archive for recovery.
     
    Last edited: Oct 18, 2016
  2. Derek

    Derek New Member

    28
    9
    3
    Aug 5, 2016
    Ratings:
    +16
    Local Time:
    6:06 PM
    /swapfile - you don't need this.
    /proc - No. This is runtime data that's generated automatically.
    /mnt - this is by definition data that is hosted elsewhere
    /tmp - why? If it's here it can be deleted without consequence.
    - /dev
    - /sys
    /svr-setup (no idea on this one)
    /var/tmp - No. Again, it's tmp data
    /var/log - you probably want your logs, but that depends. Would you care if you lots your old http and mail logs, or is it just something that takes up space?
    - /usr/src
    - /usr/local/src
    - /usr/local/nginxbackup
    - /root/.cache
    - /root/centminlogs
    - /home/nginx/domains
     
    • Like Like x 1
    • Informative Informative x 1
  3. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    8:06 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  4. raciasolvo

    raciasolvo Member

    98
    10
    8
    Oct 7, 2016
    Ratings:
    +27
    Local Time:
    1:06 AM
    Nginx 1.11.6
    MariaDB 10.0.27
    Thank you for answer. Yes, that paths I exclude from backup. "-" is "exclude path". Log files excluded too and:
    - /root/.cache - some tmp files
    - /usr/src - i see only kernels src
    - /usr/local/src - centminmod; For own src I use root/src
    - /usr/local/nginxbackup - centminmod nginx backups
    - /root/centminlogs - centminmod
    - /home/nginx/domains - separated backup for each vhost
    - /dev - runtime data ?
    - /sys - runtimedata ?
     
    Last edited: Oct 18, 2016
  5. raciasolvo

    raciasolvo Member

    98
    10
    8
    Oct 7, 2016
    Ratings:
    +27
    Local Time:
    1:06 AM
    Nginx 1.11.6
    MariaDB 10.0.27
  6. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    8:06 AM
    Nginx 1.13.x
    MariaDB 5.5
    yes vhosts and related nginx files like nginx, php-fpm and persistent config file etc
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    8:06 AM
    Nginx 1.13.x
    MariaDB 5.5
  8. raciasolvo

    raciasolvo Member

    98
    10
    8
    Oct 7, 2016
    Ratings:
    +27
    Local Time:
    1:06 AM
    Nginx 1.11.6
    MariaDB 10.0.27
  9. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    8:06 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Informative Informative x 1