Don't dump events

This commit is contained in:
Benoit S 2021-08-01 13:24:56 +09:00
parent f169a3298a
commit 7eea370fea

View file

@ -5,7 +5,7 @@ cd /var/backups/databases
for i in $(lxc list --format csv -c n); do
if lxc exec "$i" -- which mysql >/dev/null 2>&1; then
echo "Dumping $i"
lxc exec "$i" -- mysqldump --opt --all-databases --force --events --hex-blob | cat > "${i}.sql"
lxc exec "$i" -- mysqldump --opt --all-databases --force --hex-blob | cat > "${i}.sql"
fi
if lxc exec "$i" -- which psql >/dev/null 2>&1; then
if lxc exec "$i" -- id postgres >/dev/null 2>&1; then