1.0.0 • Published 4 months ago

dir-auto-backup v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

Auto Directory Backup Tool

Overview

A simple Node.js tool to automatically back up a directory to a specified backup folder, creating a timestamped backup.

Features

  • Recursively copies all files and subdirectories.
  • Creates timestamped backup folders to prevent overwriting.
  • Uses ANSI color codes for log messages (no external dependencies).

Installation

No installation required, just clone the repository and run.

npm install dir-auto-backup

Usage

Run the script with:

node index.js <source_directory> <backup_directory>

Example:

node index.js /home/user/documents /home/user/backup

Testing

Run the test script:

node test.js