Updated to version 1.3: Switched Restic installation to use precompiled binary for reduced memory usage. Added logic to create Restic password file if missing. Updated manifest.jps for versioning and log rotation setup.

main
Anthony 2025-01-04 00:56:17 +08:00
parent 4fb8eef23b
commit c41466de6e
2 changed files with 20 additions and 1 deletions

13
changelogs.md 100644
View File

@ -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.

View File

@ -1,5 +1,5 @@
type: update type: update
jpsVersion: 1.2 jpsVersion: 1.3
name: MightyBox WordPress Backup/Restore Addon name: MightyBox WordPress Backup/Restore Addon
id: mb-backup-manager 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. 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 # Move it to a directory in your PATH
sudo mv restic /usr/local/bin/ 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 # Set up log rotation for backup logs
echo "/var/log/backup_addon.log { echo "/var/log/backup_addon.log {
weekly weekly