Explorar el Código

Red matrix monthly backup

Bob Mottram hace 10 años
padre
commit
7df4833c9d
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9
    0
      install-freedombone.sh

+ 9
- 0
install-freedombone.sh Ver fichero

@@ -3758,6 +3758,15 @@ quit" > $INSTALL_DIR/batch.sql
3758 3758
   echo '  cp -f /var/backups/redmatrix_daily.sql /var/backups/redmatrix_weekly.sql' >> /etc/cron.weekly/backupdatabasesweekly
3759 3759
   echo 'fi' >> /etc/cron.weekly/backupdatabasesweekly
3760 3760
 
3761
+  echo '' >> /etc/cron.monthly/backupdatabasesmonthly
3762
+  echo '# Red Matrix' >> /etc/cron.monthly/backupdatabasesmonthly
3763
+  echo 'if [ -f /var/backups/redmatrix_monthly.sql ]; then' >> /etc/cron.monthly/backupdatabasesmonthly
3764
+  echo '  cp -f /var/backups/redmatrix_monthly.sql /var/backups/redmatrix_2monthly.sql' >> /etc/cron.monthly/backupdatabasesmonthly
3765
+  echo 'fi' >> /etc/cron.monthly/backupdatabasesmonthly
3766
+  echo 'if [ -f /var/backups/redmatrix_weekly.sql ]; then' >> /etc/cron.monthly/backupdatabasesmonthly
3767
+  echo '  cp -f /var/backups/redmatrix_weekly.sql /var/backups/redmatrix_monthly.sql' >> /etc/cron.monthly/backupdatabasesmonthly
3768
+  echo 'fi' >> /etc/cron.monthly/backupdatabasesmonthly
3769
+
3761 3770
   nginx_ensite $REDMATRIX_DOMAIN_NAME
3762 3771
   service php5-fpm restart
3763 3772
   service nginx restart