|
3616.
|
|
|
<emphasis>mon:</emphasis> the month the command executes on between 1 and 12.
|
|
|
|
(no translation yet)
|
|
Translated by
Adi Roiban
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:196(para)
|
|
3617.
|
|
|
<emphasis>dow:</emphasis> the day of the week the command executes on between 0 and 7. Sunday may be specified by using 0 or 7, both values are valid.
|
|
|
|
(no translation yet)
|
|
Translated by
Adi Roiban
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:201(para)
|
|
3618.
|
|
|
<emphasis>command:</emphasis> the command to execute.
|
|
|
|
<emphasis>command:</emphasis> comanda ce se execută.
|
|
Translated by
Cristi Nistor
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:206(para)
|
|
3619.
|
|
|
To add or change entries in a <filename>crontab</filename> file the <application>crontab -e</application> command should be used. Also, the contents of a <filename>crontab</filename> file can be viewed using the <application>crontab -l</application> command.
|
|
|
|
(no translation yet)
|
|
Translated by
Adi Roiban
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:211(para)
|
|
3620.
|
|
|
To execute the <application>backup.sh</application> script listed above using <application>cron</application>. Enter the following from a terminal prompt:
|
|
|
|
(no translation yet)
|
|
Translated by
Adi Roiban
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:215(para)
|
|
3621.
|
|
|
sudo crontab -e
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/backups.xml:220(command)
|
|
3622.
|
|
|
Using <application>sudo</application> with the <application>crontab -e</application> command edits the <emphasis>root</emphasis> user's crontab. This is necessary if you are backing up directories only the root user has access to.
|
|
|
|
(no translation yet)
|
|
Translated by
Adi Roiban
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:223(para)
|
|
3623.
|
|
|
Add the following entry to the <filename>crontab</filename> file:
|
|
|
|
(no translation yet)
|
|
Translated by
Adi Roiban
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:228(para)
|
|
3624.
|
|
|
![](/@@/translation-newline)
# m h dom mon dow command ![](/@@/translation-newline)
0 0 * * * bash /usr/local/bin/backup.sh
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
![](/@@/translation-newline)
# m h dom mon dow command ![](/@@/translation-newline)
0 0 * * * bash /usr/local/bin/backup.sh
|
|
Translated by
Cristi Nistor
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:231(programlisting)
|
|
3625.
|
|
|
The <application>backup.sh</application> script will now be executed every day at 12:00 am.
|
|
|
|
(no translation yet)
|
|
Translated by
Adi Roiban
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:235(para)
|