fixing grep pattern

This commit is contained in:
rick
2020-02-04 23:46:59 +01:00
parent 3ee301750e
commit fc5b4a3b74

View File

@@ -20,8 +20,8 @@ then
exit 2
fi
#containder without an backup ends with -0
for container in $(${lxccmd} list --format csv -c n | grep -v "-0$");
#containder without an backup ends with 0
for container in $(${lxccmd} list --format csv -c n | grep -v "0$");
do
${lxccmd} copy ${container} ${container}-backup
${lxccmd} export ${container}-backup ${backuppath}$(date +%Y_%m_%d)-lxc-${container}.tar.gz --instance-only --optimized-storage