Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 12, 2025

Addresses feedback from PR #282: TMP_DIR depends on ABS_BACKUP_PATH existing, but was used before the parent directory was created, causing failures on first backup run.

Changes

  • Moved mkdir -p "${ABS_BACKUP_PATH}/" from line 106 to line 76, before first TMP_DIR usage
  • Removed duplicate directory creation from line 106
# Before: TMP_DIR used at line 76, but ABS_BACKUP_PATH created at line 106
mkdir -p "${TMP_DIR}/filesystem-${TIMESTAMP}/config"  # Fails if backup/ doesn't exist

# After: Parent directory created first
mkdir -p "${ABS_BACKUP_PATH}/"
mkdir -p "${TMP_DIR}/filesystem-${TIMESTAMP}/config"  # Now succeeds

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Address feedback on docker backup script refactor Fix TMP_DIR creation failing when backup directory doesn't exist Nov 12, 2025
Copilot AI requested a review from bytestream November 12, 2025 13:11
Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com>
@bytestream bytestream force-pushed the copilot/sub-pr-282-another-one branch from 99b01b7 to 712b2bd Compare November 12, 2025 14:43
@bytestream bytestream marked this pull request as ready for review November 12, 2025 14:43
@bytestream bytestream merged commit e8bc78f into backup Nov 12, 2025
2 of 3 checks passed
@bytestream bytestream deleted the copilot/sub-pr-282-another-one branch November 12, 2025 14:43
bytestream added a commit that referenced this pull request Dec 18, 2025
…282)

* refactor(docker-monolithic): refactor backup script to use docker cp

* Fix docker cp trailing slashes in backup script (#286)

* Initial plan

* fix: remove trailing slashes from docker cp source paths

Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com>

* Fix TMP_DIR dependency on ABS_BACKUP_PATH by moving mkdir earlier (#285)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com>

* Add error checking to docker cp operations in backup script (#284)

* Initial plan

* Add error checking to docker cp operations in backup script

Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants