steam-runtime-sniper creates var/tmp-XXXXXX folder that confuses backup tools

Abierto
#732 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
shell

Línea de trabajo

Comienza examinando cómo Steam Runtime Sniper gestiona el directorio var/tmp-XXXXXX y reproduce el problema utilizando los pasos indicados para iniciar Steam y realizar la copia de seguridad. Se considera terminado cuando volver a iniciar Steam ya no cambia el nombre del directorio ni vuelve a crear un directorio equivalente, de modo que rsync no vuelva a copiar los datos.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Pressure Vessel
Your system information
  • Steam Runtime Version: sniper_platform_0.20240916.101795
  • Distribution (e.g. Ubuntu 18.04): Gentoo ~amd64
  • Link to your full system information (Help -> Steam Runtime Diagnostics) in a Gist: https://gist.github.com/Anonymous1157/f733a83c09bb2625ed08876005f4cf0d
  • Have you checked for system updates?: Yes
  • What compatibility tool are you using?: Proton 9.0 (temporarily switched to Proton-GE in an attempt to remove steam-runtime-sniper but it did not let me, but also Proton is not relevant to the issue)
  • What versions are listed in steamapps/common/SteamLinuxRuntime/VERSIONS.txt? 0.20240806.0
  • What versions are listed in steamapps/common/SteamLinuxRuntime_soldier/VERSIONS.txt? 0.20241118.108551
  • What versions are listed in steamapps/common/SteamLinuxRuntime_sniper/VERSIONS.txt? 0.20241118.108552
Please describe your issue in as much detail as possible:

I'm running Steam from the Flatpak.

Steam Runtime Sniper creates a folder Steam/ubuntu12_64/steam-runtime-sniper/var/tmp-XXXXXX in its file structure where the XXXXXX changes every time Steam launches. I tried looking for other reported issues about this folder and it's allegedly being hardlinked from somewhere else rather than unpacking the runtime again every launch, but I'm also far from the only person that's had a weird issue with this folder.

I use rsync to backup my home directory. If I have launched Steam at any time since the last backup, the tmp-XXXXXX folder will change its name. At backup time approximately one gigabyte of data at the remote server will be deleted and a presumably identical gigabyte of data will be copied again as if it were completely new files.

Is there a way to make Steam stop recreating/renaming this folder? I tried to get my friends to reproduce this problem and apparently this folder was not getting renamed for them. I don't know any details about their setup other than it's a different distro but they were also using a Flatpak.

Of course I can work around the problem by excluding this folder in my rsync command. That's fine. But I think this is a problem that should be solved at the runtime so that less technical users don't have to worry about it. I think it's reasonable to expect someone could want a one-click backup solution with no strange gotchas to work around.

Steps for reproducing this issue:
  1. Launch Steam
  2. Backup your home directory
  3. Close and relaunch Steam
  4. Backup your home directory again
  5. Watch your backup software delete Steam/ubuntu12_64/steam-runtime-sniper/var/tmp-XXXXXX and copy Steam/ubuntu12_64/steam-runtime-sniper/var/tmp-YYYYYY
  6. Repeat ad nauseum until your NAS' storage wears out
Lenguaje dominante
Shell
Estrellas
1.5k
Forks
98
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ValveSoftware/steam-runtime

Todos los issues de ValveSoftware/steam-runtime

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.