Difference between revisions of "Crontab"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Ideally, the password data should be saved in a secured file, such as ~/.my.cnf. This is to be implemented. | Ideally, the password data should be saved in a secured file, such as [[~/.my.cnf]]. This is to be implemented. |
Latest revision as of 16:00, 26 March 2021
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.