Your system has more snapshots than recommended (10000)

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
What is your oldest app, just curious. Say it's named redis, replace redis with name of your oldest app (Truenas name). So, do:

zfs list -t snapshot | grep redis | grep HeavyScript

--prune should be removing old stuff.

I don't specify any of those options and take the default. The default is 7 backups which is 1 week and enough for me. That would halve your 6901 number right there. You don't seem to have a lot of non HeavyScript snapshots, so, those would appear ok to me for the most part.

You're not using (or used to use) TrueCharts are you?

How many apps or containers do you have?
 

Daisuke

Contributor
Joined
Jun 23, 2011
Messages
1,041
There is way to automate the deletion of snapshots with a cronjob:
Code:
midclt call pool.dataset.destroy_snapshots software/ix-applications '{}'

The only part I’m missing to get it working is how to define a wildcard for any snapshot name inside the brackets, I don’t know if this is possible. Maybe iX can provide some insight?
 

CheeryFlame

Contributor
Joined
Nov 21, 2022
Messages
184
What is your oldest app, just curious. Say it's named redis, replace redis with name of your oldest app (Truenas name). So, do:

zfs list -t snapshot | grep redis | grep HeavyScript
Is there a way/command to know what my oldest app is? I had to reinstall all my applications after the TrueCharts' breaking change last spring. I didn't take note of the order while reinstalling the charts making it hard for me to remember which app I reinstalled first. It might have been qbittorrent but I'm not sure. So if that's of any help here's the return of that command.

