Kod: Zaznacz cały
20 17 * * * tar -zcvf /home/pietrek/Dropbox/Testujemy/backup_www_$(date +%d.%B.%y-%H:%M).tar.gz /var/www/
Kod: Zaznacz cały
20 17 * * * tar -zcvf /home/pietrek/Dropbox/Testujemy/backup_www.tar.gz /var/www/
Kod: Zaznacz cały
20 17 * * * tar -zcvf /home/pietrek/Dropbox/Testujemy/backup_www_$(date +%d.%B.%y-%H:%M).tar.gz /var/www/
Kod: Zaznacz cały
20 17 * * * tar -zcvf /home/pietrek/Dropbox/Testujemy/backup_www.tar.gz /var/www/
Kod: Zaznacz cały
The ``sixth'' field (the rest of the line) specifies the command to be
run. The entire command portion of the line, up to a newline or %
character, will be executed by /bin/sh or by the shell specified in the
SHELL variable of the crontab file. Percent-signs (%) in the command,
unless escaped with backslash (\), will be changed into newline charac‐
ters, and all data after the first % will be sent to the command as
standard input. There is no way to split a single command line onto
multiple lines, like the shell's trailing "\".