Crontab

From PKC
Revision as of 16:00, 26 March 2021 by 192.168.16.1 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.