Commit Graph

3 Commits (1291e4a25559819384dac4b208d6b49c00a3b3f8)

Author SHA1 Message Date
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