Skip to content

Instantly share code, notes, and snippets.

@mslinn
Created April 3, 2019 21:14
Show Gist options
  • Select an option

  • Save mslinn/cb8ef84638b2f860c8b2ec6903c6d7e4 to your computer and use it in GitHub Desktop.

Select an option

Save mslinn/cb8ef84638b2f860c8b2ec6903c6d7e4 to your computer and use it in GitHub Desktop.
Use WSL to sync 2 SSDs containing Adobe Premiere Pro projects
#!/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