Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Bernhard_Sayer
Contributor

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
G_W_Albrecht
Legend Legend
Legend

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...

CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
0 Kudos
Bernhard_Sayer
Contributor

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

0 Kudos
G_W_Albrecht
Legend Legend
Legend

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.

CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
0 Kudos
PhoneBoy
Admin
Admin

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
Kaspars_Zibarts
Employee Employee
Employee

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

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events