How to output print to a PC file?

Backup Mikrotik config to Subversion/SVN repository via SSH

sshpass -p $sshpassword ssh $sshuser@$sshhost -p $sshport export >$current_export_name

This make an export in to local file on your Linux PC.