All Projects β†’ dotangad β†’ nakal

dotangad / nakal

Licence: other
A MySQL backup tool for Google Sheets, written in Node.js.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to nakal

devops-notes
My technical documentation in the SRE / DevOps paradigm.
Stars: ✭ 19 (+35.71%)
Mutual labels:  databases
laravel-backup-shield
πŸ”’Password protection (and encryption) for your laravel backups.
Stars: ✭ 32 (+128.57%)
Mutual labels:  backup
gasper
Gasper is a CLI for safe, privacy-aware file storage based on Shamir's Secret Sharing
Stars: ✭ 37 (+164.29%)
Mutual labels:  backup
openHAB-utils
Utilities for use with openHAB
Stars: ✭ 14 (+0%)
Mutual labels:  backup
urbackup-docker
πŸ’Ύ docker container for urbackup-server
Stars: ✭ 15 (+7.14%)
Mutual labels:  backup
OpenBackupExtractor
A free program for extracting data (like voicemails) from iPhone and iPad backups.
Stars: ✭ 111 (+692.86%)
Mutual labels:  backup
pydbantic
A single model for shaping, creating, accessing, storing data within a Database
Stars: ✭ 137 (+878.57%)
Mutual labels:  databases
sheets-database
Library to help use a Google Sheet as a database
Stars: ✭ 36 (+157.14%)
Mutual labels:  google-sheets
bonobo-sqlalchemy
PREVIEW - SQL databases in Bonobo, using sqlalchemy
Stars: ✭ 23 (+64.29%)
Mutual labels:  databases
gsheet to arb
Import translations (ARB/Dart) from Google Sheets
Stars: ✭ 21 (+50%)
Mutual labels:  google-sheets
minio-rclone-webdav-server
A @rclone served WebDAV server with @minio as the s3 storage backend docker example
Stars: ✭ 17 (+21.43%)
Mutual labels:  backup
konsave
Konsave lets use save your Linux customization and restore them very easily!
Stars: ✭ 336 (+2300%)
Mutual labels:  backup
BadgeHub
Raspberry Pi, Dymo Turbo Writer 450 badge printing service that logs user information such as name and email and prints a name badge and QR code associated with that information.
Stars: ✭ 25 (+78.57%)
Mutual labels:  google-sheets
mongodb-atlas-backup
The human way to mongodump and mongorestore your MongoDB Atlas cluster
Stars: ✭ 29 (+107.14%)
Mutual labels:  backup
fingerprint
Fingerprint is a simple tool that can be used to verify the contents of a directory.
Stars: ✭ 71 (+407.14%)
Mutual labels:  backup
minecraft-backup
Backup script for Minecraft servers on Linux. Supports screen, tmux, and RCON connections. Supports tar and restic backup format.
Stars: ✭ 140 (+900%)
Mutual labels:  backup
Mosque-Screen
Chat: https://discord.gg/CG7frj2 - Email: [email protected]. We do not provide any support, this is a volunteer-based project therefore we cannot commit to any time to resolve local issues.
Stars: ✭ 54 (+285.71%)
Mutual labels:  google-sheets
awesome-placekey
😎 Awesome lists about awesome placekey related frameworks, libraries, software, tools, and resources
Stars: ✭ 21 (+50%)
Mutual labels:  google-sheets
gosure
File integrity implemented in Go
Stars: ✭ 16 (+14.29%)
Mutual labels:  backup
snap2
Advanced tooling for puzzle hunts: grid/crossword parser, crossword tool to fill in the grid when entering answers, heavy-duty pattern/anagram solver, and more
Stars: ✭ 14 (+0%)
Mutual labels:  google-sheets

nakal - Backup MySQL databases to Google Sheets

A MySQL backup tool for Google Sheets, written in Node.js.

Why

At Exun Clan, my school's CS club, we usually build an app and take it down after a month or two. However, we need the data somewhere easily accessible by people who don't know SQL for much longer than that. We already use Google Sheets for a lot of internal tracking so this felt like the natural thing to do.

How

I'd never written a CLI with Node.js before but I'd heard good things about yargs so I decided to use it. It was easy enough to setup and didn't get in the way, 10/10. I used the google-spreadsheet package to edit spreadsheets.

I started by writing a function to fetch tables and their contents from the database and another function to put those into a Google Sheet. The user needs to make the Google Sheet, share it with the client email and give me the sheetId and the functions populate that sheet with data.

Installation

For now, you'll have to clone the repository and install the command manually. I'll get around to putting this on NPM someday.

git clone https://github.com/dotangad/nakal
cd nakal
npm install
npm link

You should now be able to run the nakal command from anywhere.

Getting credentials from Google

  1. Head to console.developers.google.com.
  2. Create a new project from the select project modal in the top left corner of the screen.
  3. Search for the Google Sheets API and enable it.
  4. Go to the Credentials tab (from the navbar: APIs & Services > Credentials).
  5. Create a service account (Create credentials > Service Account) and download the credentials.json file.

Usage

Usage: nakal <options> <sheet_id>

Options:
      --help         Show help                                         [boolean]
      --version      Show version number                               [boolean]
  -h, --host         MySQL host                  [string] [default: "127.0.0.1"]
  -u, --user         MySQL Username                          [string] [required]
  -p, --pass         MySQL Password                                     [string]
      --db           MySQL Database                          [string] [required]
  -c, --credentials  Path to credentials.json file for access to Google's APIs.
                                                             [string] [required]

A MySQL backup tool for Google Sheets.

Remember to share your Sheet with the client email in your credentials.json file before running the CLI.

License

MIT License

Copyright (c) 2021 Angad Singh

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].