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'