# Automatic scheduled CSV-import with duplicate detection or automatic purge

**URL:** <https://community.passbolt.com/t/automatic-scheduled-csv-import-with-duplicate-detection-or-automatic-purge/5336>\
**Category:** API & Customization issues\
**Created:** [May 9, 2022, 9:34am UTC](https://community.passbolt.com/t/automatic-scheduled-csv-import-with-duplicate-detection-or-automatic-purge/5336 "2022-05-09T09:34:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@Alexander](https://community.passbolt.com/u/Alexander)\
**Post date:** [May 9, 2022, 9:34am UTC](https://community.passbolt.com/t/automatic-scheduled-csv-import-with-duplicate-detection-or-automatic-purge/5336/1 "2022-05-09T09:34:06Z")

</div>

Hello,

we are interested in using passbolt in our small business. I have been charged to evaluate the software.

I have a question for which I couldn’t find any answer in the documentation:

**Is it possible to automatically do a scheduled import of a csv-file into passbolt?** The reason behind this is that we are keeping some of our customers passwords in a CMDB-software which we use for documenting their it-infrastructure.  
We want these passwords to stay there in order to have all data regarding a device/service in one place. But we would like to have them in a password manager as well for better convenience (fast search, browser integration, …)  
Therefor we want to implement a scheduled export of all passwords inside the CMDB-Software and a scheduled import in passbolt as a one-way-sync.

For this to work properly it would also be **necessary for passbolt not to treat updated entries as new entries. Or alternatively it should support a automatic purge of the database befor doing the automatic import.**  
Is one of the two alternatives supported?

Thanks in advance!  
Alex

---

<div class="post-metadata">

**Author:** ![AnatomicJC](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/anatomicjc/32/962_2.png) [@AnatomicJC](https://community.passbolt.com/u/AnatomicJC)\
**Post date:** [May 9, 2022, 11:15am UTC](https://community.passbolt.com/t/automatic-scheduled-csv-import-with-duplicate-detection-or-automatic-purge/5336/2 "2022-05-09T11:15:03Z")

</div>

Hi @Alexander 👋 and welcome to passbolt community forum 🤝

> [@Alexander](#):
>
> Is it possible to automatically do a scheduled import of a csv-file into passbolt?

> [@Alexander](#):
>
> it would also be **necessary for passbolt not to treat updated entries as new entries. Or alternatively it should support a automatic purge of the database befor doing the automatic import.**

You can schedule automatic imports with a script. You will have to write the logic (is it a new password ? an existing one who have to be updated ?). You can use [go-passbolt-cli](https://github.com/passbolt/go-passbolt-cli/blob/main/README.md) for this script.

Let me know if you have further questions.

Cheers,

---

<div class="post-metadata">

**Author:** ![Alexander](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@Alexander](https://community.passbolt.com/u/Alexander)\
**Post date:** [May 9, 2022, 11:33am UTC](https://community.passbolt.com/t/automatic-scheduled-csv-import-with-duplicate-detection-or-automatic-purge/5336/3 "2022-05-09T11:33:18Z")

</div>

@AnatomicJC thanks a lot for your helpful reply!

I will look into go-passbolt-cli.

I saw there is a command to delete folders. Couldn’t this solve the update-/duplicate-issue? Then we could first delete the folder with all subfolders and passwords from the CMDB-software in it and then create it again and do a clean import every time we run the import-script.

BTW we will be using passbolt to store other passwords in different folders as well. These will be migrated once and should not be touched by the automatic import.

Best regards  
Alex

---

<div class="post-metadata">

**Author:** ![bgartenmann](https://avatars.discourse-cdn.com/v4/letter/b/3ec8ea/32.png) [@bgartenmann](https://community.passbolt.com/u/bgartenmann)\
**Post date:** [June 19, 2024, 7:33am UTC](https://community.passbolt.com/t/automatic-scheduled-csv-import-with-duplicate-detection-or-automatic-purge/5336/4 "2024-06-19T07:33:53Z")

</div>

Hi @Alexander  
Sorry to dig out this old thread!  
I am in a very similar position where I have a passbolt instance with different folders/subfolders where one folder tree will be passwords from a different location.  
I want only this folder/subfolders to be updated automatically through a script or similar and not touching all other folders/passwords.  
Have you ever reached a solution that you are happy with in your situation that you could share?

Many thanks,  
Beni
