Remove secrets and auto-start actions and update imports
Some checks failed
Ansible Lint Check / check-ansible (push) Successful in 4s
Nix Format Check / check-format (push) Successful in 1m14s
Python Lint Check / check-python (push) Failing after 6s

This commit is contained in:
2025-09-23 13:59:48 +00:00
parent 40063cfe6b
commit 8971d087a3
14 changed files with 58 additions and 326 deletions

View File

@@ -1,12 +1,14 @@
#!/usr/bin/env python3
"""Generate export commands for Borg environment variables."""
import os
import sys
import subprocess
# Add the helpers directory to the path
sys.path.append(os.path.join(os.path.dirname(__file__), "..", "helpers"))
from functions import printfe
# Add the bin directory to the path
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
from helpers.functions import printfe
def get_borg_passphrase():
@@ -73,18 +75,15 @@ def main():
print()
printfe("yellow", "Or copy and paste these exports:")
print()
# Output the export commands
for export_cmd in exports:
print(export_cmd)
print()
printfe("cyan", "📋 Borg commands (use with sudo -E):")
printfe("white", " sudo -E borg list # List all backups")
printfe("white", " sudo -E borg info # Repository info")
printfe("white", " sudo -E borg list ::archive-name # List files in backup")
printfe("white", " sudo -E borg mount . ~/borg-mount # Mount as filesystem")
return 0