Бэкап сайта 3

Опубликовано admin - чт, 09/04/2020 - 14:11

#!/bin/sh
 
cd /var/www/drupal8
vendor/bin/drush sset system.maintenance_mode 1
 
if vendor/bin/drush sql-dump --result-file=../baza_drup8.sql
then echo "Backup of sql successful"
else echo "Backup of sql failed"
fi
 
duplicity --no-encryption /var/www/drupal8 file:///home/yuraxu1804/backupssd
 
vendor/bin/drush sset system.maintenance_mode 0