How to manage/delete vfs volume snapshots?


#1

Hi!

I am trying to build a setup where convoy vfs volumes are used for persistance.
however i am having hart time figuring out how to manage and delete old snapshots and backups

the idea is that Docker run on multiple ec2 instances inside aws vpc and efs is mounted to every instance and used as vfs.path vor convoy plugin.

multiple containers on multiple ec2 instances can mount same volume at the same time.
and the volume can be backed up from any of them:
{code}
convoy snapshot create myvol --name mysnap
convoy backup create mysnap --dest s3://my-bucket@my-region-1/mypath
{code}

how do you guys expire and delete old snapshots and backups?
the snapshot end up on the local filesystem of particular ec2 instance
however “convoy list” return information about all snapshots taken on all ec2 instances
and if i try to delete snapshot that was taken on another host or the file was deleted from the filesystem using linux command
i get an error:
{code}
convoy snapshot delete mysnap
ERRO[0000] Error response from server, cannot find volume for snapshot mysnap

{
“Error”: “Error response from server, cannot find volume for snapshot mysnap\n”
}
{code}

and apparently there is no “–reference” for snapshot like there is for volumes.

{code}
convoy snapshot delete mysnap --reference
Incorrect Usage.

NAME:
convoy snapshot delete - delete a snapshot: snapshot delete

USAGE:
convoy snapshot delete [arguments…]
ERRO[0000] Error when executing command: flag provided but not defined: -reference
{
“Error”: “Error when executing command: flag provided but not defined: -reference”
}
{code}

how do you keep your metadata neat and tidy?
is there a comprehensive documentation on [arguments…] available?


#2

bump

seriously? nobody?