blob: 31a12141f0da5aa09b361b5faaa6853cce9e585d [file] [log] [blame]
DIR=$(date +%Y%m%d)
echo $DIR
mkdir -p $DIR
docker container cp cbackup.sh aaf_cass:/opt/app/cass_backup
docker container exec -it aaf_cass bash -e '/opt/app/cass_backup/cbackup.sh'
docker container cp aaf_cass:/opt/app/cass_backup/ $DIR/
mv $DIR/cass_backup/*.dat $DIR
tar -cvzf $DIR.gz $DIR
rm -Rf $DIR