feat: copy portable export to secondary backup

This commit is contained in:
thePR0M3TH3AN committed 2025-07-03 21:50:34 -04:00
1 parent 4c17d12762
commit 03561ce970
2 files changed
+36 -6

No files matched your search

+1
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)