| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
rclone backup/archiving simpler, efficient, and graceful
mva is a CLI tool that makes file archiving and cloud backup as simple as moving files to a directory. It automatically compresses, timestamps, and uploads files to configured rclone destinations using a simple mv operation.
# Clone and install
git clone <repository>
cd mv-archive-dev
npm install
npm run build
# Make globally available (optional)
npm linkInitialize configuration:
mva initEdit configuration at ~/.mva/config.yml:
directories:
- directory: "/srv/mva/gdrive"
at: "0 2 * * *" # Daily at 2 AM
format: "{humanTime}-{filename}.{ext}"
compress: "tar.gz"
destination: "gdrive:archive"Setup watch directories:
mva setup-directoriesStart the daemon:
mva startArchive files by moving them:
mv document.pdf /srv/mva/gdrive/
mv backup.tar.gz /srv/mva/azure/archive/Initialize mva configuration file at ~/.mva/config.yml with default settings.
Start the mva daemon to watch configured directories. Files moved to these directories will be automatically archived.
Manually archive files to a specific destination:
mva archive file1.txt file2.pdf -d gdriveShow current configuration and status.
Create all watch directories defined in the configuration.
The configuration file is located at ~/.mva/config.yml:
directories:
- directory: "/srv/mva/gdrive" # Watch directory
at: "0 2 * * *" # Cron schedule
format: "{humanTime}-{filename}.{ext}" # Archive filename format
compress: "tar.gz" # Compression method
destination: "gdrive:archive" # rclone destination
- directory: "/srv/mva/azure/archive"
at: "0 3 * * *"
format: "{humanTime}-{filename}.{ext}"
compress: "tar.gz"
destination: "azure:backup"# Install rclone
curl https://rclone.org/install.sh | sudo bash
# Configure your cloud providers
rclone config
# Test connection
rclone lsd myremote:# Start daemon
mva start
# Archive a document (in another terminal)
mv ~/Documents/report.pdf /srv/mva/gdrive/
# → Uploads as "2025-08-02_14-30-00-report.tar.gz" to gdrive:archive# Archive specific files immediately
mva archive *.log -d gdrivedirectories:
- directory: "/srv/mva/daily"
at: "0 2 * * *" # Daily
destination: "gdrive:daily-backup"
- directory: "/srv/mva/weekly"
at: "0 3 * * 0" # Weekly (Sundays)
destination: "s3:weekly-archive"# Install dependencies
npm install
# Run in development mode
npm run dev
# Build for production
npm run build
# Run built version
npm start# Test rclone connection
rclone lsd your-remote:
# Check rclone config
rclone config showEnsure the user running mva has:
ISC
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
| Back | FazBrowse Home | New Git URL |