From 08fa86e905470456387c9129e89012dae11bb6dc Mon Sep 17 00:00:00 2001 From: tim Date: Thu, 26 Sep 2024 16:56:17 +0200 Subject: [PATCH] Fix dbadmin backup file and add lazygit alias --- bin/bin/dbbackup.sh | 4 ++-- zsh/.aliases | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/bin/dbbackup.sh b/bin/bin/dbbackup.sh index 2445eb3..c6dc8cd 100755 --- a/bin/bin/dbbackup.sh +++ b/bin/bin/dbbackup.sh @@ -4,7 +4,7 @@ database=$1 server=$2 echo "Backing up ${database}@${server}" -command="cd dbmanager && ./bin/console db:backup ${database}" +command="cd dbmanager && ./bin/console app:db:backup ${database}" name=$(ssh www-data@${server} "${command}" | awk -F'-|\\.def' '{split($1,a," ")}$0=a[4]') echo "Backup filename: ${name}" @@ -13,4 +13,4 @@ echo "Copying ${name} to ${local_dir}" scp -C www-data@${server}:/var/www/dbmanager/${name} "${local_dir}" echo "Purging and restoring back to ${database}" -cd ${local_dir} && ./bin/console db:purge ${database} && ./bin/console db:restore ${database} ${name} +cd ${local_dir} && ./bin/console app:db:purge ${database} && ./bin/console app:db:restore ${database} ${name} diff --git a/zsh/.aliases b/zsh/.aliases index e63989b..87a09b5 100644 --- a/zsh/.aliases +++ b/zsh/.aliases @@ -11,6 +11,7 @@ alias gs='git status' alias gdq='screen -d -m streamlink https://www.twitch.tv/gamesdonequick best -p mpv' alias f=z +alias lg=lazygit alias fixtime='sudo hwclock --hctosys' alias sc='./bin/console'