Instrumental | 6433cd5 | 2018-04-16 14:28:44 -0500 | [diff] [blame] | 1 | # BEGIN Store prev |
| 2 | if [ -e "6day" ]; then |
| 3 | rm -Rf 6day |
| 4 | fi |
| 5 | |
| 6 | PREV=6day |
| 7 | for D in 5day 4day 3day 2day yesterday; do |
| 8 | if [ -e "$D" ]; then |
| 9 | mv "$D" "$PREV" |
| 10 | fi |
| 11 | PREV="$D" |
| 12 | done |
| 13 | |
| 14 | if [ -e "today" ]; then |
| 15 | mv today yesterday |
| 16 | gzip yesterday/* |
| 17 | fi |
| 18 | |
| 19 | # END Store prev |
| 20 | date |
| 21 | docker exec -t aaf_cass bash -c "mkdir -p /opt/app/cass_backup" |
| 22 | docker 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" |
| 24 | docker exec -t aaf_cass bash /opt/app/cass_backup/backup.sh |
| 25 | mkdir today |
| 26 | docker container cp aaf_cass:/opt/app/cass_backup/. today |
| 27 | |
| 28 | date |