It is automatic mongodb data backup with cronjob.

Overview

npm install
Do you need my help? Visit our Discord server.

Installation

npm i mongoose-backup --save
yarn add mongoose-backup

Guide

const MongoBackuper = require('mongoose-backup');
const backuper = new MongoDBackuper({
    url: 'MONGODB_URI',
    logger: false, // default: true
    cronLocation: 'Europe/Istanbul' // default: 'Europe/Istanbul'
});

Backup with Local

backuper.localizeBackup({
    output: './_backups/', 
    per: 'minutes'
});

Backup with Github Commit

backuper.githubBackup({
    apiKey: '{GITHUB_API_KEY}',
    output: './_backups/', 
    per: 'minutes',
    settings: {
        owner: '{owner}',
        repo: '{repository_name}'
    }
});

Backup with Custom Function

backuper.customFunction({
    per: 'minutes', 
    event: (collection, content) => {
        console.log(collection, content)
        /*
            partners
            [
                {
                    "_id": "6175972494483a042c0387ce",
                    "id": "153781113468",
                    "__v": 0
                },
            ]
        */
    }
});



License

MIT License

Copyright (c) 2022 Void Development

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.




Developed with ❤️ by Void Development
You might also like...

Waypoint - Automatic Table of Contents Generator for Obsidian.md

 Waypoint - Automatic Table of Contents Generator for Obsidian.md

Waypoint - Automatic Table of Contents Generator for Obsidian.md Do you use folders to categorize your notes and wish that Obsidian would show certain

Jan 2, 2023

🚀 Create dynamic and automatic changelogs for your project!

Versionator-js Create dynamic and automatic changelogs for your project!. Installation Use the package manager npm to install versionator-js. npm inst

Jan 6, 2023

Automatic Role Adder Is Usually Used In Coding Servers Which Give Access To Codes By Subbing To Their Channel So This Helps Them To Auto Role People :)

Automatic Role Adder Setup Guide Automatic Role Adder Is Usually Used In Coding Servers Which Give Access To Codes By Subbing To Their Channel So This

Dec 23, 2022

🪄 Automatic backups for your Notion workspaces.

🪄 Automatic backups for your Notion workspaces.

Notion Backups Set up automated backups for your Notion workspaces that run on a time-basis and notify you by Slack, Discord, or email, so you never w

Aug 7, 2022

chakra-radix-colors provides radix-ui color palettes, automatic dark mode, and acessible colors to chakra-ui applications

chakra-radix-colors chakra-radix-colors provides radix-ui color palettes, automatic dark mode, and acessible colors to chakra-ui applications. About C

Dec 30, 2022

automatic poits grabber for twitch, works with all supported langauges on twitch

automatic poits grabber for twitch, works with all supported langauges on twitch

Twitch Points Grabber It’s an extension for edge, is aviable in the microsoft Edge Add-ons. This extension will collect any channel points. Settings I

Nov 28, 2022

🍺 Integrates Laravel Pint into your VSCode projects for automatic code formatting

Laravel Pint for VS Code This extension is NOT official from the Laravel team. Take a look into the official project. Integrates Laravel Pint into you

Dec 8, 2022

Texas DPS/DMV Automatic Scheduler

Texas DPS/DMV Automatic Scheduler

texas-dps-scheduler This app will find sameday or nearest 7 day appointments and schedulle it automatically! Why this project exist? It's so frustrati

Dec 30, 2022

Automatic Daily Login Rewards (Multiple Accounts); Export wish history

Automatic Daily Login Rewards (Multiple Accounts); Export wish history

Genshin Automation This tool will automatically collect Hoyolab daily login rewards. Using this tool you can: Automate your rewards on the Hoyolab web

Dec 21, 2022
Owner
Void Development
We are a team of developers and we develop projects in c#, python, php, html, css, scss, typescript, javascript, java to improve ourselves.
Void Development
Mongo Strict is a TypeScript based smart MongoDB ORM, It makes the usage of MongoDB safer, easier and faster with a better performance...

mongo-strict mongo-strict is compatible with mongo >= 5 Mongo Strict is a TypeScript-based smart MongoDB ORM, It makes the usage of MongoDB safer, eas

Mohamed Kamel 4 Sep 22, 2022
Backup of faker.js source code.

This is mirrored project from faker.js. This is created because it seemed to have been hacked. faker.js - generate massive amounts of fake data in the

dohyeon lee 2 Jan 8, 2022
Docker Extension to backup and restore docker volumes.

vackup-docker-extension This repository contains a Docker Extension that backups Docker volumes. This extension is purely a demonstration of how it'd

Felipe Cruz Martinez 34 Dec 28, 2022
A modern ebook manager and reader with sync and backup capacities for Windows, macOS, Linux and Web

简体中文 | English Koodo Reader A cross-platform ebook reader Download | Preview | Roadmap | Document Preview Feature Format support: EPUB (.epub) Scanned

Troye Guo 8.6k Dec 29, 2022
Custom endpoint to backup the PG database and upload the `.dump` to Directus.

Directus Backup Endpoint Custom Directus endpoint to backup Postgres database using pg_dump and upload the .dump file into Directus files. Usage Clone

Guilherme Oliveira 7 Dec 21, 2022
A GUI to browse and restore restic backup repositories.

A simple, cross-platform restic backup GUI for browsing and restoring restic repositories. Built with Wails2, based on leaanthony's Restoric PoC. Down

Eduard Müller / taktik 91 Dec 29, 2022
Custom operation to backup the PG database and upload the .dump to Directus.

Directus Backup Operation Custom Directus operation to backup Postgres database using pg_dump and upload the .dump file into Directus storage. Prerequ

Guilherme Oliveira 7 Dec 21, 2022
A free and open-source Automatic Account Creator (AAC) written in Javascript Stack;

A free and open-source Automatic Account Creator (AAC) written in Javascript Stack. ????‍?? Techs Front-end Vue.js Vuex-module-decorators Vuetify.js N

null 24 Dec 17, 2022
Automatic arxiv->ar5iv link replacement in Chrome.

Automatic arxiv->ar5iv link replacement in Chrome. This chrome extension will automatically replace arxiv.org/pdf/* links with ar5iv links for more we

yobi byte 44 Oct 29, 2022
An interface for an Automatic Ticket Vending Machine

ATVM-INTERFACE It is an interface for an Automatic Ticket Vending Machine. Try The Web Application! - Book your Ticket At Railway Stations, ATVMs (Aut

AMEY THAKUR 7 Apr 28, 2022