IMGIITRoorkee / IMGIITRoorkee/chakra-docker
Backup writes silently retarget to the local disk if the S3 mount drops
- Dominant language
- HTML
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
`MONTHLY_BACKUP_DIR=/home/root1/s3bucket/chakra-backups/current_month`. If the S3 FUSE mount drops — and an unattended FUSE mount will — that path is just a plain local directory, so `mv` succeeds and 35-50 GB/day silently starts filling root1's root filesystem.
From a healthy disk that is days, not weeks. When it fills: Postgres refuses writes, gunicorn's unrotated logs fail, and lsyncd stalls mid-sync leaving root2 with partially-synced pages.
**Fix:** `mountpoint -q /home/root1/s3bucket || exit 1` at the top of `script.sh` — refuse to run rather than silently writing locally.
---
**Evidence**
```
chakrabackup-script/configs/zip_config.env; chakrabackup-script/backup_script/script.sh
```
- Verified against: `origin/master 44ca47e (2026-07-25)`
- Verdict: **CONFIRMED**
Contributor guide
No contributing guide indexed for this repository
Research direction
Read chakrabackup-script/backup_script/script.sh and the path configured in chakrabackup-script/configs/zip_config.env. Start by checking how the script handles the backup directory before its file operations. Done means the script refuses to run when the S3 FUSE mount is absent, while continuing normally when the mount is present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, shell
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100