diff --git a/bin/bin/blbackup b/bin/bin/blbackup new file mode 100755 index 0000000..ef6a241 --- /dev/null +++ b/bin/bin/blbackup @@ -0,0 +1,5 @@ +#/bin/sh + +name=$(ssh www-data@cemophora 'cd dbmanager && ./bin/console db:backup bluelinked' | awk -F'-|\\.def' '{split($1,a," ")}$0=a[4]') +scp -C www-data@cemophora:/var/www/dbmanager/${name} ~/projects/dbmanager +cd ~/projects/dbmanager && ./bin/console db:restore bluelinked ${name}