-
Notifications
You must be signed in to change notification settings - Fork 4
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
4 changed files
with
39 additions
and
49 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,2 +1,3 @@ | ||
.env | ||
db.env | ||
.idea |
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 |
---|---|---|
@@ -1,46 +1,37 @@ | ||
location: | ||
source_directories: | ||
- /mnt/source | ||
repositories: | ||
- /mnt/borg-repository | ||
one_file_system: true | ||
|
||
storage: | ||
compression: lz4 | ||
archive_name_format: 'backup-{now}' | ||
|
||
retention: | ||
keep_hourly: 2 | ||
keep_daily: 7 | ||
keep_weekly: 4 | ||
keep_monthly: 12 | ||
keep_yearly: 10 | ||
prefix: 'backup-' | ||
|
||
consistency: | ||
checks: | ||
- repository | ||
- archives | ||
check_last: 3 | ||
prefix: 'backup-' | ||
|
||
hooks: | ||
before_backup: | ||
- echo "Starting a backup job..." | ||
after_backup: | ||
- echo "Backup created..." | ||
after_actions: | ||
- echo "Uploading backup..." | ||
- rclone sync /mnt/borg-repository nextcloud:nextcloud-backup -P --dry-run | ||
- rclone sync /mnt/borg-repository nextcloud:nextcloud-backup -v | ||
- simplepush.sh -t "Backup done" -m "Creation and uploading of backup successful" | ||
on_error: | ||
- echo "Error while creating a backup." | ||
- simplepush.sh -t "Error creating backup" -m "Creation of backup failed. Check borgmatic logs." | ||
mysql_databases: | ||
- name: all | ||
hostname: db | ||
port: 3306 | ||
username: root | ||
#options: "--single-transaction" | ||
source_directories: | ||
- /mnt/source | ||
- /mnt/vaultwarden/attachments | ||
repositories: | ||
- /mnt/borg-repository | ||
one_file_system: true | ||
archive_name_format: 'backup-{now}' | ||
keep_hourly: 2 | ||
keep_daily: 7 | ||
keep_weekly: 4 | ||
keep_monthly: 12 | ||
keep_yearly: 10 | ||
checks: | ||
- repository | ||
- archives | ||
check_last: 3 | ||
before_backup: | ||
- echo "Starting a backup job..." | ||
after_backup: | ||
- echo "Backup created..." | ||
after_actions: | ||
- echo "Uploading backup..." | ||
- rclone sync /mnt/borg-repository nextcloud:nextcloud-backup -P --dry-run | ||
- rclone sync /mnt/borg-repository nextcloud:nextcloud-backup -v | ||
- simplepush.sh -t "Backup done" -m "Creation and uploading of backup successful" | ||
on_error: | ||
- echo "Error while creating a backup." | ||
- simplepush.sh -t "Error creating backup" -m "Creation of backup failed. Check borgmatic logs." | ||
mariadb_databases: | ||
- name: all | ||
hostname: db | ||
port: 3306 | ||
username: root | ||
sqlite_databases: | ||
- name: vaultwarden | ||
path: /mnt/vaultwarden/db.sqlite3 | ||
|
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