Fixed if condition
This commit is contained in:
parent
d6e822edc2
commit
2e1cd346cd
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ cd /var/backups/databases
|
|||
for i in $(lxc list --format csv -c n); do
|
||||
if lxc exec $i -- which mysql; then
|
||||
lxc exec $i -- mysqldump --opt --all-databases --force --events --hex-blob | cat > ${i}.sql
|
||||
if
|
||||
fi
|
||||
if lxc exec $i -- which psql; then
|
||||
lxc exec $i -- sudo -u postgres pg_dumpall | cat > ${i}.sql
|
||||
fi
|
||||
|
|
Reference in a new issue