Skip to content
Snippets Groups Projects

Template dans .env

Merged Elian Loraux requested to merge 2-doc-variable into master
2 unresolved threads
+ 5
0
 
# FTP host (the storage box adresses for Tetras) /!\ to put in the password manager
host="CHANGEME"
host="CHANGEME"
 
# The FTP user (or sub user for Tetras) /!\ to put in the password manager
user="CHANGEME"
user="CHANGEME"
 
# FTP password (give at creation of subuser at Tetras) /!\ to put in the password manager
ftppass="CHANGEME"
ftppass="CHANGEME"
 
# Generetade random string /!\ to put in the password manager
encpass='CHANGEME'
encpass='CHANGEME'
bckplist="/root /etc /srv /var/www /usr /lib /opt /var/opt /var/lib/docker/volumes/ /home"
bckplist="/root /etc /srv /var/www /usr /lib /opt /var/opt /var/lib/docker/volumes/ /home"
@@ -16,6 +20,7 @@ BK_FULL_FREQ="3W" # create a new full backup every...
@@ -16,6 +20,7 @@ BK_FULL_FREQ="3W" # create a new full backup every...
BK_FULL_LIFE="2M" # delete any backup older than this
BK_FULL_LIFE="2M" # delete any backup older than this
BK_KEEP_FULL="2" # How many full+inc cycle to keep
BK_KEEP_FULL="2" # How many full+inc cycle to keep
 
# Script for backup
pre_actions(){
pre_actions(){
if [ ! -z "$(which mysql)" ]; then
if [ ! -z "$(which mysql)" ]; then
mysqldump --events --single-transaction --flush-logs --all-databases --default-character-set=utf8 \
mysqldump --events --single-transaction --flush-logs --all-databases --default-character-set=utf8 \
Loading