About Python Virtual Environments

Hello, I hope you’re having a good day.

Lately I did create some python virtual environment(venvs) as I’m working on some different things. And now during my backups I noticed that all those venvs were backed up too. As those venvs are mostly importable between different machines and actually, one only needs to back up a list of the installed packages, maybe the python version. I wondered what is the best solution to achieve this and if someone has a working solution.

I appreciate all ideas.

You can control what is being backed up either using includes or excludes. There are different types of these, so it’s hard to give a specific recommendation when you haven’t elaborated more on your specific situation and the files you are talking about.

See the documentation for includes and excludes for more information and the various options and files you can use to control what is being backed up and not.

1 Like