From 84174030a9c5a292d32f885a018dea18b4f6594e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Dost=C3=A1l?= Date: Mon, 9 Sep 2024 13:24:59 +0200 Subject: [PATCH] Move to the service account --- mikrotik_backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mikrotik_backup.sh b/mikrotik_backup.sh index f094268..93c0ce3 100755 --- a/mikrotik_backup.sh +++ b/mikrotik_backup.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash # Usage: ./mikrotik_backup -ssh -i ~/.ssh/id_ed25519-mikrotik-backup $1 /export show-sensitive > $2/$1-$(date +"%Y%m%d%H%M%S").txt +ssh -i ~/.ssh/id_ed25519-mikrotik-backup service@$1 /export show-sensitive > $2/$1-$(date +"%Y%m%d%H%M%S").txt find $2/ -name *.txt -type f -mtime +90 -exec rm '{}' \;