From 8a83af5430b9e9d849580fc229dbd029ebb521b7 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 19 Aug 2020 14:12:22 +0200 Subject: [PATCH] Add 'cms-handeler.sh' --- cms-handeler.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cms-handeler.sh diff --git a/cms-handeler.sh b/cms-handeler.sh new file mode 100644 index 0000000..3698bc0 --- /dev/null +++ b/cms-handeler.sh @@ -0,0 +1,12 @@ +#CMS WP +if [ $CMS = "wordpress" ]; then + echo "SiteBackup -d $domain -sn $sitename -db wp_$db_suffix -sd /var/www/$domain/html -ai1 -wpupdate" >> /opt/BackupUtil/Backup-Util.conf +fi +#CMS None +if [ $CMS = "none" ]; then + echo "SiteBackup -d $domain -sn $sitename -sd /var/www/$domain/html -nodb" >> /opt/BackupUtil/Backup-Util.conf +fi +#CMS Nextcloud, Full non rsync +if [ $CMS = "nextcloud" ]; then +echo "SiteBackup -d $domain -sn $sitename -sd /var/www/$domain/html -snotar -srsync -srsyncdel" >> /opt/BackupUtil/Backup-Util.conf +fi \ No newline at end of file