http://wiki.mikrotik.com/wiki/Manual:Co ... figuration
Open terminal in your inbox or connect to your router via ssh, telnet ...
will print the current config
usually you use
to print just the part of config that is not routeros default.
you can add hide-sensitive if you want to omit passwords ...
export compact hide-sensitive
of export everything into a file and download it via ftp ...
export compact hide-sensitive file=myconfig
JF.