Remove secrets and auto-start actions and update imports
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user