Giter VIP home page Giter VIP logo

Comments (5)

vitobotta avatar vitobotta commented on May 22, 2024

Hi, looking forward to seeing this implemented. At the moment I am backing up some volumes but I don't know if the backup has finished or not yet.

from longhorn.

shreesha21 avatar shreesha21 commented on May 22, 2024

Usage for UI:
The backup list could be seen in the JSON format with the following request:

curl http://<longhorn-ui-ip>:<port>/v1/volumes

Sample Response:

{
    "createTypes": {
        "volume": "http://<ip>/v1/volumes"
    },
    "data": [
        {
            "actions": {
                ...
            },
            "backupStatus": [
                {
                    "actions": null,
                    "backupError": "",
                    "backupURL": "s3://backupbucket@us-east-1/backupstore?backup=backup-cc0d6fbc1a7f4760&volume=btest",
                    "id": "backup-cc0d6fbc1a7f4760",
                    "links": null,
                    "progress": 100,
                    "snapshot": "6598a238-3c7e-4373-a74f-1d3e0ac6deef"
                },
                {
                    "actions": null,
                    "backupError": "",
                    "backupURL": "s3://backupbucket@us-east-1/backupstore?backup=backup-932d69f9ee4f4187&volume=btest",
                    "id": "backup-932d69f9ee4f4187",
                    "links": null,
                    "progress": 100,
                    "snapshot": "68403f2d-65d8-4a70-bf5e-4feedef348f0"
                }
            ],
            "baseImage": "",
            "conditions": {
               ...
                }
            },
          ...

from longhorn.

yasker avatar yasker commented on May 22, 2024

@shreesha21 Also need to document the interaction between fields in backup status.

from longhorn.

shreesha21 avatar shreesha21 commented on May 22, 2024

In BackupStatus, there are 5 important fields and details of those fields are mentioned below:

Snapshot: This indicates the name of the snapshot being backed up.
id: This indicates the name of the backup
Progress: This indicates the progress percentage of the backup. Value: 0 - 100
BackupURL: When the progress reaches 100, a backupURL is generated and populated here. This backupURL is required while restoring this backup in the future.
BackupError: If there are any error thats encountered while creating the backup, it will be populated in this field.

from longhorn.

meldafrawi avatar meldafrawi commented on May 22, 2024

Steps to test:

  • Create longhorn volume
  • Attach the volume to a node
  • Mount the volume on the node
  • Write fairly large data into the mounted volume ~ 3 GB
  • On volume details page, click Create Backup
    Expected result:
    • In volume details page, Snapshots section you should see a new snapshot being created, and you should see backup progress.
    • Hovering on the snapshot, a tool-tip will be appear, and it will contain backup information (backup URL, snapshot name, progress, .. )

from longhorn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.