Code:
root@TrueNAS[~]# zfs list -t snapshot | grep qbittorrent | grep HeavyScript
Eden/backups/zappa/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_16_04_00_02                                                                0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_17_04_00_03                                                                0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_18_04_00_01                                                                0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_19_04_00_02                                                                0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_20_04_00_02                                                                0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_21_04_00_02                                                                0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_21_15_58_15                                                                0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_22_04_00_02                                                                0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_23_04_00_02                                                                0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_24_04_00_02                                                                0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_25_04_00_02                                                                0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_26_04_00_02                                                                0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_27_04_00_03                                                                0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_28_04_00_02                                                                0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_16_04_00_02                                                         0B      -     1.54M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_17_04_00_03                                                         0B      -     1.54M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_18_04_00_01                                                         0B      -     1.54M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_19_04_00_02                                                         0B      -     1.54M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_20_04_00_02                                                         0B      -     1.54M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_21_04_00_02                                                         0B      -     1.54M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_21_15_58_15                                                         0B      -     1.54M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_22_04_00_02                                                         0B      -     1.54M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_23_04_00_02                                                         0B      -     1.54M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_24_04_00_02                                                         0B      -     1.54M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_25_04_00_02                                                         0B      -     1.54M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_26_04_00_02                                                         0B      -     1.54M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_27_04_00_03                                                         0B      -     1.54M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_28_04_00_02                                                         0B      -     1.54M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_16_04_00_02                                                        0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_17_04_00_03                                                        0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_18_04_00_01                                                        0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_19_04_00_02                                                        0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_20_04_00_02                                                        0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_21_04_00_02                                                        0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_21_15_58_15                                                        0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_22_04_00_02                                                        0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_23_04_00_02                                                        0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_24_04_00_02                                                        0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_25_04_00_02                                                        0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_26_04_00_02                                                        0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_27_04_00_03                                                        0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_28_04_00_02                                                        0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_16_04_00_02                                             0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_17_04_00_03                                             0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_18_04_00_01                                             0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_19_04_00_02                                             0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_20_04_00_02                                             0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_21_04_00_02                                             0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_21_15_58_15                                             0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_22_04_00_02                                             0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_23_04_00_02                                             0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_24_04_00_02                                             0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_25_04_00_02                                             0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_26_04_00_02                                             0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_27_04_00_03                                             0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_28_04_00_02                                             0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_16_04_00_02            13.3M      -      159M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_17_04_00_03            12.7M      -      159M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_18_04_00_01             314K      -      156M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_19_04_00_02               0B      -      156M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_20_04_00_02               0B      -      156M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_21_04_00_02               0B      -      156M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_21_15_58_15             267K      -      156M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_22_04_00_02             267K      -      156M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_23_04_00_02             267K      -      156M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_24_04_00_02             291K      -      166M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_25_04_00_02             267K      -      166M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_26_04_00_02               0B      -      166M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_27_04_00_03               0B      -      166M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_28_04_00_02               0B      -      166M  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_16_04_00_02               0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_17_04_00_03               0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_18_04_00_01               0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_19_04_00_02               0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_20_04_00_02               0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_21_04_00_02               0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_21_15_58_15               0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_22_04_00_02               0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_23_04_00_02               0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_24_04_00_02               0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_25_04_00_02               0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_26_04_00_02               0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_27_04_00_03               0B      -      279K  -
Eden/backups/zappa/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_28_04_00_02               0B      -      279K  -
Pollen/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_16_04_00_02                                                                            0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_17_04_00_03                                                                            0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_18_04_00_01                                                                            0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_19_04_00_02                                                                            0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_20_04_00_02                                                                            0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_21_04_00_02                                                                            0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_21_15_58_15                                                                            0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_22_04_00_02                                                                            0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_23_04_00_02                                                                            0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_24_04_00_02                                                                            0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_25_04_00_02                                                                            0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_26_04_00_02                                                                            0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_27_04_00_03                                                                            0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent@ix-applications-backup-HeavyScript_2023_08_28_04_00_02                                                                            0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_16_04_00_02                                                                     0B      -      996K  -
Pollen/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_17_04_00_03                                                                     0B      -      996K  -
Pollen/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_18_04_00_01                                                                     0B      -      996K  -
Pollen/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_19_04_00_02                                                                     0B      -      996K  -
Pollen/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_20_04_00_02                                                                     0B      -      996K  -
Pollen/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_21_04_00_02                                                                     0B      -      996K  -
Pollen/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_21_15_58_15                                                                     0B      -      996K  -
Pollen/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_22_04_00_02                                                                     0B      -      996K  -
Pollen/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_23_04_00_02                                                                     0B      -      996K  -
Pollen/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_24_04_00_02                                                                     0B      -      996K  -
Pollen/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_25_04_00_02                                                                     0B      -      996K  -
Pollen/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_26_04_00_02                                                                     0B      -      996K  -
Pollen/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_27_04_00_03                                                                     0B      -      996K  -
Pollen/ix-applications/releases/qbittorrent/charts@ix-applications-backup-HeavyScript_2023_08_28_04_00_02                                                                     0B      -      996K  -
Pollen/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_16_04_00_02                                                                    0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_17_04_00_03                                                                    0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_18_04_00_01                                                                    0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_19_04_00_02                                                                    0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_20_04_00_02                                                                    0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_21_04_00_02                                                                    0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_21_15_58_15                                                                    0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_22_04_00_02                                                                    0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_23_04_00_02                                                                    0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_24_04_00_02                                                                    0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_25_04_00_02                                                                    0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_26_04_00_02                                                                    0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_27_04_00_03                                                                    0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes@ix-applications-backup-HeavyScript_2023_08_28_04_00_02                                                                    0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_16_04_00_02                                                         0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_17_04_00_03                                                         0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_18_04_00_01                                                         0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_19_04_00_02                                                         0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_20_04_00_02                                                         0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_21_04_00_02                                                         0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_21_15_58_15                                                         0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_22_04_00_02                                                         0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_23_04_00_02                                                         0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_24_04_00_02                                                         0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_25_04_00_02                                                         0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_26_04_00_02                                                         0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_27_04_00_03                                                         0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/ix_volumes@ix-applications-backup-HeavyScript_2023_08_28_04_00_02                                                         0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_16_04_00_02                        4.41M      -      124M  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_17_04_00_03                        4.41M      -      124M  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_18_04_00_01                         132K      -      123M  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_19_04_00_02                           0B      -      123M  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_20_04_00_02                           0B      -      123M  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_21_04_00_02                           0B      -      123M  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_21_15_58_15                         116K      -      123M  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_22_04_00_02                         116K      -      123M  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_23_04_00_02                         116K      -      123M  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_24_04_00_02                         124K      -      132M  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_25_04_00_02                         116K      -      132M  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_26_04_00_02                           0B      -      132M  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_27_04_00_03                           0B      -      132M  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-8101103f-459d-45af-8e0e-272d4af41809@ix-applications-backup-HeavyScript_2023_08_28_04_00_02                           0B      -      132M  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_16_04_00_02                           0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_17_04_00_03                           0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_18_04_00_01                           0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_19_04_00_02                           0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_20_04_00_02                           0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_21_04_00_02                           0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_21_15_58_15                           0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_22_04_00_02                           0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_23_04_00_02                           0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_24_04_00_02                           0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_25_04_00_02                           0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_26_04_00_02                           0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_27_04_00_03                           0B      -       96K  -
Pollen/ix-applications/releases/qbittorrent/volumes/pvc-d76609d3-2fe8-44e0-a604-de206e809c48@ix-applications-backup-HeavyScript_2023_08_28_04_00_02                           0B      -       96K  -


