Last active
February 13, 2019 00:46
-
-
Save InfiniteAmmoInc/b89a0d4fef82c62d61173eedd7aeb194 to your computer and use it in GitHub Desktop.
Zip a Unity project's Assets folder and move the zip file to a dropbox folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
APP="your-project-folder" | |
APP_DIR="$HOME/Unity/$APP/Assets" | |
UNITY_DIR="$HOME/Unity" | |
MOVE_TO_DIR="$HOME/Dropbox/unity-backup" | |
cd $UNITY_DIR | |
echo "Backing up $APP_DIR..." | |
ZIP_FILE="$APP.backup.$(date +'%Y.%m.%d.%H.%M.%S').zip" | |
echo $ZIP_FILE | |
zip -r $ZIP_FILE $APP_DIR | |
mv $ZIP_FILE "$MOVE_TO_DIR/$ZIP_FILE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment