mirror of
https://github.com/Corsinvest/cv4pve-autosnap.git
synced 2026-04-25 08:55:49 +03:00
[GH-ISSUE #111] [BUG] its still have snap-job-start&end phases in hook? #94
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-autosnap#94
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Lxeon on GitHub (Dec 23, 2025).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/111
What happened?
It seems that these two stages are not present.
only snap-create-pre and snap-create-post.
Expected behavior
i hope run the like this.
/root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh snap-job-start && /usr/local/bin/cv4pve-autosnap --host=192.168.100.254 --api-token='backup@pam!cv4pve-autosnap=xxx' --vmid=@all snap --label=weekly --keep=4 && /root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh snap-job-end
Command used
Log output
cv4pve-autosnap Version
1.17.0+8c1dc56c442f3dbd403ff2ba7ca6495ba407d52d
Proxmox VE Version
9.1
Last working version
No response
Operating System
Linux
Pull Request
@franklupo commented on GitHub (Dec 23, 2025):
@Lxeon I don't understand what you mean.
@franklupo commented on GitHub (Dec 23, 2025):
Sorry, I created a new release https://github.com/Corsinvest/cv4pve-autosnap/releases/tag/v1.18.0
@Lxeon commented on GitHub (Dec 23, 2025):
sorry for my bad english.
i mean, is there a phase that executes once before the whole snapshot and once after the whole snapshot finished?
i find the phases here:
snap-job-start&end phase might be what I want.
After checking the logs, I found that it was not executing.(no log for snap-job-start)
@franklupo commented on GitHub (Dec 23, 2025):
what version are you using?
@franklupo commented on GitHub (Dec 23, 2025):
I just ran it
@Lxeon commented on GitHub (Dec 23, 2025):
you are right, i upgrade to 1.18, now its work.
VM execution 00:00:00.6031591
CV4PVE_AUTOSNAP_PHASE: snap-job-end
CV4PVE_AUTOSNAP_VMID:
CV4PVE_AUTOSNAP_VMNAME:
CV4PVE_AUTOSNAP_VMTYPE:
CV4PVE_AUTOSNAP_LABEL: weekly
CV4PVE_AUTOSNAP_KEEP: 4
CV4PVE_AUTOSNAP_SNAP_NAME:
CV4PVE_AUTOSNAP_VMSTATE: 0
CV4PVE_AUTOSNAP_DURATION: 0.7411601
CV4PVE_AUTOSNAP_STATE: 1
CV4PVE_AUTOSNAP_DEBUG: 1
CV4PVE_AUTOSNAP_DRY_RUN: 0
Run command: /root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh
Total execution 00:00:00.7411601
@franklupo commented on GitHub (Dec 23, 2025):
If you want, add a star on my project