27 lines
770 B
Plaintext
27 lines
770 B
Plaintext
|
export AWS_ACCESS_KEY_ID="{{ aws_access_key_id }}"
|
||
|
export AWS_SECRET_ACCESS_KEY="{{ aws_secret_access_key }}"
|
||
|
export URL_SCW="s3://{{ url_scw }}/{{ scw_directory }}"
|
||
|
|
||
|
# GPG Key information
|
||
|
export PASSPHRASE="{{ passphrase }}"
|
||
|
export GPG_FINGERPRINT="{{ gpg_fingerprint }}"
|
||
|
# Folder to backup
|
||
|
export SOURCE="--exclude /sys --exclude /proc --exclude /opt --exclude /tmp --exclude /mnt --exclude /home /"
|
||
|
|
||
|
# Will keep backup up to 1 month
|
||
|
export KEEP_BACKUP_TIME="1M"
|
||
|
|
||
|
# Will make a full backup every 10 days
|
||
|
export FULL_BACKUP_TIME="10D"
|
||
|
|
||
|
# Log files
|
||
|
export LOGFILE_RECENT="/root/log/logfile-recent.log"
|
||
|
export LOGFILE="/root/log/logfile.log"
|
||
|
|
||
|
log () {
|
||
|
date=`date +%Y-%m-%d`
|
||
|
hour=`date +%H:%M:%S`
|
||
|
echo "$date $hour $*" >> ${LOGFILE_RECENT}
|
||
|
}
|
||
|
export -f log
|