1 vote
Backup script that saves all vaults, including attachments, as an .rdm file to serve as an emergency backup.
Hi dan2,
Thanks for the suggestion! You can already do this with our PowerShell module and an application identity. This script saves each vault, including its credentials and attachments, to its own encrypted .rdm file:
New-RDMWorkspace -Cloud -Name 'CloudBackup' -Server 'https://yourcompany.devolutions.app' -Username '<application name>' -ScriptingTenantID '<application key>' -ScriptingApplicationPassword '<application secret>' | Set-RDMCurrentWorkspace
$password = Read-Host -AsSecureString 'Backup password'
foreach ($vault in Get-RDMVault) {
Set-RDMCurrentVault -ID $vault.ID
Get-RDMEntry | Export-RDMEntry -RDM -Path "D:\Backups\$($vault.Name).rdm" -Password $password -IncludeCredentials -IncludeAttachements
}A few things to know:
These are Remote Desktop Manager commands, and their integration with Devolutions Cloud is still a work in progress. We recommend checking a backup once by importing it into Remote Desktop Manager.
The application identity can only back up the vaults it can access. Give it access to each vault you want, with permission to export, edit entries and view passwords.
Keep the backup password somewhere safe, since the files can't be opened without it.
This solution only covers shared vaults. User vaults aren't included. Do you need the user vaults in the backup too, or are the shared vaults enough?
Let us know if this solution works for you, and don't hesitate to reach out if you need more help!