Compare commits
1 Commits
1050a8d25f
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 88b356daa6 |
17
sync_content
Executable file
17
sync_content
Executable 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.")
|
||||
Reference in New Issue
Block a user