Hi,
I have a cron task (backup script) that I want to execute every monday, except the first monday of the month.
this is the crontab snippit:
Code:
05 09 1-7 * mon root /backup/backup_xcube -f
01 09 8-31 * mon root /backup/backup_xcube -i
But the script backup_xcube -i get executed every day!
The backup_xcube -f did
I was learning and experimenting with crontab today.
The default editor was just too difficult for me to figure out which caused me to remove my crontab by running crontab -r.
Now, when I run crontab -e and input my new cron task, nothing happens.
I suspect it's the crontab -r command I executed earlier.
Can anyone help, please?
I want to do a complete server backup.
I already have my backup script copying all of the html/php files for the web app, and the mysql databases, placing them into a .tar.gz file.
How can I add the crontab files to that backup?
Whenever I save the crontab, it goes to /tmp folder.. and when I check that folder immediately afterwards, it is empty.
hi all
i have a problem with crontab in fedora 17
a few months ago i have configure the crontab with several lines to backup some files, databases etc etc
now i want to edit the crontab but is empty
crontab -e
cronta -l
all empty
but the strange is that the backup is still runing every days
in the folder /var/spool/cron i have the user file with 0 bytes
where is my file?
I have a Script that is supposed to be execute by the crontab. How can I verify this at this moment if the task was programmed to be executed several hours ago?
I have a problem with executing crontab jobs. I guess I have everything configured properly but when i put:*/2 * * * * /var/www/site/executescript.sh in crontab -e My script is not being executed at all..
I have the following bash script:
#!/bin/bash
mysqldump -u ******** -p******** --all-databases | gzip > /home/srvlinux01/MySQLBackups/database_$(date +\%Y-\%m-\%d).sql.gz
which is located in /home/srvlinux01/MySQLBackups/ as backup.sh with the following permissions
-rwxr--r-- 1 root root 134 feb 27 12:48 backup.sh
I've set up a cronjob on sudo crontab -e to run it every d
If you want to schedule to run a command or script periodically, crontab will be a very useful tool. To add a command or a script to the crontab schedule, the command you need to use is:
sudo crontab -e
UPDATE:
The previous version of the post was the deleted, because the problem was not clear.
Original problem: Ruby scripts executed with crontab have problems with unicode strings.
Solution
When Ruby scripts are run by crontab it ignores # encoding: utf-8 directive.
To fix it you need add the -Ku flag to crontab like this.
#--------------------------------------------------------------------