Files
BarotraumaModServer/sync_content
2026-06-16 19:19:15 +03:00

18 lines
416 B
Python
Executable File

#!/usr/bin/env python3
"""Rsync Content/ from Steam to server with progress."""
import subprocess
import sys
SRC = "/mnt/nvme/B/SteamLibrary/steamapps/common/Barotrauma/Content/"
DST = "root@barotrauma:/opt/barotrauma/Content/"
SSH = "ssh -p 22"
print("Syncing Content/ to server...")
subprocess.run([
"rsync", "-avz", "--delete", "--info=progress2",
"-e", SSH,
SRC, DST
], check=True)
print("Done.")