From 88b356daa612e8f52f3e4652fe9c93fb40ca7fa7 Mon Sep 17 00:00:00 2001 From: SlavaVlad Date: Tue, 16 Jun 2026 19:19:15 +0300 Subject: [PATCH] Add sync_content script --- sync_content | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 sync_content diff --git a/sync_content b/sync_content new file mode 100755 index 0000000..0261d2e --- /dev/null +++ b/sync_content @@ -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.")