- or download this
# cd /tmp
# dbcfg_export -o /tmp/filename.cfg -p "password"
# tar -C /usr/local/cdcs -zcvf - ipsec.d openvpn-keys ssh-hostkeys | o
+penssl des3 -salt -k "password" | dd of=/tmp/vpn.des3
# tar -zcvf /opt/cdcs/upload/filename.cfg.tar.gz filename.cfg vpn.des3
- or download this
root:/# cd /tmp
root:/tmp# dbcfg_export -o /tmp/test.cfg -p ""
root:/tmp# tar -C /usr/local/cdcs -zcvf - ipsec.d openvpn-keys ssh-hos
+tkeys | openssl des3 -salt -k "" | dd of=/tmp/vpn.des3
...
root:/tmp# tar -zcvf /opt/cdcs/upload/test.cfg.tar.gz test.cfg vpn.des
+3
test.cfg
vpn.des3
- or download this
#!/usr/bin/perl -w
...
sauvegarde_netcomm ('192.168.200.62' , 'test2');
- or download this
root:/tmp# ll /tmp/t*
-rw-r--r-- 1 root root 31331 Apr 28 13:55 /tmp/test.cfg
-rw-r--r-- 1 root root 31331 Apr 28 13:58 /tmp/test2.cf
+g
...
root:/tmp# ll /opt/cdcs/upload/
-rw-r--r-- 1 root root 12548 Apr 28 13:55 test.cfg.tar.
+gz
-rw-r--r-- 1 root root 20 Apr 28 13:58 test2.cfg.tar
+.gz