Hi !
Is it possible to do a backup configuration and download backup to a hard-drive over SSH or telnet command?
Thanks
ssh user@router export > configuration-file.txt
ssh user@router "/system backup save file=backup.bak" && scp user@router:/backup.bak ./
plink.exe -ssh -l USER -pw PASSWORD IP "/system backup save name=backup"
for second part (after &&) you can use any other file transfer available, download it using FTP, or using SFTP or even TFTP.
you can try to look up somehting like winscp, and see if that has some CLI capabilty to work w/o interface
Commands fewi gave would work on any Linux or *BSD machine (Mac OS X).
Letter 'b' means 'beta' and I noticed some bugs with this version, download latest stable version.Not working with psftp v0.62b
sshpass -p $hostpasswd ssh $hostlogin@$hostip -p $host_port "export" > $hostname"_full.rsc"
sshpass -p $hostpasswd ssh $hostlogin@$hostip -p $host_port "export compact" > $hostname"_compact.rsc"