-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
run ./archivedb.sh as root or with sudo to generate a dump in /data/backup | ||
## Nightly Oracle database backups | ||
|
||
### Data Pump dump to /data/backup | ||
cron job runs `archivedb.sh` every 1:00am as `root` | ||
|
||
### Compress and Archive to ~vcell/database_backups | ||
cron job runs `move_files_to_vcellhome.sh` every 9:00pm as `vcell` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# compress all *.dmp files in /data/backup | ||
cd /data/backup || echo "failed to cd to /data/backup" || exit 1 | ||
gzip *.dmp | ||
|
||
# move | ||
mv /data/backup/*.log ~vcell/database_backups | ||
mv /data/backup/*.dmp.gz ~vcell/database_backups |