Added encrypted backup function

This commit is contained in:
2020-09-17 14:00:11 +02:00
parent f44cfb0217
commit 0400e31178
3 changed files with 51 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
RMDAYS=14 #Days until first backup gets removed
DOMC=01 #Day of month for monthly backups
SYSTEMFILES="/etc/nginx/ /etc/apache2/ /etc/php/ /etc/mysql/ /etc/crontab /opt/" #Folders and files that will be backed
SYSBACKENC=0 #Sets if system files use encrypyed tar archive
#Remote
BACKUPSERVICE=sftp #Transfer prtocal use ftp or sftp
@@ -15,6 +16,10 @@ REMOTEPATH=/home #Path were backup wil be stored on FTP
DBUSER='root' #MySQL Username
DBPASS='<MSQLRootPW>' #MySQL Root password (syntax '<MSQLRootPW>')
#RSYNC
RSPORT=22 #Rsync port
##SiteBackup site backup command, multiple commands are allowed
#example: SiteBackup -d domain.com -sn domain -db wp_093 -sd "/var/www/domain.com/html" -ext-files "/ext/test.txt" -ai1 -wpupdate
#
@@ -26,6 +31,8 @@ DBPASS='<MSQLRootPW>' #MySQL Root password (syntax '<MSQLRoot
# -ai1 #Enable WP all in one migration backup
# -wpupdate #Enable WP updatedb
# -nodb #Disable databse backup
# -snotar #Disable site Tar backup
# -snotar #Disable site tar creation
# -srsync #syncs site folder via rsync
# -srsyncdel #also syncs deletes monthly (day set by DOMC)
# -tarenc #Enables encrypyed site Tar backup