Compare commits

..

1 Commits

Author SHA1 Message Date
88b356daa6 Add sync_content script 2026-06-16 19:19:15 +03:00
3 changed files with 17 additions and 18 deletions

11
commit
View File

@@ -1,11 +0,0 @@
#!/bin/sh
set -e
if [ $# -eq 0 ]; then
echo "Usage: $0 <commit message>"
exit 1
fi
git add -A
git commit -m "$*"
git push origin main

View File

@@ -1,7 +0,0 @@
#!/bin/sh
set -e
git checkout release
git merge main
git push origin release
git checkout main

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.")