Created
July 13, 2020 20:40
-
-
Save suidroot/9d78bac04c8481eb4b80b985b05dbfb9 to your computer and use it in GitHub Desktop.
Backup backup (rsync) original image from from Adobe Lightroom CC databse
This file contains 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/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