# A user with specific rights can no longer import/export data. Is it possible to automate backups?

**URL:** <https://discourse.getcockpit.com/t/a-user-with-specific-rights-can-no-longer-import-export-data-is-it-possible-to-automate-backups/2127>\
**Category:** Uncategorized\
**Created:** [October 31, 2021, 9:58am UTC](https://discourse.getcockpit.com/t/a-user-with-specific-rights-can-no-longer-import-export-data-is-it-possible-to-automate-backups/2127 "2021-10-31T09:58:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcTabaries](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/marctabaries/32/867_2.png) [@MarcTabaries](https://discourse.getcockpit.com/u/MarcTabaries)\
**Post date:** [October 31, 2021, 9:58am UTC](https://discourse.getcockpit.com/t/a-user-with-specific-rights-can-no-longer-import-export-data-is-it-possible-to-automate-backups/2127/1 "2021-10-31T09:58:22Z")

</div>

Hello,

I created a new user on Cockpit with a very specific rights ([more informations here](https://discourse.getcockpit.com/t/add-a-user-in-cockpit-and-change-access-rights-with-the-cockpit-groups-plugin-bugs-with-assets-finder-modules/2123)). Everything works as I want.

The problem is that now, my user cannot import and/or export collections and singletons (schema and datas). This is annoying, because it was my user who had to take care of the backups.

Is there a solution to re-enable this option for him ?

If not, I wonder if the easiest way would be to automate the exports (collections, singletons (schema and datas) and files in the finder module) via a CRON task, using the [Cockpit command line](https://getcockpit.com/documentation/reference/CLI) and saving the backups in the cloud (Google Drive, etc.). Have you already done this ? I am at 1and1 - Ionos, I have SSH access and it is possible to run CRON tasks.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![creativeplusplus](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/creativeplusplus/32/844_2.png) [@creativeplusplus](https://discourse.getcockpit.com/u/creativeplusplus)\
**Post date:** [October 31, 2021, 10:27am UTC](https://discourse.getcockpit.com/t/a-user-with-specific-rights-can-no-longer-import-export-data-is-it-possible-to-automate-backups/2127/2 "2021-10-31T10:27:14Z")

</div>

> **[GitHub - pauloamgomes/BackupAndRestore: Backup and Restore add-on for Cockpit...](https://github.com/pauloamgomes/BackupAndRestore)**
>
> Backup and Restore add-on for Cockpit CMS. Contribute to pauloamgomes/BackupAndRestore development by creating an account on GitHub.

Maybe give u the idea

---

<div class="post-metadata">

**Author:** ![MarcTabaries](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/marctabaries/32/867_2.png) [@MarcTabaries](https://discourse.getcockpit.com/u/MarcTabaries)\
**Post date:** [October 31, 2021, 10:32am UTC](https://discourse.getcockpit.com/t/a-user-with-specific-rights-can-no-longer-import-export-data-is-it-possible-to-automate-backups/2127/3 "2021-10-31T10:32:21Z")

</div>

Hi,

I will see and test this. Thanks.

🙂

---

<div class="post-metadata">

**Author:** ![MarcTabaries](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/marctabaries/32/867_2.png) [@MarcTabaries](https://discourse.getcockpit.com/u/MarcTabaries)\
**Post date:** [November 1, 2021, 4:25pm UTC](https://discourse.getcockpit.com/t/a-user-with-specific-rights-can-no-longer-import-export-data-is-it-possible-to-automate-backups/2127/4 "2021-11-01T16:25:17Z")

</div>

The plugin works well. But it should be noted that :

- Singletons entries are not exported. This option does not seem to be provided by the plugin.

- In API mode, singletons (schema) are not exported by default. I had to modify the code to make it work. As the plugin doesn’t seem to be updated anymore, this is not too much of a problem.

- Still in API mode, the backup description does not include the backup creation date. I saw that it was possible to customize the description by passing the “description” flag, but this did not work with my cron job script (concatenation of data not possible). I had to modify the code to make it work.

Bye.
