Skip to content

Instantly share code, notes, and snippets.

@suidroot
Created July 13, 2020 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suidroot/9d78bac04c8481eb4b80b985b05dbfb9 to your computer and use it in GitHub Desktop.
Save suidroot/9d78bac04c8481eb4b80b985b05dbfb9 to your computer and use it in GitHub Desktop.
Backup backup (rsync) original image from from Adobe Lightroom CC databse
#!/bin/sh
#
# Backup Rawfiles from Lightroom CC Database
#
# LR Database Path
SRCPATH="$HOME/Pictures/Lightroom Library.lrlibrary/xxx/originals"
DSTPATH="/Volumes/MyPictures"
# Dry Run enabled
#RSYNCPARAMS="-ruvn --progress"
# Prod Run
RSYNCPARAMS="-ruv --progress"
YEARS=(2018 2019 2020)
for i in ${YEARS[*]}
do
WORKING_SRC="$SRCPATH/$i"
echo ""
echo "Backing up $WORKING_SRC to $DSTPATH/$i"
rsync $RSYNCPARAMS "$WORKING_SRC/" "$DSTPATH/$i/"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment