feat: copy portable export to secondary backup

This commit is contained in:
thePR0M3TH3AN
2025-07-03 21:50:34 -04:00
parent 4c17d12762
commit 03561ce970
2 changed files with 36 additions and 6 deletions

View File

@@ -82,6 +82,7 @@ def export_backup(
json_bytes = json.dumps(wrapper, indent=2).encode("utf-8")
dest_path.write_bytes(json_bytes)
os.chmod(dest_path, 0o600)
backup_manager._create_additional_backup(dest_path)
if publish:
encrypted = vault.encryption_manager.encrypt_data(json_bytes)