Commit Graph

66 Commits (c6aa1a191a11e105a7d6c035d5b4a1cad1350427)

Author SHA1 Message Date
Anthony c6aa1a191a More improvements and fixes 2025-01-06 23:48:39 +08:00
Anthony 1291e4a255 improvements 2025-01-06 23:33:56 +08:00
Anthony 716fcce79c Fix trap error 2025-01-06 23:18:14 +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
Anthony 4fb8eef23b Switched Restic installation to use precompiled binary for reduced memory usage 2025-01-04 00:48:58 +08:00
Anthony df8ab1cce8 Enhanced logging in backup-logic.sh for better debugging, updated documentation in readme.md, and ensured log rotation in manifest.jps. 2025-01-04 00:39:04 +08:00
Anthony aa7c89d3c9 Updated manage_backup_schedule.sh to include cron installation and status checks, improved error handling, and enhanced logging for backup schedule management. 2025-01-04 00:14:30 +08:00
Anthony 17414609db Fix Enable Auto Backup 2024-11-14 00:52:16 +08:00
Anthony 662621143c manage backup shell upadte 2024-11-13 03:18:30 +08:00
Anthony 3d8b13e1bb manage backup shell upadte 2024-11-13 03:15:30 +08:00
Anthony f830e4de69 Simplified Daily Backup Enable 2024-11-13 02:58:17 +08:00
Anthony df5b7acf3e JPS error fixes 2024-11-13 02:29:16 +08:00
Anthony 12226390a7 Fix JPS errors 2024-11-13 02:21:11 +08:00
Anthony 301d5dceda New updates and fail safe mechanism 2024-11-13 02:15:11 +08:00
Anthony 2a3c7341f0 Updated password checks and reinitiate restic 2024-11-13 01:23:39 +08:00
Anthony ac5187845d Update logging 2024-11-13 01:21:04 +08:00
Anthony 6a19fda7f5 Update logging 2024-11-13 01:18:35 +08:00
Anthony 9879f18833 Updated restic password 2024-11-13 01:13:53 +08:00
Anthony 3b5ab6e98b Update Check Backup Repo 2024-11-13 01:00:19 +08:00
Anthony 9a46217227 Fix imports 2024-09-19 01:14:47 +08:00
Anthony 15087e1bdf Added Shell Scripts 2024-09-19 00:53:20 +08:00
Anthony b6aab4e747 Added create-backup-main-script.js 2024-03-14 18:46:58 +08:00
Anthony 290fd683af revision backup function 2024-03-14 02:03:04 +08:00
Anthony d8c7209b7a revise backup 2024-03-14 01:45:48 +08:00
Anthony f6db0d4dd9 New changes 2024-03-14 01:33:19 +08:00
Anthony 71b172aeac Revised backup logic 2024-03-13 21:25:45 +08:00
Anthony d123a32517 Replaced file 2024-03-12 23:49:47 +08:00
Anthony e1bb7fced5 more changes 2024-03-12 23:45:00 +08:00
Anthony 81c4db11a1 Get node 2024-03-09 01:07:09 +08:00
Anthony 4c8d37b602 Get node 2024-03-09 01:06:35 +08:00
Anthony 5cae4e2175 Get node 2024-03-09 01:01:47 +08:00
Anthony 1f4be86069 Nodes 2024-03-08 23:43:21 +08:00
Anthony e4f8eda3f2 Update for loop 2024-03-08 23:40:44 +08:00
Anthony 62160dea12 Update for loop 2024-03-08 23:39:45 +08:00
Anthony d75f5b952b Update for loop 2024-03-08 23:35:55 +08:00
Anthony 9cb0e3e2a4 Update for loop 2024-03-08 22:29:39 +08:00
Anthony f36a81b0dd Added envInfo 2024-03-08 22:22:23 +08:00
Anthony 219f76003f Fix js code 2024-03-08 02:19:18 +08:00
Anthony a7d481e5a0 Updates get nodes 2024-03-08 02:13:34 +08:00
Anthony c9126a710e test placeholder 2024-03-08 01:54:32 +08:00
Anthony 9af9ce9900 envs 2024-03-08 01:22:10 +08:00
Anthony d3492127f7 Env Node update 2024-03-08 01:17:58 +08:00
Anthony 18d8b93169 Get Nodes Storage 2024-03-08 01:13:54 +08:00
Anthony 3585e4bf15 Updated backup nodes 2024-03-08 01:01:41 +08:00
Anthony 1b36bd7c83 Merge branch 'main' of https://deploy.mightybox.io/addons/mb-backup-manager 2024-03-08 00:58:10 +08:00
Anthony 673f45c0e4 update backup nodes 2024-03-08 00:57:33 +08:00
tony 3a62a4683e Update baseUrl 2024-03-07 15:23:59 +00:00
tony ddbe75e752 change baseUrl 2024-03-07 15:19:32 +00:00