Is it possible to execute a command in a container before backups?
Сan be using vzdump hook (--script)?
I want to execute 2 commands:
pct exec $3 -- psql -c \"CHECKPOINT;\""
pct exec $3 -- sync
before backups.
or for this vzdump hook (--script) is not suitable?
I do not understand PERL, but example vzdump-hook-script.pl in this language.
in the example
my $phase = shift;
my $vmid = shift;
How to get vmid in bash?
I'm trying to do this:
test.sh
#!/bin/bash
/mnt/.../test2.sh&
test2.sh
#!/bin/bash
sleep 10
echo "test" > /root/test.txt
104.conf
lxc.hook.pre-start: /mnt/.../test.sh
In this case, the container wait for 15 seconds, creates a file, and then starts.
104.conf
lxc.hook.pre-start...
What open source solutions are available to use "ZFS over iSCSI with Proxmox"?
Will FreeNas 9 or 10 work for "ZFS over iSCSI"?
What solutions are on Linux?