Created
April 3, 2019 21:14
-
-
Save mslinn/cb8ef84638b2f860c8b2ec6903c6d7e4 to your computer and use it in GitHub Desktop.
Use WSL to sync 2 SSDs containing Adobe Premiere Pro projects
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 | |
| # Use WSL to sync 2 SSDs containing Adobe Premiere Pro projects | |
| SRC_DRIVE=/mnt/e | |
| SRC="${SRC_DRIVE}/work/training/projects/adobePremierProjects" | |
| TARGET_DRIVE=/mnt/d | |
| TARGET=$TARGET_DRIVE | |
| #set -xv | |
| # Freshen the drive mount points | |
| sudo umount $SRC_DRIVE | |
| sudo umount $TARGET_DRIVE | |
| # TODO Must these be mounted as root? | |
| sudo mount -t drvfs d: $TARGET_DRIVE | |
| sudo mount -t drvfs e: $SRC_DRIVE | |
| sudo rsync -avzu \ | |
| --exclude='Adobe Premiere Pro*' \ | |
| --exclude='Backup' \ | |
| --exclude='Thumbs.db' \ | |
| "$SRC/" "$TARGET" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment