Skip to content

Add dynamic_user_statedir configuration option.#135

Open
bcbnz wants to merge 2 commits into
jupyterhub:mainfrom
bcbnz:dynamic-user-statedir
Open

Add dynamic_user_statedir configuration option.#135
bcbnz wants to merge 2 commits into
jupyterhub:mainfrom
bcbnz:dynamic-user-statedir

Conversation

@bcbnz

@bcbnz bcbnz commented Jul 11, 2023

Copy link
Copy Markdown

This allows setting the StateDirectory option for a dynamic user to a subdirectory of /var/lib, allowing for easy backups or persistence between containers. By setting c.SystemdSpawner.dynamic_user_statedir = "jupyterhub_users/{USERNAME}" all state directories can be easily backed up from the /var/lib/private/jupyterhub_users directory instead of having to find the individual usernames.

The default is "{USERNAME}" which matches the previously-used state directories.

This allows setting the StateDirectory option for a dynamic user to a
subdirectory of /var/lib, allowing for easy backups or persistence
between containers.
@welcome

welcome Bot commented Jul 11, 2023

Copy link
Copy Markdown

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please make sure you followed the pull request template, as this will help us review your contribution more quickly.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants