Commit Graph

34 Commits

Author SHA1 Message Date
Andras Bacsai 53d0cc6839 fix: handle redis_password in API database creation
The redis_password column was removed from standalone_redis table
in migration 2024_10_16_120026_move_redis_password_to_envs.php,
moving passwords to environment_variables table.

However, the API endpoint still accepted redis_password parameter
and tried to mass-assign it via fill(), causing SQL error:
"column redis_password of relation standalone_redis does not exist"

Fixed by extracting redis_password from $otherData before fill()
and using it when creating the REDIS_PASSWORD environment variable,
similar to how the migration handled the transition.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 18:04:30 +02:00
Andras Bacsai 2c64136503 feat(backup): enhance backup job with S3 upload handling and notifications
- Introduced a new notification class, BackupSuccessWithS3Warning, to alert users when local backups succeed but S3 uploads fail.
- Updated DatabaseBackupJob to track local backup success and handle S3 upload errors, improving error reporting and user notifications.
- Modified ScheduledDatabaseBackupExecution model to include a new s3_uploaded boolean field for tracking S3 upload status.
- Adjusted views and validation logic to reflect changes in backup execution status and S3 handling.
- Added tests to ensure the new s3_uploaded column is correctly implemented and validated.
2025-10-07 15:02:23 +02:00
Andras Bacsai 0dada987a2 feat(backup): add disable local backup option and related logic for S3 uploads 2025-08-17 12:34:20 +02:00
Andras Bacsai 009cee1bbd Merge branch 'next' into feat-db-ssl 2025-03-17 15:15:24 +01:00
peaklabs-dev ee93ccd8e7 fix(backups): retention settings
- If you set a low local backup retention, for example 2 backups for local backup retention and 10 backups for S3, then the S3 backups were never deleted, not even after 10 days. This was because we check the file paths based on the backup executions table, and as soon as a backup was deleted locally, the execution was removed, which meant after 10 days for s3 there where no backups older then 10 days just the 2 local backups which is just wrong. Now we only delete a backup execution if it has been removed from both locations.
- Also added a nice little UI element to see where your backup is available.
2025-03-14 15:28:12 +01:00
peaklabs-dev 3cf758e2d0 fix(databases): fix database name users new uuid instead of DB one 2025-02-03 21:43:16 +01:00
peaklabs-dev 12c7ee2879 fix(s3): DigitalOcean storage buckets do not work 2025-01-25 23:40:40 +01:00
peaklabs-dev 8b6b1b6a9d fix(storage): Hetzner storage buckets not working
- fix: Hetzner buckets do not work for backups
- refactor: removed special handling for Hetzner as it is no longer needed
2025-01-23 18:51:24 +01:00
peaklabs-dev 3aca101821 fix: Redis DB should use the new resourceable columns 2025-01-16 12:51:18 +01:00
peaklabs-dev e9f691bf45 fix: storage retention setting
- feat: add storage retention to local storage as well
- fix: UI input for max storage now allows exact decimals so MB input is now also possible
- fix: Database column is now decimal instead of integer
- fix: variable naming of storage check no longer overwrites $backup - renamed it to $backupExecution
2025-01-13 19:49:12 +01:00
peaklabs-dev 3347eb3a1a fix: retention functions and folder deletion for local backups
- fix: Delete folder and parent folder if folders are empty when deleting local backups.
- fix: Do not remove executions from DB until both S3 and local backups have been deleted and successfully processed otherwise backups will never be deleted from s3.
- fix: Server ID could be null
2025-01-13 18:46:27 +01:00
peaklabs-dev a5fadb0536 fix: function calls 2025-01-13 16:54:17 +01:00
peaklabs-dev f0d15afbf2 chore: improve code 2025-01-13 16:43:23 +01:00
peaklabs-dev fb01aed6d5 feat: new global s3 and local backup deletion function 2025-01-13 16:37:36 +01:00
Andras Bacsai 5a54bcdd26 Refactor Redis password handling and migration to use environment variables 2024-10-21 13:43:31 +02:00
Andras Bacsai bf7b0f9e06 fix: redis database user and password 2024-10-21 12:13:42 +02:00
peaklabs-dev 6f97d589ae feat: variabel sync and support shared vars 2024-10-16 13:29:13 +02:00
Andras Bacsai d2eaf4f2e3 feat: Able to select different postgres database 2024-08-16 15:33:55 +02:00
andrasbacsai 96c4f5b8da Fix styling 2024-07-25 11:31:59 +00:00
Andras Bacsai 6a4aa492c0 fix: random generated uuid will be full length (not 7 characters) 2024-07-25 13:31:01 +02:00
andrasbacsai 613830e6a6 Fix styling 2024-07-24 19:11:12 +00:00
Andras Bacsai 3c13f1ff61 feat: restart database
feat: public dbs stay public after restart
feat: patch database conf
2024-07-02 13:39:44 +02:00
Andras Bacsai da6f2da3d0 feat: lots of api endpoints 2024-07-01 16:26:50 +02:00
Thijmen d86274cc37 Fix styling 2024-06-10 20:43:34 +00:00
Andras Bacsai 1e7a5562ab Update Clickhouse database credentials and variables 2024-04-11 13:45:02 +02:00
Andras Bacsai c6844ff47a Add keydb, dragonfly and clickhouse 2024-04-10 15:00:46 +02:00
Andras Bacsai 39552cc42f fix: double default password length 2023-11-28 12:04:21 +01:00
Andras Bacsai f801bb98cd feat: mysql, mariadb 2023-10-24 14:31:28 +02:00
Andras Bacsai c53d88902c feat: standalone mongodb 2023-10-19 13:32:03 +02:00
Andras Bacsai beae0b545f init: redis 2023-10-12 17:18:33 +02:00
Andras Bacsai 77e3208f00 feat: public database 2023-09-07 13:23:34 +02:00
Andras Bacsai c762195c8a format files lol 2023-08-11 20:19:42 +02:00
Andras Bacsai e17f1935d2 Refactor + package updates + improve local backups 2023-08-10 15:52:54 +02:00
Andras Bacsai a378b5108e refactor a lot of things
fix: postgres_passwords could be longer
feat: able to define postgresql databases from the ui
2023-08-09 15:57:53 +02:00