rancher / convoy

A Docker volume plugin, managing persistent container volumes.
Apache License 2.0
1.31k stars 135 forks source link

How to use convoy backup list command? #234

Open robsonyeg opened 3 years ago

robsonyeg commented 3 years ago

Hello,

I read the doc https://github.com/rancher/convoy/blob/master/docs/cli_reference.md and also get parameters from cli but could not figure out the correct usage of the backup list command.

Could someone help me on how to run the backup list command?

Thanks, Robin

Information about convoy

sudo convoy --version
Convoy version v0.5.2

 sudo convoy backup list --help
NAME:
   Convoy backup list - list backups in objectstore: list <dest>

USAGE:
   Convoy backup list [command options] [arguments...]

OPTIONS:
   --volume-name    name of volume

backup list command always returns with an error.

sudo convoy backup list
ERRO[0000] Cannot find valid required parameter:%!!(MISSING)(EXTRA string=) 
{
    "Error": "Cannot find valid required parameter:%!!(MISSING)(EXTRA string=)"
}

sudo convoy backup list --volume-name vol1
ERRO[0000] Cannot find valid required parameter:%!!(MISSING)(EXTRA string=) 
{
    "Error": "Cannot find valid required parameter:%!!(MISSING)(EXTRA string=)"
}

Volumes info

sudo convoy list
{
    "res1": {
        "Name": "res1",
        "Driver": "vfs",
        "MountPoint": "",
        "CreatedTime": "Mon Dec 14 14:54:48 -0700 2020",
        "DriverInfo": {
            "Driver": "vfs",
            "MountPoint": "",
            "Path": "/nfs/docker-volumes/swarm-volumes/res1",
            "PrepareForVM": "false",
            "Size": "0",
            "VolumeCreatedAt": "Mon Dec 14 14:54:48 -0700 2020",
            "VolumeName": "res1"
        },
        "Snapshots": {}
    },
    "test_volume": {
        "Name": "test_volume",
        "Driver": "vfs",
        "MountPoint": "",
        "CreatedTime": "Mon Dec 14 14:37:47 -0700 2020",
        "DriverInfo": {
            "Driver": "vfs",
            "MountPoint": "",
            "Path": "/nfs/docker-volumes/swarm-volumes/test_volume",
            "PrepareForVM": "false",
            "Size": "0",
            "VolumeCreatedAt": "Mon Dec 14 14:37:47 -0700 2020",
            "VolumeName": "test_volume"
        },
        "Snapshots": {}
    },
    "vol1": {
        "Name": "vol1",
        "Driver": "vfs",
        "MountPoint": "",
        "CreatedTime": "Mon Dec 14 14:38:57 -0700 2020",
        "DriverInfo": {
            "Driver": "vfs",
            "MountPoint": "",
            "Path": "/nfs/docker-volumes/swarm-volumes/vol1",
            "PrepareForVM": "false",
            "Size": "0",
            "VolumeCreatedAt": "Mon Dec 14 14:38:57 -0700 2020",
            "VolumeName": "vol1"
        },
        "Snapshots": {
            "snap1vol1": {
                "Name": "snap1vol1",
                "CreatedTime": "Mon Dec 14 14:48:20 -0700 2020",
                "DriverInfo": {
                    "Driver": "vfs",
                    "FilePath": "/var/lib/rancher/convoy/vfs/snapshots/vol1_snap1vol1.tar.gz",
                    "SnapshotCreatedAt": "Mon Dec 14 14:48:20 -0700 2020",
                    "SnapshotName": "snap1vol1",
                    "VolumeUUID": "vol1"
                }
            }
        }
    }
}