Search results

  1. A

    Is it possible to execute a command in a container before backups?

    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?
  2. A

    How to get vmid in vzdump hook script?

    I know that :) got so: #!/bin/bash vmid=$3 if [ "$1" == "backup-start" ]; then echo $vmid >> /root/vzdump-test.log fi
  3. A

    How to get vmid in vzdump hook script?

    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?
  4. A

    Is it possible to run the script on the host after the container starts?

    so works: test.sh bash -s < /mnt/.../test2.sh > /dev/null 2>&1 & 104.conf lxc.hook.pre-start: /mnt/.../test.sh
  5. A

    Is it possible to run the script on the host after the container starts?

    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...
  6. A

    What open source solutions are available to use "ZFS over iSCSI with Proxmox"?

    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?