-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.config
23 lines (20 loc) · 1.12 KB
/
.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
#
# Configure USER OPTIONS for bwpbackup.sh backup script for Bitnami for WordPress
#
########################### user options ######################################
AWS_ACCESS_KEY_ID=""
AWS_SECRET_ACCESS_KEY=""
work_dir="/opt/bitnami" # Path to Bitnami Wordpress stack
# installation (e.g. /opt/bitnami)
backup_dir="$HOME/backups" # Path to dir to save backup files
s3_bucket="s3://" # AWS S3 bucket and prefix
db_user="root" # Database user name
db_name="" # Database name
local_days_to_keep=3 # 0 to keep forever
############################# other variables #################################
today="$(date +%F)" # Today's date YYYY-MM-DD
now="$(date -R)" # Today's date in RFC Email format
USER="$(whoami)" # Set the $USER var to logged in user
log_file="www-backup-${today}.log" # Log file name
###############################################################################