setup/backup.rb in backup-2.3.0.3 vs setup/backup.rb in backup-2.3.1
- old
+ new
@@ -37,14 +37,39 @@
# - 1 Storage Method
# - Multiple Global Options
#
# The combination of these, however, do not matter! So experiment with it.
#
+# You can also let Backup notify you by email on successfully created backups.
+# - Just uncomment the block of code below (notifier_settings) and fill in your credentials.
+# - Then for set "notify" to "true" in each (backup) block you wish to be notified of.
+#
# For more information on "Backup", please refer to the wiki on github
# http://wiki.github.com/meskyanichi/backup/configuration-file
+# Notifier
+# Uncomment this if you want to enable notification by email on successful backup runs
+# You will also have to set "notify true" inside each backup block below to enable it for that particular backup
+# notifier_settings do
+#
+# to "example1@gmail.com"
+# from "example2@gmail.com"
+#
+# smtp do
+# host "smtp.gmail.com"
+# port "587"
+# username "example1@gmail.com"
+# password "example1password"
+# authentication "plain"
+# domain "localhost.localdomain"
+# tls true
+# end
+#
+# end
+
+
# Initialize with:
# sudo backup --run mysql-backup-s3
backup 'mysql-backup-s3' do
adapter :mysql do
@@ -69,10 +94,11 @@
use_ssl true
end
keep_backups 25
encrypt_with_password 'password'
+ notify false
end
# Initialize with:
@@ -100,10 +126,11 @@
path '/var/backups/postgresql/'
end
keep_backups :all
encrypt_with_password false
+ notify false
end
# Initialize with:
@@ -122,10 +149,11 @@
path '/var/backups/archive/'
end
keep_backups 10
encrypt_with_password false
+ notify false
end
# Initialize with:
@@ -146,7 +174,8 @@
path '/var/backups/custom/'
end
keep_backups :all
encrypt_with_password 'password'
-
+ notify false
+
end
\ No newline at end of file