Instrumental | b8363e0 | 2018-08-17 13:16:30 -0500 | [diff] [blame] | 1 | |
2 | DIR=$(date +%Y%m%d) | ||||
3 | echo $DIR | ||||
4 | mkdir -p $DIR | ||||
5 | docker container cp cbackup.sh aaf_cass:/opt/app/cass_backup | ||||
6 | docker container exec -it aaf_cass bash -e '/opt/app/cass_backup/cbackup.sh' | ||||
7 | docker container cp aaf_cass:/opt/app/cass_backup/ $DIR/ | ||||
8 | mv $DIR/cass_backup/*.dat $DIR | ||||
9 | tar -cvzf $DIR.gz $DIR | ||||
10 | rm -Rf $DIR | ||||
11 |