Added backup routine for JSON files