Skip to content

Commit

Permalink
Move to the service account
Browse files Browse the repository at this point in the history
  • Loading branch information
pdostal committed Sep 9, 2024
1 parent 89a5b73 commit 8417403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mikrotik_backup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# Usage: ./mikrotik_backup <router-ip> <backup-dir>
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 '{}' \;

0 comments on commit 8417403

Please sign in to comment.