Tag Archives: копирование

zyxel auto backup config

#!/bin/sh
(sleep 2 ; echo “LOGIN” ; sleep 2 ;echo “PASSWORD” ; sleep 2; echo “ENABLE_PASSWORD” ;echo “sh run” ; sleep 5; quit) | telnet 192.168.1.1

Резервне копіювання

#Класика
dd if=/dev/ad0 of=ad0
gzip ad0
echo "put ad0.gz ad0.gz"|ftp -i ftp://user:pass@ftp.host

#dd over ftp
echo -e "put \"|dd if=/dev/ar0 | gzip\" ar0.iso.gz"| ftp -i ftp://user:pass@ftp.host/

### Altenative
echo -e "open ftp.host \n \n user login pass \n put \"|dd if=/dev/md2 | gzip\"md2.iso.gz"| ftp