Browse Source

Don't dump events

lxd-local
Benoît S. 2 months ago
parent
commit
7eea370fea
  1. 2
      files/lxd-databases.sh

2
files/lxd-databases.sh

@ -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

Loading…
Cancel
Save