# CLI for PX-Backup

**URL:** <https://forums.portworx.com/t/cli-for-px-backup/690>\
**Category:** PX-Backup\
**Created:** [December 2, 2020, 7:51am UTC](https://forums.portworx.com/t/cli-for-px-backup/690 "2020-12-02T07:51:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gjm2002ptw](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gjm2002ptw](https://forums.portworx.com/u/gjm2002ptw)\
**Post date:** [December 2, 2020, 7:51am UTC](https://forums.portworx.com/t/cli-for-px-backup/690/1 "2020-12-02T07:51:58Z")

</div>

Is there any CLI for PX-Backup?

According CLI reference, it seems we have CLI for volume backup and creating schedule ( pxctl cloudsnap …).

> **[Cloud Snapshots and Recovery using pxctl](https://docs.portworx.com/reference/cli/cloud-snaps/)**
>
> Learn to take a cloud snapshot of a Portworx volume using pxctl and use that snapshot

How about other CLI operation such as selecting namespace, type (statefulset, PVC, service, etc) and restoring it specifying namespace , etc which PX-Backup provides via GUI?

---

<div class="post-metadata">

**Author:** ![Prashant\_Rathi](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.portworx.com/prashant_rathi/32/72_2.png) [@Prashant\_Rathi](https://forums.portworx.com/u/Prashant_Rathi)\
**Post date:** [December 4, 2020, 10:26pm UTC](https://forums.portworx.com/t/cli-for-px-backup/690/2 "2020-12-04T22:26:20Z")

</div>

We do not have documentation for PX-Backup CLI (it is backupctl). API documentation is available here: [https://backup.docs.portworx.com/reference/rest-api/](https://backup.docs.portworx.com/reference/rest-api/)

---

<div class="post-metadata">

**Author:** ![Santanu\_Mohapatro](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.portworx.com/santanu_mohapatro/32/657_2.png) [@Santanu\_Mohapatro](https://forums.portworx.com/u/Santanu_Mohapatro)\
**Post date:** [January 4, 2023, 4:02pm UTC](https://forums.portworx.com/t/cli-for-px-backup/690/3 "2023-01-04T16:02:27Z")

</div>

Hi I am getting below error while accessing the URL, Please help

“Can’t read from server. It may not have the appropriate access-control-origin settings.”
