test ssh access
This commit is contained in:
11
apps/backup/src/test.py
Normal file
11
apps/backup/src/test.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import structlog
|
||||||
|
from utils.borg import get_ssh_client, list_repos
|
||||||
|
|
||||||
|
logger = structlog.get_logger()
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
with get_ssh_client() as client:
|
||||||
|
parent = "/mnt/yotta/xenon/borg/"
|
||||||
|
repos = set(list_repos(client, parent))
|
||||||
|
|
||||||
|
print(repos)
|
||||||
Reference in New Issue
Block a user