Comments (3)
One other issue, if you choose not to encrypt your backup, the backup works fine but the restore fails because it attempts to decrypt a tar that is not encrypted. I fixed this by changing lines 172-177
export RESTORE_FILE_DECRYPTED="decrypted.tar.xz"
if [[ -s "$RESTORE_FILE" ]]; then
log "Decrypt ${RESTORE_FILE}"
export GPG_TTY=/dev/console
gpg --batch --output "$RESTORE_FILE_DECRYPTED" --decrypt "$RESTORE_FILE"
fi
to
export RESTORE_FILE_DECRYPTED=$RESTORE_FILE
if [[ -n "$GPG_RECIPIENT" ]] && [[ -s "$RESTORE_FILE" ]]; then
export RESTORE_FILE_DECRYPTED="decrypted.tar.xz"
log "Decrypt ${RESTORE_FILE}"
export GPG_TTY=/dev/console
gpg --batch --output "$RESTORE_FILE_DECRYPTED" --decrypt "$RESTORE_FILE"
fi
I'm not super familiar with bash scripting and haven't tested whether an encrypted backup restore works with this modified code.
I can submit a PR if so desired.
from docker_base_images.
Thanks for reporting this. I will fix it by the end of this week.
from docker_base_images.
Hi @danimbrogno, I have fixed the restore function and also did a major refactor of the code in the entrypoint, so that it's cleaner and easier to debug. c871699 should take care if this. Check the examples I added in the README. Some more testing would be appreciated, let me know if it works okay or not.
from docker_base_images.
Related Issues (20)
- [minidlna] [feature request] Add UID and GID HOT 1
- Latest docker image for minidlna does not seem to start HOT 4
- How to set translation HOT 4
- Latest image won't start (/etc/group.8: Permission denied) HOT 2
- [minidlna] How to make miniDLNA work remotely over ZeroTier? HOT 2
- [minidlna] Please bump version to 1.3.0 HOT 6
- [minidlna] /minidlna/cache/files.db on persistent volume HOT 9
- [minidlna] support timezone
- [minidlna] Ошибка работы со всеми сборками, после 0.5.0 HOT 14
- [minidlna] MiniDLNA not showing me any playlists HOT 7
- Dependency Dashboard
- Adding inotify to entrypoint.sh HOT 1
- MiniDLNA: File Permissions HOT 2
- MiniDLNA root_container HOT 3
- [MiniDLNA+podman] Health check always fails HOT 5
- Action Required: Fix Renovate Configuration
- [minidlna] BrowseContentDirectory Returning UPnPError 402 - Invalid Args HOT 1
- Arm64 images HOT 4
- MiniDLNA. ERROR: no matching manifest for linux/arm/v7 in the manifest list entries HOT 3
- [s3sync] ModuleNotFoundError: No module named 'six' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker_base_images.