{"id":21128742,"url":"https://github.com/jdhitsolutions/SecretStoreBackup","last_synced_at":"2025-07-08T23:33:14.477Z","repository":{"id":258695488,"uuid":"358382150","full_name":"jdhitsolutions/SecretStoreBackup","owner":"jdhitsolutions","description":":sparkles: A set of PowerShell tools for backing up a Microsoft.SecretsManagement store","archived":false,"fork":false,"pushed_at":"2025-04-09T23:28:33.000Z","size":34,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T23:14:23.130Z","etag":null,"topics":["powershell","secrets-management"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdhitsolutions.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-15T20:17:54.000Z","updated_at":"2025-06-23T16:52:03.000Z","dependencies_parsed_at":"2024-10-21T18:01:09.829Z","dependency_job_id":null,"html_url":"https://github.com/jdhitsolutions/SecretStoreBackup","commit_stats":null,"previous_names":["jdhitsolutions/secretstorebackup"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jdhitsolutions/SecretStoreBackup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FSecretStoreBackup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FSecretStoreBackup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FSecretStoreBackup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FSecretStoreBackup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdhitsolutions","download_url":"https://codeload.github.com/jdhitsolutions/SecretStoreBackup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdhitsolutions%2FSecretStoreBackup/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264366092,"owners_count":23596974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["powershell","secrets-management"],"created_at":"2024-11-20T05:02:17.442Z","updated_at":"2025-07-08T23:33:14.465Z","avatar_url":"https://github.com/jdhitsolutions.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# SecretStoreBackup\n\n[![PSGallery Version](https://img.shields.io/powershellgallery/v/SecretStoreBackup.png?style=for-the-badge\u0026label=PowerShell%20Gallery)](https://www.powershellgallery.com/packages/SecretStoreBackup/) [![PSGallery Downloads](https://img.shields.io/powershellgallery/dt/SecretStoreBackup.png?style=for-the-badge\u0026label=Downloads)](https://www.powershellgallery.com/packages/SecretStoreBackup/)\n\nThis is a simple PowerShell module designed to backup and restore a secrets management vault. The module assumes you are using at least the `Microsoft.PowerShell.SecretStore` and `Microsoft.PowerShell.SecretManagement` modules. I have not tested with 3rd party secrets management extensions, but as long as your secrets vaults can be managed with `Get-Secret`, `Get-SecretInfo`, and `Set-Secret`, you should be fine.\n\nYou can install this module from the PowerShell Gallery:\n\n```powershell\nInstall-PSResource -Name SecretStoreBackup\n```\n\nIf you do not have the `Microsoft.PowerShell.SecretStore` and `Microsoft.PowerShell.SecretManagement` modules, already installed, they will be installed with this module.\n\nThe premise behind this module is simple.\n\n## [Export-SecretStore](docs/Export-SecretStore.md)\n\nThis command will export all secrets and secret information into an XML file using `Export-Clixml`.\n\n```powershell\nExport-SecretStore -Vault secrets -password $pass -FilePath c:\\backup\\secrets.xml\n```\n\nOr you can export the secrets as objects so that you can choose the format.\n\n```powershell\nExport-SecretStore secrets -AsObject | ConvertTo-JSON | Out-File c:\\backup\\secrets.json\n```\n\nYou might choose this option if you want to handle your own import.\n\n:warning: The export process will expose __all secrets in plaintext__. It is up to you to protect and safeguard the exported file. This is what allows you to import the secrets into a new vault on another computer.\n\n## [Import-SecretStore](docs/Import-SecretStore.md)\n\nThe import process is a simple reversal of the export process assuming you used the XML option. The target vault must already exist.\n\n```powershell\nImport-Clixml c:\\temp\\secrets.xml | Import-SecretStore -vault NewSecrets\n```\n\nIf you used a JSON file in the export, you should be able to use code like this to import itL:\n\n```powershell\nPS C:\\\u003e Register-SecretVault -Name demo -Description \"test vault\" -ModuleName Microsoft.Powershell.SecretStore\nPS C:\\\u003e $in = Get-Content C:\\work\\demo.json | ConvertFrom-json\nPS C:\\\u003e $in | Import-SecretStore -vault demo\n```\n\nDue to how JSON data is converted, you need an interim step to save the converted data to a variable and then import from that.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdhitsolutions%2FSecretStoreBackup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdhitsolutions%2FSecretStoreBackup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdhitsolutions%2FSecretStoreBackup/lists"}