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

✨ [REQUEST] Plex reduce backup #871

Open
2 tasks done
akrigator opened this issue Jun 13, 2023 · 9 comments
Open
2 tasks done

✨ [REQUEST] Plex reduce backup #871

akrigator opened this issue Jun 13, 2023 · 9 comments
Labels
enhancement New feature or request prevent stale Prevents stale being applied

Comments

@akrigator
Copy link
Contributor

akrigator commented Jun 13, 2023

Checked

  • If a new addon, I have checked on Google that such as addon doesn't already exists
  • If a new feature, I have searched in the discussions & issues that it was not already covered

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/**"
@akrigator akrigator added enhancement New feature or request prevent stale Prevents stale being applied labels Jun 13, 2023
@alexbelgium
Copy link
Owner

alexbelgium commented Jun 13, 2023

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... home-assistant/supervisor#4360 (comment)

@alexbelgium
Copy link
Owner

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
Copy link
Contributor Author

Appreciate it

@akrigator
Copy link
Contributor Author

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
Copy link
Owner

alexbelgium commented Jun 13, 2023

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

@alexbelgium alexbelgium removed the prevent stale Prevents stale being applied label Jun 13, 2023
@akrigator
Copy link
Contributor Author

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
Copy link
Owner

alexbelgium commented Jun 13, 2023

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

@alexbelgium alexbelgium added the prevent stale Prevents stale being applied label Jun 15, 2023
@hulkhaugen
Copy link

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
Copy link

SoccerCore11 commented Aug 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prevent stale Prevents stale being applied
Projects
None yet
Development

No branches or pull requests

4 participants