Add logging
This commit is contained in:
parent
c9984c448c
commit
0ffd8ef535
@ -91,8 +91,10 @@ if [ -n "${DIRS[*]}" ]; then
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
echo "Will upload resultant backups to {{ backup_s3_bucket }}"
|
echo "Will upload resultant backups to {{ backup_s3_bucket }}"
|
||||||
if command -v restic > /dev/null 2>&1; then
|
if command -v restic > /dev/null 2>&1; then
|
||||||
|
echo "Using restic for backups"
|
||||||
backup ${DIRS[*]}
|
backup ${DIRS[*]}
|
||||||
else
|
else
|
||||||
|
echo "Using rudimentary tar and S3 for backups"
|
||||||
for dir in "${DIRS[@]}"; do
|
for dir in "${DIRS[@]}"; do
|
||||||
if [ "$dir" == "/data" ]; then
|
if [ "$dir" == "/data" ]; then
|
||||||
for datadir in "$dir"/*; do
|
for datadir in "$dir"/*; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user