0

i am able to create, restore, list full backup from cPanel using API2 and UAPI but i'm not able to export created backup tar.gz file from cPanel using API2 and UAPI in GO.

func (c CpanelApi) GetFileActions(dir, file string, newedit bool) (GetFileActionsApiResponse, error) {
    var out GetFileActionsApiResponse
    err := c.Gateway.API2("Fileman", "download", cpanelgo.Args{
        "dir":  dir,
        "file": file,
    }, &out)

    return out, err
}
peterSO
  • 158,998
  • 31
  • 281
  • 276
  • Adding the code was helpful, but now what error are you getting, and how is the code behaving? In what way does it not work? Help us help you! – joanis Sep 30 '19 at 12:40
  • Actually i'm using cPanel API2 and UAPI in GO but there is no option to export created backup tar.gz file from cPanel using API2 and UAPI kindly help – sahil gill Oct 01 '19 at 04:17

0 Answers0