This is a simple script write in Python for OBS Studio for backup and restore your OBS Studio files. You can use this script for backup and restore from your local disk or a private GitHub repo.
Important
Python 3.13+ is recommended to use this script
Note
Go to Tools then Scripts to add this script with the + button.
For getting GitHub token for accessing to your repo, you need to go here, then create a classic token, so go to Token (classic), Generate new token then Generate new token (classic). On select scopes, you just need to check the checkbox repo.