Commit e8b8401f authored by Michael Iseard's avatar Michael Iseard
Browse files

Remove font colours and extra dots

parent 08368e21
......@@ -5,10 +5,10 @@ cd "$(dirname "$0")"
containers=$(docker ps -q)
name=$(date +"%Y%m%d")
done=$(echo -e "\e[32mdone\e[0m")
fail=$(echo -e "\e[31mfail\e[0m")
error=$(echo -e "\e[31merror\e[0m")
dots='....'
done="done"
fail="fail"
error="error"
dots='......'
echo "Starting backup - "$name > $name.log
......@@ -40,7 +40,7 @@ function check_result() {
}
if [[ ! -z "$IM_NFS_MOUNT_POINT" || "$IM_NFS_SOURCE" ]]; then
echo -n 'Mounting NFS.......'$dots
echo -n 'Mounting NFS'$dots
mount $IM_NFS_SOURCE $IM_BACKUP_DESTINATION
check_result 1
fi
......@@ -51,11 +51,11 @@ if [ ! -z "$containers" ]; then
check_result 0
fi
echo -n 'Sending backup.....'$dots
echo -n 'Sending backup'$dots
borg create $IM_BACKUP_DESTINATION::$name $IM_BACKUP_SOURCE
check_result 0
echo -n 'Pruning backups....'$dots
echo -n 'Pruning backups'$dots
borg prune -sv -d7 -w4 -m12 --show-rc $IM_BACKUP_DESTINATION > /dev/null 2>&1
check_result 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment