Making Wastebin persistent across reboots #3704
-
I have my containers configured to snapshot every night and noticed that this causes Wastebin to delete all links, regardless of the timeout settings. I found this discussion in the archived repository and wasn't sure if this was still the recommended solution. Is there a better way to handle this now? |
Beta Was this translation helpful? Give feedback.
Answered by
tremor021
Apr 6, 2025
Replies: 2 comments 1 reply
-
The script is using the database since month ago mkdir -p /opt/wastebin-data
cat <<EOF >/opt/wastebin-data/.env
WASTEBIN_DATABASE_PATH=/opt/wastebin-data/wastebin.db
WASTEBIN_CACHE_SIZE=1024
WASTEBIN_HTTP_TIMEOUT=30
WASTEBIN_SIGNING_KEY=$(openssl rand -hex 32)
WASTEBIN_PASTE_EXPIRATIONS=0,600,3600=d,86400,604800,2419200,29030400
EOF |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
johnolinda
-
Ah that explains it. I set mine up a long time ago, so I’ll just recreate it from the new script. Thank you!
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The script is using the database since month ago