Update backup_bin.sh
This commit is contained in:
@@ -38,10 +38,10 @@ cd ${BKP_APP_LOCATION}
|
|||||||
# suppression des anciennes sauvegardes
|
# suppression des anciennes sauvegardes
|
||||||
rm -fv backup_bin_oraapp_*.tgz
|
rm -fv backup_bin_oraapp_*.tgz
|
||||||
# compression du repertoire oracle app avec exclusion des répertoires admin, diag et audit
|
# compression du repertoire oracle app avec exclusion des répertoires admin, diag et audit
|
||||||
sudo tar --exclude="${ORA_APP_LOCATION}/oracle/admin" \
|
sudo tar cfz ${BKP_APP_LOCATION}/backup_bin_oraapp_$(date +%Y%m%d).tgz ${ORA_APP_LOCATION}
|
||||||
|
--exclude="${ORA_APP_LOCATION}/oracle/admin" \
|
||||||
--exclude="${ORA_APP_LOCATION}/oracle/audit" \
|
--exclude="${ORA_APP_LOCATION}/oracle/audit" \
|
||||||
--exclude="${ORA_APP_LOCATION}/oracle/diag" \
|
--exclude="${ORA_APP_LOCATION}/oracle/diag"
|
||||||
-cfz backup_bin_oraapp_$(date +%Y%m%d).tgz ${ORA_APP_LOCATION}
|
|
||||||
|
|
||||||
# notification
|
# notification
|
||||||
curl -d "$(hostname) - backup des binaires terminée" ${NTFY_URL}
|
curl -d "$(hostname) - backup des binaires terminée" ${NTFY_URL}
|
||||||
|
|||||||
Reference in New Issue
Block a user