Fixing backup script folder/logfile for rsync
Change-Id: I7c5010f675514b3315286f19d950f2c815727f4c
diff --git a/cassandra/files/backup/cassandra-backup-client-runner-call.sh b/cassandra/files/backup/cassandra-backup-client-runner-call.sh
index a848f1c..f6f9f05 100644
--- a/cassandra/files/backup/cassandra-backup-client-runner-call.sh
+++ b/cassandra/files/backup/cassandra-backup-client-runner-call.sh
@@ -24,7 +24,8 @@
SCRIPTDIR="/usr/local/bin"
KEEP={{ backup.client.full_backups_to_keep }}
HOURSFULLBACKUPLIFE={{ backup.client.hours_before_full }} # Lifetime of the latest full backup in seconds
- RSYNCLOG=/var/log/backups/cassandra-rsync.log
+ RSYNCLOGDIR="/var/log/backups"
+ RSYNCLOG="/var/log/backups/cassandra-rsync.log"
if [ $HOURSFULLBACKUPLIFE -gt 24 ]; then
@@ -57,8 +58,8 @@
exit 1
fi
- if [ ! -d "$RSYNCLOG" ] && [ ! -e "$RSYNCLOG" ]; then
- mkdir -p "$RSYNCLOG"
+ if [ ! -d "$RSYNCLOGDIR" ] && [ ! -e "$RSYNCLOG" ]; then
+ mkdir -p "$RSYNCLOGDIR"
fi
# Get local Cassandra listen address. Should be loaded via the selected