-if [ ! "$2" = "pleroma" ] && [ ! "$2" = "peertube" ]; then
- echo "Need legal service name (pleroma or peertube)."
+if [ ! "$2" = "pleroma_otp" ] && [ ! "$2" = "pleroma_source" ] && [ ! "$2" = "peertube" ]; then
+ echo "Need legal service name (pleroma_otp or pleroma_source or peertube)."
read -p'Hit Enter when you are done.' ignore
eval $(ssh-agent) && ssh-add
echo 'Enter password for root on target server next.'
read -p'Hit Enter when you are done.' ignore
eval $(ssh-agent) && ssh-add
echo 'Enter password for root on target server next.'
-ssh plom@"${server_ip}" "su -lc \"cd config/buster/setup_scripts && git pull && ./backup_app.sh ${app} ${db_name} ${dirs}\""
-scp plom@"${server_ip}":~/${app}_backup.tar /home/plom/${app}_backup.tar
+ssh plom@"${server_ip}" "su -lc \"cd config/buster/setup_scripts && git pull && ./backup_app.sh ${service} ${db_name} ${dirs}\""
+scp plom@"${server_ip}":~/${service}_backup.tar /home/plom/${service}_backup.tar