Download scripts/install_backup_template.py from Leon4gr45/openweb: direct link, hf CLI and curl.
- Browser
- Download file 839 Bytes
-
https://huggingface.co/spaces/Leon4gr45/openweb/resolve/main/scripts/install_backup_template.py
- Command line
-
hf download hf://spaces/Leon4gr45/openweb/scripts/install_backup_template.py
-
curl -L -o install_backup_template.py https://huggingface.co/spaces/Leon4gr45/openweb/resolve/main/scripts/install_backup_template.py
839 Bytes
| """Export inactive GitHub coordinator tooling; never deploy or activate it.""" | |
| import argparse | |
| import shutil | |
| from pathlib import Path | |
| if __name__ == '__main__': | |
| parser=argparse.ArgumentParser();parser.add_argument('destination',type=Path) | |
| destination=parser.parse_args().destination | |
| if destination.exists():raise SystemExit('destination must be new') | |
| root=Path(__file__).resolve().parent.parent | |
| shutil.copytree(root/'deploy/backup-repository',destination) | |
| (destination/'scripts').mkdir(exist_ok=True) | |
| for name in ('coordinate_backup.py','qualify_private_space.py'): | |
| shutil.copyfile(root/'scripts'/name,destination/'scripts'/name) | |
| shutil.copyfile(root/'docs/backup-restore.md',destination/'README.md') | |
| print('Inactive coordinator exported; activation and production deployment remain separate.') | |