I'm having disk issues where the backup hangs due to other issues, that are in the a queue my end to be solved.
Is it possible to add 'timeout 240' to the backup commnd, so that no backup takes longer than 240 minutes, and if it does kill it (sig term seems to get the next one to run)
but I don't want it to till all the next backups.
i.e.
'set -o pipefail && timeout 240 tar cpf - --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' --one-file-system '--warning=no-file-ignored' '--directory=/var/tmp/vzdumptmp1496098' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ | pigz -p 4 >/mnt/pve/NFSSHARE/dump/vzdump-lxc-1109-2018_11_02-01_17_41.tar.dat' failed: interrupted by signal
Is it possible to add 'timeout 240' to the backup commnd, so that no backup takes longer than 240 minutes, and if it does kill it (sig term seems to get the next one to run)
but I don't want it to till all the next backups.
i.e.
'set -o pipefail && timeout 240 tar cpf - --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' --one-file-system '--warning=no-file-ignored' '--directory=/var/tmp/vzdumptmp1496098' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ | pigz -p 4 >/mnt/pve/NFSSHARE/dump/vzdump-lxc-1109-2018_11_02-01_17_41.tar.dat' failed: interrupted by signal