blob: db59d16e2ae39dfb04e85140fbcb6f06b15d4cdd [file] [log] [blame]
Instrumental6433cd52018-04-16 14:28:44 -05001# BEGIN Store prev
2if [ -e "6day" ]; then
3 rm -Rf 6day
4fi
5
6PREV=6day
7for D in 5day 4day 3day 2day yesterday; do
8 if [ -e "$D" ]; then
9 mv "$D" "$PREV"
10 fi
11 PREV="$D"
12done
13
14if [ -e "today" ]; then
15 mv today yesterday
16 gzip yesterday/*
17fi
18
19# END Store prev
20date
21docker exec -t aaf_cass bash -c "mkdir -p /opt/app/cass_backup"
22docker container cp cbackup.sh aaf_cass:/opt/app/cass_backup/backup.sh
23# echo "login as Root, then run \nbash /opt/app/cass_backup/backup.sh"
24docker exec -t aaf_cass bash /opt/app/cass_backup/backup.sh
25mkdir today
26docker container cp aaf_cass:/opt/app/cass_backup/. today
27
28date