To backup your install of Mayan EDMS just copy the media folder and the database content.

If you are using the default storage backend, the media should be located at /opt/mayan-edms/media/:

sudo tar -zcvf backup.tar.gz /opt/mayan-edms/media/

To dump the content of your database manager refer to the documentation chapter regarding database data “dumping”.