Skip to content

Logfile deletion causes S3 uploads to crash #25

@excalq

Description

@excalq

Hi, I love this script, and I'm using aws s3 --sync to upload $BACKUPDIR to s3, via the $POSTBACKUP hook. However, since the end of the script calls

rm -f "$LOGFILE" "$LOGERR"

The upload operation will fail partially through. This was surprisingly hard to debug (I thought files were missing due to cleanup or rotation). Anyway, having an option to disable the logfile purge, or wait until $POSTBACKUP finishes could be useful. (Which might be trick with aws s3's async behavior.)

In anycase, there might be someone else who finds this issue useful in the course of debugging. 🍏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions