diff --git a/changelogs.md b/changelogs.md new file mode 100644 index 0000000..fe63222 --- /dev/null +++ b/changelogs.md @@ -0,0 +1,13 @@ +# Changelog + +## Version 1.3 + +### Added +- Implemented Restic installation using a precompiled binary to reduce memory usage. +- Added logic to create the Restic password file if it doesn't exist during installation. + +### Fixed +- Resolved issue with missing Restic password file causing auto backup configuration to fail. + +### Updated +- Updated `manifest.jps` to ensure Restic password file creation and log rotation setup. diff --git a/manifest.jps b/manifest.jps index 859da64..98b264a 100644 --- a/manifest.jps +++ b/manifest.jps @@ -1,5 +1,5 @@ type: update -jpsVersion: 1.2 +jpsVersion: 1.3 name: MightyBox WordPress Backup/Restore Addon id: mb-backup-manager description: Custom Backup and Restore Addon for WordPress using Restic. Supports backing up databases, core files, media files, and full backups with scheduling and retention policies. @@ -288,6 +288,12 @@ actions: # Move it to a directory in your PATH sudo mv restic /usr/local/bin/ + # Create the Restic password file if it doesn't exist + if [ ! -f /etc/restic-password ]; then + echo "YourResticPassword" | sudo tee /etc/restic-password + sudo chmod 600 /etc/restic-password + fi + # Set up log rotation for backup logs echo "/var/log/backup_addon.log { weekly