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.
parent
4fb8eef23b
commit
c41466de6e
|
@ -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.
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue