better upload as backup script

This commit is contained in:
Daniel Flanagan 2016-08-08 07:32:48 -05:00
parent 255208d441
commit 1f4df65bf0

View file

@ -1,7 +1,7 @@
#!/usr/bin/env sh #!/usr/bin/env sh
LOCAL_STORAGE_DIR="$HOME/.local/share/Steam/steamapps/common/Starbound/storage" LOCAL_STORAGE_DIR="$HOME/.local/share/Steam/steamapps/common/Starbound/storage"
REMOTE_STORAGE_HOST_DIR="lytedev.io:~/games/sync/starbound" REMOTE_STORAGE_HOST_DIR="lytedev.io:~/games/sync/starbound-$(date +%Y.%m.%d_%H.%M.%S)"
rsync -tr "$LOCAL_STORAGE_DIR/player" "$REMOTE_STORAGE_HOST_DIR" rsync -tr "$LOCAL_STORAGE_DIR/player" "$REMOTE_STORAGE_HOST_DIR"
rsync -tr "$LOCAL_STORAGE_DIR/universe" "$REMOTE_STORAGE_HOST_DIR" rsync -tr "$LOCAL_STORAGE_DIR/universe" "$REMOTE_STORAGE_HOST_DIR"