Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing from a previous immich installation. #373

Open
koda-git opened this issue Jun 14, 2024 · 0 comments
Open

Importing from a previous immich installation. #373

koda-git opened this issue Jun 14, 2024 · 0 comments

Comments

@koda-git
Copy link

koda-git commented Jun 14, 2024

It seems like there is no way to make immich rescan a previous (currently unindexed) immich mount directory without using the /import mounting feature. This seems to make the file structure complicated, having two mounts to have the previous library and the new uploads

If anyone wants to grab all the existing from a previous immich mount and reupload them to immich manually, I made a quick bash script that helps with moving all the images into a single directory.. from then on you can upload them all at once

#!/bin/bash

# Directory where the files will be collected
DEST_DIR="images"

# Create the destination directory if it does not exist
mkdir -p "$DEST_DIR"

# Find all files in the /admin directory and its subdirectories
# Assuming you are running the script within $IMMICHDIRECTORY$/library
find ./admin -type f -exec cp {} "$DEST_DIR" \;

echo "All files from /admin and its subdirectories have been copied to the $DEST_DIR directory."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant