cancel
Showing results for 
Search instead for 
Did you mean: 
Post a Question

Remove all snapshots at once

Hi!

Does anyone know a command to remove all existing snapshots on a gateway with a single command? I have many gateways with 5,6 or more snapshots and it would be helpful not to do a "show snapshots" and "delete snapshot #1; #2; #3; #4; …".

Thx,

Bernhard

5 Replies

Re: Remove all snapshots at once

No, CLI does not support that - delete snapshot <Name of Snapshot> needs the name, and on Gaia OS, snapshots are not files, but disk volumes that are stored as a disk partition. So the most easy way to delete snapshots is the GAiA WebGUI...

0 Kudos

Re: Remove all snapshots at once

Not easy on about 100 gateways with up to 6 snapshots ☹

0 Kudos

Re: Remove all snapshots at once

If it is necessary you can parse the show snapshots output and generate the names for delete snapshot, but this needs some programming skills... Or use lvm commands.

0 Kudos
Admin
Admin

Re: Remove all snapshots at once

Unrelated to your query, but when you responded to this post via email, your full signature with your phone number was also posted.

I edited your post to remove this information as I assume that was not intended.

Be aware of that for future Smiley Happy

0 Kudos

Re: Remove all snapshots at once

Can't you script it from Management? Can't be too challenging Smiley Happy good old bash.. 

0 Kudos