Обновить bkp_uci.sh
This commit is contained in:
@@ -13,6 +13,10 @@ ROUTER_PASS=556667777
|
||||
|
||||
BACKUP_NAME="openwrt-backup-$(date +%F).tar.gz"
|
||||
|
||||
if ! command -v sshpass &> /dev/null; then
|
||||
sudo apt update && sudo apt install -y sshpass
|
||||
fi
|
||||
|
||||
echo "[*] Creating backup on router..."
|
||||
|
||||
sshpass -p "$ROUTER_PASS" ssh -o StrictHostKeyChecking=no $ROUTER_USER@$ROUTER_HOST << 'EOF'
|
||||
|
||||
Reference in New Issue
Block a user