Skip to content

Instantly share code, notes, and snippets.

@InfiniteAmmoInc
Last active February 13, 2019 00:46
Show Gist options
  • Save InfiniteAmmoInc/b89a0d4fef82c62d61173eedd7aeb194 to your computer and use it in GitHub Desktop.
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
#!/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