Commit Graph

8 Commits (dfb4bf0349414733af2f03c2c5d9386d36523e7f)

Author SHA1 Message Date
Anthony dc085515a5 Ver 1.8 Improved Snapshot Display 2025-01-08 01:15:11 +08:00
Anthony a36be25ae9 Ver 1.7 Improved restoration script, Automatic Backup Tagging, Resolved issues with incorrect handling of database restoration paths 2025-01-08 00:46:12 +08:00
Anthony a2f0cf6634 Ver 1.6 added repo check and restic stats 2025-01-07 23:28:14 +08:00
Anthony 3736c02560 Ver 1.5 updated backup all logic with current server time and date 2025-01-07 23:01:14 +08:00
Anthony 64fe7bd34f Ver 1.4 efficient lock management global lock mechanism Restic password handling 2025-01-07 22:48:04 +08:00
Anthony 1642074673 Update commands 2025-01-06 23:13:20 +08:00
Anthony 6fb6805f6f feat: Enhance Restic password management and directory permissions
- Updated \manifest.jps\ to generate a random password for the Restic password file during installation, enhancing security by avoiding static passwords.
- Ensured the Restic password file is created with appropriate permissions and ownership (\litespeed:litespeed\) to ensure accessibility by the \litespeed\ user.
- Adjusted the \importScripts\ section in \manifest.jps\ to set the correct ownership for all backup-related directories to \litespeed:litespeed\, ensuring proper access rights.
- Modified \ackup-logic.sh\ to load the Restic password from the \/etc/restic-password\ file, ensuring consistent password usage across scripts.
- Updated \manage_backup_schedule.sh\ to verify that a Restic password is provided, preventing schedule updates without a valid password.
- Ensured \ackup_database.sh\ and \ackup_media.sh\ scripts read and verify the Restic password from the file, maintaining consistency and security.
- Added logging to track password creation and usage, aiding in debugging and audit trails.
- Improved error handling in scripts to provide clear feedback when password mismatches occur, enhancing user experience and troubleshooting.

These changes collectively improve the security and reliability of the backup system by ensuring that sensitive credentials are managed securely and consistently across the codebase.
2025-01-04 01:11:34 +08:00
Anthony c41466de6e 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. 2025-01-04 00:56:17 +08:00