-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* develop: Added support for encrypted repositories Added .gitignore file to ignore local config Added support for NOTIFY_MESSAGE with Pushover. Added Pushover.net support as a notification method.
- Loading branch information
Showing
3 changed files
with
158 additions
and
60 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
backupld.conf.local | ||
backupld.log |
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 |
---|---|---|
|
@@ -10,14 +10,17 @@ | |
# The day of the week to run validity checks | ||
# Uses $(date +%u) so numbers are (1..7); 1 is Monday | ||
CHECK_DAY = 7 | ||
|
||
# What do we care about? | ||
# In the format: repoName = /directory/to/backup | ||
# | ||
# Support for encrypted repos is available, just append the passphrase: | ||
# repoName = /directory/to/backup;passphrase123 | ||
# | ||
==LOCAL_BACKUP_DIRS | ||
vhosts = /var/www/vhosts | ||
git = /home/git | ||
cron = /var/spool/cron | ||
cron = /var/spool/cron;CronSaf3ty | ||
|
||
# How often do we want to prune? | ||
# (How many to keep on each timescale) | ||
|
@@ -30,39 +33,59 @@ | |
# | ||
==PRUNE_DAILY | ||
default=7 | ||
|
||
==PRUNE_WEEKLY | ||
default=4 | ||
|
||
==PRUNE_MONTHLY | ||
default=6 | ||
|
||
# How do we want to send notifications? | ||
# Supported methods are 'email', 'pushover' or 'file' | ||
# | ||
# 'email' is the only supported so far | ||
# This uses Mandrill or Mailgun, set your keys as so: | ||
# Email --- | ||
# Set type: TYPE = email | ||
# We use Mandrill or Mailgun, set your keys as so: | ||
# MANDIRLL = <key here> or | ||
# MAILGUN = <key here> | ||
# with Mailgun, you also need to set the name of the api domain: | ||
# MAILGUN_API_DOMAIN = example.com | ||
# | ||
# | ||
# FROM_DOMAIN is the domain of the sender: example.com | ||
# MESSAGE is the body of the email in text (no HTML) | ||
# EMAIL_SUBJECT is the subject of the email (amazing!) | ||
# | ||
# Pushover --- | ||
# Set type: TYPE = pushover | ||
# Using Pushover.net, set your keys as so: | ||
# PUSHOVER_API_KEY = <api key hare> | ||
# PUSHOVER_USER_KEY = <user key here> | ||
# | ||
# Pushover supports the MESSAGE option too | ||
# MESSAGE = <body of notification> | ||
# | ||
# File --- | ||
# Set type: TYPE = file | ||
# The log file will be copied per user, | ||
# specify location for each one with NOTIFY_USERS. | ||
# To echo to the console as well, set | ||
# ECHO = true | ||
# | ||
# Extra --- | ||
# Both the message and subject support some macros: | ||
# 'name' will be changed to the name of the archive | ||
# 'date' is changed to the date from above: YYYYMMDD | ||
# 'fail_count' is changed to the failure count of the backups | ||
# | ||
::NOTIFY_ | ||
TYPE = email | ||
MANDRILL = sajnDCSsSDCnkiaScERPO< | ||
MANDRILL = sajnDCSsSDCnkiaScERPOJ | ||
FROM_DOMAIN = example.com | ||
MESSAGE = Completed with fail_count errors. | ||
EMAIL_SUBJECT = [Daily name] Failure Count fail_count | ||
|
||
# Who should we tell? | ||
# In the format: Recipient Name;[email protected] | ||
# Or: Recipient Name;/path/to/file | ||
--NOTIFY_USERS | ||
Joe Eaves;[email protected] |