File size: 693 Bytes
9d54b72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

echo ""
echo "------------------ starting backup script -------------------"
echo ""
# run export of oracle 19c database running in the container named 'oracle-database' using the Data Pump 'expdp' command
sudo docker exec oracle-database /opt/oracle/backup/scripts/run.sh 2>&1 | tee -a /data/backup/archivedb_$(date +%Y_%m_%d_%H_%M_%S).log

# change permission so that vcell can move them in a separate script and cron job
chmod 666 /data/backup/*.log
chmod 666 /data/backup/*.dmp

# copy move dump file to remote storage
echo "vcell runs separate script to archive to ~/vcell/database_backups"

echo ""
echo "------------------ ending backup script -------------------"
echo ""