Backup/restore grafana server

I trried copying /etc/grafana with file grafana.ini and /var/lib/grafana folder with grafana.db and provided 777 permission , I am able to login to grafana but not able to find any of my dashboards or DB config