|
4768.
|
|
|
The simplest way of executing the above backup script is to copy and paste the contents into a file. <filename>backup.sh</filename> for example. The file must be made executable:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/backups.xml:153(para)
|
|
4769.
|
|
|
chmod u+x backup.sh
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/backups.xml:158(command)
|
|
4770.
|
|
|
Then from a terminal prompt:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/backups.xml:160(para)
|
|
4771.
|
|
|
sudo ./backup.sh
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/backups.xml:164(command)
|
|
4772.
|
|
|
This is a great way to test the script to make sure everything works as expected.
|
|
|
|
Esta es una manera genial de probar el script para asegurarse que todo funciona como está esperado.
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/backups.xml:166(para)
|
|
4773.
|
|
|
Executing with cron
|
|
|
|
Ejecutando con cron
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/backups.xml:171(title)
|
|
4774.
|
|
|
The <application>cron</application> utility can be used to automate the script execution. The <application>cron</application> daemon allows the execution of scripts, or commands, at a specified time and date.
|
|
|
|
La utilidad <application>cron</application> puede ser utilizada para automatizar la ejecución del script. El demonio <application>cron</application> permite la ejecución de scripts, o comandos, en una hora y fecha especificada.
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/backups.xml:172(para)
|
|
4775.
|
|
|
<application>cron</application> is configured through entries in a <filename>crontab</filename> file. <filename>crontab</filename> files are separated into fields:
|
|
|
|
<application>cron</application> se configura a través de entradas en el archivo <filename>crontab</filename>. Los archivos <filename>crontab</filename> están divididos en campos:
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/backups.xml:176(para)
|
|
4776.
|
|
|
# m h dom mon dow command
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
# m h dom mon dow command
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/backups.xml:180(programlisting)
|
|
4777.
|
|
|
<emphasis>m:</emphasis> minute the command executes on, between 0 and 59.
|
|
|
|
<emphasis>m:</emphasis> minuto de ejecución de la orden entre 0 y 59.
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/backups.xml:185(para)
|