One line script to backup database./usr/bin/my

One line script to backup database.

/usr/bin/mysqldump databaseName --single-transaction=TRUE --result-file=/media/mint/9cb180f1-02d1-4fdd-8bb5-2e7728497288/backup/db-`date +%Y-%m-%d`.sql --user=databaseUser --host=myhost.com --port=3306 --password=databasePassword

Établi 5y | 27 mai 2020 à 14:04:53


Connectez-vous pour ajouter un commentaire

Autres messages de ce groupe

Download youtube video and extract audio into mp3
./yt-dlp_linux $URL -x --audio-format mp3
4 mars 2023 à 19:01:10 | Quick commands
Quick convert from hex to dec

echo $((16#FF))

16 - numerical system FF - number in specified numerical system

19 nov. 2022 à 13:38:47 | Quick commands
Last 10 files based on last changes

find -ctime -2 -name "*.php" -not -path "./vendor/*" -not -path "./var/*" -not -path "./migrations/*" -printf "%T@ %Tc %p\n" | head -10

19 nov. 2022 à 13:31:26 | Quick commands
Windows - how to run program with input from file on command line

cmd.exe /c ".\main.exe < .\text.txt"

1 nov. 2020 à 20:57:35 | Quick commands
Faster way to delete large number of files on linux

rsync -a --delete empty/ x

20 août 2020 à 14:30:21 | Quick commands
Start chrome with insecure (self signed) certificates

chrome.exe --ignore-certificate-errors --unsafely-treat-insecure-origin-as-secure=https://www.devdomain.com/

17 août 2020 à 08:24:33 | Quick commands
Sort folders by their sizes

du -sBM * | sort -n

20 juil. 2020 à 18:23:43 | Quick commands