Skip to content

Conversation

bcbnz
Copy link

@bcbnz bcbnz commented Jul 11, 2023

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
Copy link

welcome bot commented Jul 11, 2023

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.

2 participants