Compare commits

...

2 Commits

Author SHA1 Message Date
88b356daa6 Add sync_content script 2026-06-16 19:19:15 +03:00
6c9c424985 Fix rsync: two separate calls for LocalMods and config 2026-06-16 19:02:30 +03:00
2 changed files with 23 additions and 2 deletions

8
prep
View File

@@ -44,11 +44,15 @@ def main():
print()
log_info("Step 3/4: Rsyncing LocalMods + config to server...")
subprocess.run([
"rsync", "-avz", "--delete",
"-e", RSYNC_SSH,
LOCALMODS_DIR + "/", "baro@barotrauma:/opt/barotrauma/LocalMods/"
], check=True)
subprocess.run([
"rsync", "-avz",
"-e", RSYNC_SSH,
LOCALMODS_DIR + "/", CONFIG_PATH,
"baro@barotrauma:/opt/barotrauma/"
CONFIG_PATH, "baro@barotrauma:/opt/barotrauma/config_player.xml"
], check=True)
log_ok("Synced to server")
print()

17
sync_content Executable file
View File

@@ -0,0 +1,17 @@
#!/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.")