Cronjobs on host

abkrim

Well-Known Member
Sep 5, 2009
97
1
48
Zamora (España)
castris.com
I'm lost

Usually use cronjob -e for root's cron jobs

But on Proxmox 1.3 machine don't work

Also, put a Backup Jobs but I don't see on root's cron jobs.

Where is teh correct place for cronjobs on Poxmox?

 
Opp Write wrong.

I Use this command and write comand with correct type.

But don't run...

# crontab -e
Code:
46 0 * * * /etc/webmin/cron/tempdelete.pl
5 4 * * * /usr/local/scripts/backupvz.cron

Any command run at time config.

/usr/local/scripts/backupvz.cron whit permision and if execute on shell run well.
 
Also.. in this machine create a Backups on web interface on Proxmox.

Where put Proxmox this jobs?
 
Code:
[B]Oct 15 04:05:01 vz001 /USR/SBIN/CRON[12661]: (root) CMD (/usr/local/scripts/backupvz.cron)[/B]
Oct 15 04:17:01 vz001 /USR/SBIN/CRON[17660]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Oct 15 05:17:01 vz001 /USR/SBIN/CRON[11807]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Oct 15 06:17:01 vz001 /USR/SBIN/CRON[4099]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)

But don't run...

297237 4 -rwxr-xr-x 1 root staff 1225 oct 15 11:32 /usr/local/scripts/backupvz.cron

Code:
cat  /usr/local/scripts/backupvz.cron
#!/bin/sh
ionice -c3 -p$$

# Nutriberia
vzdump --compress --mailto fenzen@gmail.com 102
rsync -avv --progress -e "ssh -i .ssh/vz002 -p24" /var/lib/vz/vzdump/backups001/  root@vz002.XXXXXX.XXX:/var/lib/vz/vzdump/backups001/

Of course dirs destination exists and /usr/local/scripts/backupvz.cron execute from shell whiout problems...
 
Don't check ps.

It's at 04:00 AM GMT +2, and I life on GMT 0

Only check results...

Any backup made, and not email send to me..

If execute on shell work fine...
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!