Difference between revisions of "Crontab"
Jump to navigation
Jump to search
(Created page with "A special crontab example is shown here: <syntaxhighlight lang="bash"> * * * * * nice -n 19 mysqldump -u wikiuser -p my_wiki --password='example' -c | nice -n 19 gzip -9 > /v...") |
|||
Line 4: | Line 4: | ||
* * * * * nice -n 19 mysqldump -u wikiuser -p my_wiki --password='example' -c | nice -n 19 gzip -9 > /var/lib/mysql/backup/backup.sql.gz | * * * * * nice -n 19 mysqldump -u wikiuser -p my_wiki --password='example' -c | nice -n 19 gzip -9 > /var/lib/mysql/backup/backup.sql.gz | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Ideally, the password data should be saved in a secured file, such as ~/.my.cnf. This is to be implemented. |
Revision as of 15:59, 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.