--prune should be removing old stuff.
Are you telling me to append --prune at the end of the latest command? If so I'd have to do it for each singular app?
You're not using (or used to use) TrueCharts are you?
Yes, 100% of my apps are TrueCharts.
How many apps or containers do you have?
I currently have 43 apps.

Thank you for helping me!
 

CheeryFlame

Contributor
Joined
Nov 21, 2022
Messages
184
There is way to automate the deletion of snapshots with a cronjob:
Code:
midclt call pool.dataset.destroy_snapshots software/ix-applications '{}'

The only part I’m missing to get it working is how to define a wildcard for any snapshot name inside the brackets, I don’t know if this is possible. Maybe iX can provide some insight?
Wouldn't this delete all the applications in the dataset as well?
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
Your command was fine, even if it was not the oldest. You have 14 snapshots for qbittorrent. --prune is an option for Heavyscript, I was just saying it should be removing old stuff and it clearly is. The biggest reasons between your snapshot count and mine are:

You are keeping 14 backups, me 7.
You are running Truecharts and using PVC which I know they tell you to use. However, you end up with vastly more snapshots. I have 0 PVC volumes so I don't have an extra 14 per PVC.
You have more apps, 43.

But the biggest reason is Truecharts/PVC. So, the question is, does it matter much to you?

I don't think you can do much here except perhaps reduce backup number to 7 in HeavyScript. I count 168 snapshots just for qbittorrent. My heaviest app has 28 snapshots because I do not use PVC.
 

CheeryFlame

Contributor
Joined
Nov 21, 2022
Messages
184
Your command was fine, even if it was not the oldest. You have 14 snapshots for qbittorrent. --prune is an option for Heavyscript, I was just saying it should be removing old stuff and it clearly is. The biggest reasons between your snapshot count and mine are:

You are keeping 14 backups, me 7.
You are running Truecharts and using PVC which I know they tell you to use. However, you end up with vastly more snapshots. I have 0 PVC volumes so I don't have an extra 14 per PVC.
You have more apps, 43.

But the biggest reason is Truecharts/PVC. So, the question is, does it matter much to you?

I don't think you can do much here except perhaps reduce backup number to 7 in HeavyScript. I count 168 snapshots just for qbittorrent. My heaviest app has 28 snapshots because I do not use PVC.
Well I gotta agree that PVC is much better, at least more stable. I've got some applications breaking because the config files were outside PVC. It's also much more secure since I have few apps exposed to the outside world. If someone gets into a container and only has access to a PVC, well good luck accessing host. Anyway, I guess this is personal taste and experience. I also appreciate getting support from them, since they require it.

How would I know if I have old snapshots unrelated to my heavyscript backups and my snapshot tasks? Like is there a command to run so it deletes all the snapshots that are unrelated to replication tasks and heavyscript?
 

sfatula

Guru
Joined
Jul 5, 2022
Messages
608
My experience is I don't miss PVC at all. I have zero stabiliy issues. But I was not suggesting you get rid of Truecharts. I was saying how much do the large number of snapshots matter to you. I doubt you have many unrelated snapshots. That would take a bunch of time to look through all your snapshots, not sure of a better way. I just wanted to measure one app, and 168 snapshots for one app seems to make sense given your number of snapshots. That is the issue. Cut backups to 7, and you have half as many snapshots. That's about all you can do given 43 apps and the way you are running them. Not a truenas issue per se, it is doing what you have told it to do. Just a side effect of 14 backups, and PVC.
 

CheeryFlame

Contributor
Joined
Nov 21, 2022
Messages
184
The command destroys snapshots, nothing to do with apps.
Sorry, I explained myself like a foreigner. I mean't the snapshots on the dataset that contains the apps.
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
Hello,

I'm having this message again although I thought that I had setup my snapshots correctly this time.



I've looked Under Left Menu > Datasets and clicked on each one of them and they were all showing between 0-30 maximum as you can see on this example.

View attachment 69542

I don't have 50x datasets but if I would it would make 1,500 snapshots for a period of 30 days which is far from the max 10,000 snapshots.

Here's a screenshot of my periodic snapshots tasks

View attachment 69545

I suspect there might be old snapshots that I don't want but it's too slow to navigate in Storage > Snapshots. Also I'm afraid I could delete something that I shouldn't be. Is there a command or a script that looks at your current snapshot tasks and will delete all unrelated snapshots part of older tasks?

Thanks for helping me!
The wording for the warning is weird as it suggests you need to have around 10000 to have an optimal system.
 
Top