From 2700b3bf95c93cea62857982c33a295fdf29a1c1 Mon Sep 17 00:00:00 2001 From: GitSync Date: Tue, 25 Aug 2026 17:57:34 +0000 Subject: [PATCH] (Grav GitSync) Automatic Commit from GitSync --- .gitignore | 10 +++++----- config/backups.yaml | 13 +++++++++++++ config/plugins/git-sync.yaml | 2 +- 3 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 config/backups.yaml diff --git a/.gitignore b/.gitignore index 5ef2e81..1d327be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -/* -!/pages -!/themes -!/config -!/accounts +/* +!/pages +!/themes +!/config +!/accounts diff --git a/config/backups.yaml b/config/backups.yaml new file mode 100644 index 0000000..89e4469 --- /dev/null +++ b/config/backups.yaml @@ -0,0 +1,13 @@ +purge: + trigger: number + max_backups_count: 25 + max_backups_space: 5 + max_backups_time: 365 +profiles: + - + name: 'Default Site Backup' + root: / + exclude_paths: "/backup\n/cache\n/images\n/logs\n/tmp" + exclude_files: ".DS_Store\n.git\n.svn\n.hg\n.idea\n.vscode\nnode_modules" + schedule: false + schedule_at: '0 3 * * *' diff --git a/config/plugins/git-sync.yaml b/config/plugins/git-sync.yaml index 0e962fc..6594271 100644 --- a/config/plugins/git-sync.yaml +++ b/config/plugins/git-sync.yaml @@ -5,7 +5,7 @@ folders: - config - accounts sync: - direction: pull + direction: both on_save: true on_delete: true on_media: true