# Move Immich upload directory Dietpi

**URL:** <https://dietpi.com/forum/t/move-immich-upload-directory-dietpi/25081>\
**Category:** General Discussion\
**Created:** [30 March 2026 19:39 UTC](https://dietpi.com/forum/t/move-immich-upload-directory-dietpi/25081 "2026-03-30T19:39:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![3rink](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/3/d2c977/32.png) [@3rink](https://dietpi.com/forum/u/3rink)\
**Post date:** [30 March 2026 19:39 UTC](https://dietpi.com/forum/t/move-immich-upload-directory-dietpi/25081/1 "2026-03-30T19:39:00Z")

</div>

Hi, I still have problems. ☹ I’m trying to say that it should use the external hard drive. I have the “immich.env” Edited . Now after restarting the services, Immich no longer has any memory. I also tried to move the “Immich” folder, that didn’t work. What am I doing wrong this time.

 ![Screenshot_20260330-212822](https://dietpi.com/forum/uploads/default/original/2X/9/91d0e2f2af587019465ca2ee2ffe307ab4ea621d.png)

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [30 March 2026 21:41 UTC](https://dietpi.com/forum/t/move-immich-upload-directory-dietpi/25081/2 "2026-03-30T21:41:33Z")

</div>

What do you mean, it has no memory?  
And where did you move it and why?

---

<div class="post-metadata">

**Author:** ![3rink](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/3/d2c977/32.png) [@3rink](https://dietpi.com/forum/u/3rink)\
**Post date:** [30 March 2026 22:17 UTC](https://dietpi.com/forum/t/move-immich-upload-directory-dietpi/25081/3 "2026-03-30T22:17:25Z")

</div>

Hi, I meant that after my changes “immich” shows no longer a hard drive. I couldn’t move the folder “immich” with the “immich.env” includet from the dietpi\_userdata directory.

I installed Dietpi on an SSD and would like to save the images of “Immich” to another hard drive. I can’t get that. in the “immich.env” is no storage directory after installation. When I enter a directory, “Immich” no longer shows me a hard drive.

---

<div class="post-metadata">

**Author:** ![3rink](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/3/d2c977/32.png) [@3rink](https://dietpi.com/forum/u/3rink)\
**Post date:** [30 March 2026 23:31 UTC](https://dietpi.com/forum/t/move-immich-upload-directory-dietpi/25081/4 "2026-03-30T23:31:08Z")

</div>

Got it!

Simplest and recommended method: Using symlinks (works great on DietPi)

This approach is especially useful if you want to move the data to an external hard drive, USB drive, or another mount point (e.g. /mnt/data/images or /mnt/usbdrive/immich) without changing the entire DietPi-Immich installation.

Stop Immich:

```auto
sudo systemctl stop immich

```

Create the new target folder (e.g. on your external drive):

```auto
sudo mkdir -p /path/to/new/storage/immich

```

(Replace /path/to/new/storage/immich with your desired path, for example /mnt/hdd/immich-media.)

Move the files (important: move all relevant subfolders):

```auto
sudo mv /mnt/dietpi_userdata/immich/upload/upload /path/to/new/storage/immich/
sudo mv /mnt/dietpi_userdata/immich/upload/encoded-video /path/to/new/storage/immich/ # if it exists

```

# Move additional folders as needed: thumbs, profile, backups, etc.

Create symlinks so Immich still “sees” the old path:

```auto
sudo ln -s /path/to/new/storage/immich/upload /mnt/dietpi_userdata/immich/upload/upload
sudo ln -s /path/to/new/storage/immich/encoded-video /mnt/dietpi_userdata/immich/upload/encoded-video

```

Start Immich:

```auto
sudo systemctl start immich

```

Check:

```auto
sudo systemctl status immich

```

This worked for me without any problems only via SSH.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [30 March 2026 23:42 UTC](https://dietpi.com/forum/t/move-immich-upload-directory-dietpi/25081/5 "2026-03-30T23:42:39Z")

</div>

why putting all questions you have into the very same topic? Immich has nothing to do with your WebDAV topic.

I split it into an own topic now.

* * *

Back to your question.

Currently, we set the `IMMICH_MEDIA_LOCATION` via the `systemd` service` immich.service`. The reason for this is that this directory isn’t just the upload directory, but contains all Immich data. Immich states in its own documentation that you should preferably not change this variable. Therefore we removed it from `immich.env`.

> `IMMICH_MEDIA_LOCATION` \> Media location inside the container ⚠ **You probably shouldn’t set this** ⚠

- [Environment Variables | Immich](https://docs.immich.app/install/environment-variables/#general)

The Immich folder contains `backups`, `library`, `profile`, `thumbs`, and the media `upload` directory.

```auto
root@DietPi5:/mnt/dietpi_userdata/immich# ls -la
total 36
drwxr-xr-x 8 immich immich 4096 Mar 31 01:33 .
drwxrwxr-x 8 dietpi dietpi 4096 Mar 31 01:32 ..
drwxr-xr-x 2 immich immich 4096 Mar 31 01:33 backups
drwxr-xr-x 2 immich immich 4096 Mar 31 01:33 encoded-video
-rw-r----- 1 root immich 521 Mar 31 01:32 immich.env
drwxr-xr-x 2 immich immich 4096 Mar 31 01:33 library
drwxr-xr-x 2 immich immich 4096 Mar 31 01:33 profile
drwxr-xr-x 2 immich immich 4096 Mar 31 01:33 thumbs
drwxr-xr-x 2 immich immich 4096 Mar 31 01:33 upload

```

The question is what exactly should be moved. Normally, the upload directory is the largest. Currently, the easiest approach is to move the affected directories and then create a symbolic link to them.

* * *

And one huge request, pls try to avoid doing screen prints. Pls copy everything from SSH terminal. This simplify thinks for people wo like to read your small images or who like to quote some of your incorrect commands.

---

<div class="post-metadata">

**Author:** ![3rink](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/3/d2c977/32.png) [@3rink](https://dietpi.com/forum/u/3rink)\
**Post date:** [31 March 2026 00:30 UTC](https://dietpi.com/forum/t/move-immich-upload-directory-dietpi/25081/6 "2026-03-31T00:30:04Z")

</div>

Understood. I’m new to the game.

I’ve always asked in the same thread because wont fill the Forum with Garbage Threads. 😓

Thank you for refining my solution so beautifully!

I hope I’ll contribute a little something to Dietpi for newcomers.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [31 March 2026 09:30 UTC](https://dietpi.com/forum/t/move-immich-upload-directory-dietpi/25081/7 "2026-03-31T09:30:04Z")

</div>

Actually, the exact opposite is more likely to be the case. The more clearly you organize the topics, the easier it is for other users to find the information they need. If you cram everything into a single post, it becomes hard to keep track of things, and discussions or troubleshooting become confusing because it’s no longer clear where each piece of information belongs.

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [29 June 2026 09:30 UTC](https://dietpi.com/forum/t/move-immich-upload-directory-dietpi/25081/8 "2026-06-29T09:30:18Z")

</div>

Closed on 29 June 2026 09:30 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
