Removing an image with Backup on is impossible #3433

Closed
opened 2026-02-05 08:27:34 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @yhnavein on GitHub (Jun 11, 2024).

The bug

I have a mobile app (Android) with Backup enabled and it does backup very nicely on my server. But then I am going through my albums (on my PC) and I am removing some blurry or bad images. Unfortunately if I open Immich on my Android these images will be recovered from my phone! And this technically makes sense, as the backup sees that there are photos missing on the server and then happily upload missing assets.
But in this scenario it's the opposite of what we want.
Is there any way around it?
Is it possible to track manual removing of the files, so that Sync process will know that oh, this image was manually removed. I will skip backing it again?

Cheers!

The OS that Immich Server is running on

Mac Mini M1, Sonoma

Version of Immich Server

v1.105.1

Version of Immich Mobile App

Latest

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: ['start.sh', 'immich']
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - 2283:3001
    depends_on:
      - redis
      - database
    restart: always

  immich-microservices:
    container_name: immich_microservices
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: ['start.sh', 'microservices']
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    depends_on:
      - redis
      - database
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always

  redis:
    container_name: immich_redis
    image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:84882e87b54734154586e5f8abd4dce69fe7311315e2fc6d67c29614c8de2672
    restart: always

  database:
    container_name: immich_postgres
    image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
    volumes:
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    restart: always
    command: ["postgres", "-c" ,"shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"]

volumes:
  model-cache:

Your .env content

# The location where your uploaded files are stored
UPLOAD_LOCATION=./library
# The location where your database files are stored
DB_DATA_LOCATION=./postgres

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

DB_PASSWORD="SECRET"

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

Reproduction steps

1. I have backup synced between my phone and server
2. I go to the Web client on my desktop and then remove some of the pictures I don't like and I don't expect to exist anymore
3. I open Immich on my phone and I see that the removed images are uploaded to the server again. I did not expect it to happen (at least not in situation, where I remove images myself)

Relevant log output

No response

Additional information

No response

Originally created by @yhnavein on GitHub (Jun 11, 2024). ### The bug I have a mobile app (Android) with Backup enabled and it does backup very nicely on my server. But then I am going through my albums (on my PC) and I am removing some blurry or bad images. Unfortunately if I open Immich on my Android these images will be recovered from my phone! And this technically makes sense, as the backup sees that there are photos missing on the server and then happily upload missing assets. But in this scenario it's the opposite of what we want. Is there any way around it? Is it possible to track manual removing of the files, so that Sync process will know that `oh, this image was manually removed. I will skip backing it again`? Cheers! ### The OS that Immich Server is running on Mac Mini M1, Sonoma ### Version of Immich Server v1.105.1 ### Version of Immich Mobile App Latest ### Platform with the issue - [ ] Server - [X] Web - [X] Mobile ### Your docker-compose.yml content ```YAML name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} command: ['start.sh', 'immich'] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env ports: - 2283:3001 depends_on: - redis - database restart: always immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} command: ['start.sh', 'microservices'] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env depends_on: - redis - database restart: always immich-machine-learning: container_name: immich_machine_learning volumes: - model-cache:/cache env_file: - .env restart: always redis: container_name: immich_redis image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:84882e87b54734154586e5f8abd4dce69fe7311315e2fc6d67c29614c8de2672 restart: always database: container_name: immich_postgres image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0 environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' volumes: - ${DB_DATA_LOCATION}:/var/lib/postgresql/data restart: always command: ["postgres", "-c" ,"shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"] volumes: model-cache: ``` ### Your .env content ```Shell # The location where your uploaded files are stored UPLOAD_LOCATION=./library # The location where your database files are stored DB_DATA_LOCATION=./postgres # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release DB_PASSWORD="SECRET" # The values below this line do not need to be changed ################################################################################### DB_USERNAME=postgres DB_DATABASE_NAME=immich ``` ### Reproduction steps ```bash 1. I have backup synced between my phone and server 2. I go to the Web client on my desktop and then remove some of the pictures I don't like and I don't expect to exist anymore 3. I open Immich on my phone and I see that the removed images are uploaded to the server again. I did not expect it to happen (at least not in situation, where I remove images myself) ``` ### Relevant log output _No response_ ### Additional information _No response_
Author
Owner

@alextran1502 commented on GitHub (Jun 11, 2024):

Hello, there is a feature request for this already. We will get to it

@alextran1502 commented on GitHub (Jun 11, 2024): Hello, there is a feature request for this already. We will get to it
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#3433