- Joined
- Apr 16, 2020
- Messages
- 2,947
I deleted a container today.
I meant to delete a Unifi Controller, but deleted instead a Storj Node container - Oops. Brainfart mode on
I tried to restore using truetool - which didn't work (can't say I am suprised)
I use the IX version of the node (there is a backup in the truetool backup), directly on Scale through K3S
The good news is that I have the ID and Storage/Config on custom host paths - so it was (at least in theory) just a matter of rebuilding the container and pointing it at them however the container config contains some important info without which the node would have been lost.
My issue here is not about truetool - they admit that the restore is untested (which makes the backups pretty useless but whatever - I guess things will improve)
The whole point of a container is that it should be recreatable. If I use portainer (and I do) then I would have a stack file, so could just recreate the container with a few key presses. If I use docker run, then I would hope I would have a script file that creates the container with the correct parameters. As far as I can tell there is no such thing in Scale and K3S. I had a notepad file with the container parameters in (well most of them - I had to go to the firewall for the port numbers) but there is no mechanism to backup the container configuration that I can find.
Snapshots you may think - nope. We aren't meant to snapshot the ix-application dataset, and anyway I do not want to roll back all the apps when I screw up like this. There ought to be a method of backing up the container configuration as text / json / whatever files so that I can recreate the container. I move the app config and other storage away from the container so I can back them up using normal mechanisms, but there appears to be no backup of the container configuration itself, and no sensible way of doing so.
Is there, and I just don't know where it is - or is this something missing?
I meant to delete a Unifi Controller, but deleted instead a Storj Node container - Oops. Brainfart mode on
I tried to restore using truetool - which didn't work (can't say I am suprised)
I use the IX version of the node (there is a backup in the truetool backup), directly on Scale through K3S
The good news is that I have the ID and Storage/Config on custom host paths - so it was (at least in theory) just a matter of rebuilding the container and pointing it at them however the container config contains some important info without which the node would have been lost.
My issue here is not about truetool - they admit that the restore is untested (which makes the backups pretty useless but whatever - I guess things will improve)
The whole point of a container is that it should be recreatable. If I use portainer (and I do) then I would have a stack file, so could just recreate the container with a few key presses. If I use docker run, then I would hope I would have a script file that creates the container with the correct parameters. As far as I can tell there is no such thing in Scale and K3S. I had a notepad file with the container parameters in (well most of them - I had to go to the firewall for the port numbers) but there is no mechanism to backup the container configuration that I can find.
Snapshots you may think - nope. We aren't meant to snapshot the ix-application dataset, and anyway I do not want to roll back all the apps when I screw up like this. There ought to be a method of backing up the container configuration as text / json / whatever files so that I can recreate the container. I move the app config and other storage away from the container so I can back them up using normal mechanisms, but there appears to be no backup of the container configuration itself, and no sensible way of doing so.
Is there, and I just don't know where it is - or is this something missing?