Export in script bombing after update to 6.48.2

It’s possible to have the full export script, just for curiosity?

Some other methods for backup or for backup completly the Routerboard:
http://forum.mikrotik.com/t/router-crashes-are-wiping-the-config/149189/7