Crontab

From PKC
Revision as of 15:59, 26 March 2021 by 192.168.16.1 (talk)
Jump to navigation Jump to search

A special crontab example is shown here:

* * * * * nice -n 19 mysqldump -u wikiuser -p my_wiki --password='example' -c | nice -n 19 gzip -9 > /var/lib/mysql/backup/backup.sql.gz

Ideally, the password data should be saved in a secured file, such as ~/.my.cnf. This is to be implemented.