mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 10:21:37 +00:00
12 lines
311 B
Bash
12 lines
311 B
Bash
if ! sudo DEBIAN_FRONTEND=noninteractive mysqldump -u root __database__ > __file__.sql; then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|
|
|
|
if ! DEBIAN_FRONTEND=noninteractive zip __file__.zip __file__.sql; then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|
|
|
|
if ! rm __file__.sql; then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|