valerianpereira / backup-action Goto Github PK
View Code? Open in Web Editor NEW๐๏ธ Github Action to backup MySQL, MongoDB and PostgreSQL databases
Home Page: https://github.com/marketplace/actions/backup-action
License: MIT License
๐๏ธ Github Action to backup MySQL, MongoDB and PostgreSQL databases
Home Page: https://github.com/marketplace/actions/backup-action
License: MIT License
I'm trying to pass args to mysqldump (--no-tablespaces
to avoid err: mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces
) but Drone SSH tries to use them instead.
My action:
- uses: valerianpereira/backup-action@master
with:
[...]
args: --no-tablespaces
Output:
๐ Loading the ssh key...
Done!! ๐ป
๐๏ธ Backup type: db
DB type: mysql
๐โโ๏ธ Running commands over ssh...
Incorrect Usage. flag provided but not defined: -no-tablespaces
________ _________ _________ ___ ___
\______ \_______ ____ ____ ____ / _____// _____// | \
| | \_ __ \/ _ \ / \_/ __ \ ______ \_____ \ \_____ \/ ~ \
| | \ | \( <_> ) | \ ___/ /_____/ / \/ \ Y /
/_______ /__| \____/|___| /\___ > /_______ /_______ /\___|_ /
\/ \/ \/ \/ \/ \/
[...]
I get the error (warning?) load pubkey "/github/home/.ssh/deploykey": invalid format
during syncing.
The sync seems to succeed regardless, though.
Full output:
[...]
==============================================
โ
Successfully executed commands to all host.
==============================================
๐ Sync the mysql backups... ๐
load pubkey "/github/home/.ssh/deploykey": invalid format
Warning: Permanently added '207.154.209.XXX' (ECDSA) to the list of known hosts.
receiving incremental file list
mysql-ghost_production.1908211222.sql.gz
0 0% 0.00kB/s 0:00:00
616.55K 100% 1.25MB/s 0:00:00 (xfr#1, to-chk=0/1)
sent 51 bytes received 603.34K bytes 172.40K bytes/sec
total size is 616.55K speedup is 1.02
๐ค Whats the location of backups...
/github/workspace/backups
๐ Show me backups... ๐
total 604K
-rw-r--r-- 1 *** *** 602.1K Aug 19 12:22 mysql-ghost_production.1908211222.sql.gz
Since the Input variable db_name is required it would be convenient to configure the option to make a backup of all databases at the same time. It's cool that you can add multiple databases like this db_name: global,users,staff
but it would be cool to do all with one command.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.