Adobe Lightroom by default stores photos in this structure.
- folder location
- year
- date
- photos
- date
- year
This script moves pictures from the old location to a new location keeping the folder structure.
- old folder location
- year
- date
- photos
- date
- year
- new folder location
- year
- date
- photos
- date
- year
After manipulating the file location, Lightroom would not be able to locate the pictures, but you can easily fix this issue by updating the folder location in Lightroom.
- Get the script.
git clone https://github.com/keiohtani/lightroom_folder_transfer.git
- Specify the origin folder and the target folder in the script.
origin_dir=/Volumes/YOUR_OLD_VOLUME
target_dir=/Volumes/YOUR_NEW_VOLUME
- Run the script. The command takes the year as the argument.
sh move_folders.sh YEAR
- In Lightroom, right-click on the folder and select "Update Folder Location". Choose the new folder location, then you should be good to go!