Matthew Tran 1788061642 wip9
2025-05-04 22:36:28 -07:00

24 lines
536 B
Python
Executable File

#!/usr/bin/env python3
import os
import shutil
import subprocess
if __name__ == "__main__":
out = "data.zip"
subprocess.run(["zip", "-FS", "-r", out,
"minecraft/worlds",
"minecraft_bedrock/worlds",
"terraria/worlds",
"terraria/mods",
"website/gitea",
], check=True)
shutil.chown(out, os.getlogin(), os.getlogin())
# TODO backup and scp
# TODO restore
# fix permissions
# no wipe folders we didn't save
# may need to chown 777 for gitea
# TODO router wipe + peer.py