cv4pve-autosnap does not create snapshots

Jun 7, 2022
11
1
8
Brazil
www.update.inf.br
3 days ago my script that runs in crontab runs but does not create the snapshots. If I type the script manually it creates them. Does anyone have an idea of what could be happening?

Crontab:
Code:
# Cria snapshots diarias
00 22 * * * sh /root/scripts/snapshot_diario.sh

snapshot_diario.sh
Code:
./cv4pve-autosnap --host=localhost --username=user --password=password --timestamp-format ddMMyyyy-hh_mm --vmid="all,-106" snap --label=daily- --keep=3

Syslog:
Code:
Sep 11 22:00:01 qv3wse9z72 CRON[1977440]: (root) CMD (sh /root/scripts/snapshot_diario.sh)
Sep 12 22:00:01 qv3wse9z72 CRON[2229083]: (root) CMD (sh /root/scripts/snapshot_diario.sh)
Sep 13 22:00:01 qv3wse9z72 CRON[2481805]: (root) CMD (sh /root/scripts/snapshot_diario.sh)
Sep 14 22:00:01 qv3wse9z72 CRON[2732712]: (root) CMD (sh /root/scripts/snapshot_diario.sh)
Sep 15 22:00:01 qv3wse9z72 CRON[2994201]: (root) CMD (sh /root/scripts/snapshot_diario.sh)
Sep 16 22:00:01 qv3wse9z72 CRON[3268230]: (root) CMD (sh /root/scripts/snapshot_diario.sh)
Sep 17 22:00:01 qv3wse9z72 CRON[3531110]: (root) CMD (sh /root/scripts/snapshot_diario.sh)
 
The script's full path was missing from the .sh file:

Old snapshot_diario.sh
Code:
./cv4pve-autosnap --host=localhost --username=user...

New snapshot_diario.sh
Code:
/root/scripts/cv4pve-autosnap --host=localhost --username=user...

Thanks!
 
  • Like
Reactions: fiona

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!