Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make backup_appdata work if container needs file binds #199

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

quorn23
Copy link
Contributor

@quorn23 quorn23 commented Dec 23, 2024

In rare cases a container image requires binding a file directly, which the script takes as source_dir for the backup. This adds a check, if the directory the scripts grabs is a filename and strips the filename.

i.e. ./backup_appdata.sh: line 185: cd: /appdata/container/container.conf/..: Not a directory

This PR fixes this and stripes the filename (container.conf), so the script backups /appdata/container/ and its content properly.

In rare cases a container image requires binding a file directly, which the script takes as source_dir for the backup. This adds a check, if the directory the scripts grabs is a filename and strips the filename.

i.e. ./backup_appdata.sh: line 185: cd: /appdata/container/container.conf/..: Not a directory stripes the filename (container.conf), so the script backups /appdata/container/ and its content properly.
Make backup_appdata work if container needs file binds
@Drazzilb08 Drazzilb08 merged commit a3177e8 into Drazzilb08:master Jan 10, 2025
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