alexbelgium / hassio-addons

My homeassistant addons
MIT License
1.37k stars 194 forks source link

✨ [REQUEST] Plex reduce backup #871

Open akrigator opened 1 year ago

akrigator commented 1 year ago

Checked

Which addon?

Plex

Is your feature request related to a problem? Please describe

Plex backup takes to long and it has huge weight because of it includes all data from /share/plex folder.

Describe the solution you'd like

https://github.com/hassio-addons/addon-plex/blob/v3.2.4/plex/config.yaml has section for restricting backup:

backup_exclude:
  - "**/Plex Media Server/Cache/**"
  - "**/Plex Media Server/Plug-in Support/Caches/**"
  - "**/Plex Media Server/Logs/**"
  - "**/Plex Media Server/Crash Reports/**"
  - "**/Plex Media Server/Diagnostics/**"
alexbelgium commented 1 year ago

Hi, HA doesn't seem to support my repo anymore since it's latest version - I'll have to pause development & support until the supervisor accepts it again... https://github.com/home-assistant/supervisor/issues/4360#issuecomment-1589805756

alexbelgium commented 1 year ago

Well at least on my system its solved but I'll wait for people to confirm in the other thread ; in the meantime I've implemented your proposal !

akrigator commented 1 year ago

Appreciate it

akrigator commented 1 year ago

btw, @alexbelgium what are you going to do with all your *NAS addons since ha introduces their own mount option? are you still planning to support them?

alexbelgium commented 1 year ago

Well the HA system can be used as I have mounted /share in my add-ons that support smb. However I'll keep my system as it is not possible to convert all configurations database between my mountpoints and HA's. So : both are supported

akrigator commented 1 year ago

backup_exclude is applicable only on addon level. So this change does not change anything, plex backup stay 0.1 MB, as it was before this change. My assumption was that those rules will be applied for full backup as well and this reduce full backup size, but HA makes a full backup of the share folder, without rule in backup_exclude. Is there another way to restrict full backup?

alexbelgium commented 1 year ago

Only solution is to map those folders in a non permanent folder somewhere... And the content would be erased at each restart

Really too bad ha doesn't support a file like .hide to skip folders during backup

hulkhaugen commented 11 months ago

At the moment, you are storing persistent data in /config/addons_config/xxx, so there is now way of excluding lots of data from being backed up. your 90-config_yaml.sh seems to suggest that it could be possible to configure persistent data in /share, /config or /data, but i've not actually seen these options in the addons configs. My arr-apps are making my backups quite big, i would love to be able to store the persistent data elsewhere...

SoccerCore11 commented 10 months ago

Really too bad ha doesn't support a file like .hide to skip folders during backup

I use Auto Backup to manage backups with configurable exclusions -> https://jcwillox.github.io/hass-auto-backup/examples/#excluding-addonsfolders-from-a-backup