UNPKG

atlas-mcp-server

Version:

ATLAS (Adaptive Task & Logic Automation System): An MCP server enabling LLM agents to manage projects, tasks, and knowledge via a Neo4j-backed, three-tier architecture. Facilitates complex workflow automation and project management through LLM Agents.

27 lines (26 loc) 984 B
/** * @fileoverview Main entry point for the Neo4j Backup and Restore Service. * This module exports the primary functions for database backup and restore operations. * @module src/services/neo4j/backupRestoreService/index */ import { _exportDatabase } from "./exportLogic.js"; import { _importDatabase } from "./importLogic.js"; /** * Exports the current Neo4j database to a timestamped directory. * Manages backup rotation. * @returns {Promise<string>} Path to the backup directory. * @throws Error if export fails. */ export const exportDatabase = async () => { return _exportDatabase(); }; /** * Imports data from a specified backup directory into the Neo4j database, * overwriting existing data. * @param {string} backupDirInput - Path to the backup directory. * @returns {Promise<void>} * @throws Error if import fails or backup directory is invalid. */ export const importDatabase = async (backupDirInput) => { return _importDatabase(backupDirInput); };