-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add email notify support #1
base: master
Are you sure you want to change the base?
Conversation
|
|
Modify for create separate backups by dayly(3), weekly(2), monthly(1).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Makefile не может быть смерджен из-за 3х конфликтов, полагаю надо его обновить в форке
- Добавил два вопроса по коду
DBS=$$@ ; \ | ||
[[ "$$DBS" ]] || DBS=all ; \ | ||
dt=$$(date +%y%m%d) ; \ | ||
if [[ $$DBS == "all" ]] ; then \ | ||
echo "Exporting all databases..." ; \ | ||
DBS=$$(psql --tuples-only -P format=unaligned -U postgres \ | ||
DBS=$$(psql --tuples-only -P format=unaligned -U postgres \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space?
[ -f $$dest ] && { echo Exist ; } ; \ | ||
if [ $$WEEK_PARITY == "0" ]; then \ | ||
if [[ $$DAY_OF_WEEK == $$DAY_TO_PROC ]]; then \ | ||
pg_dump -d $$d -U postgres -Ft | gzip > $$dest || echo "error" ; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не стоит нагружать БД дублированием дампа. Файл уже есть, можно его cp
, а лучше - ln
Добавление поддержки и конфигурации отправки сообщений об ошибках при выполнении задачи крона