-#!/bin/sh
-set -e
-
-# Heavily inspired by <https://docs.pleroma.social/backup.html>
-
-if [ "$#" -ne 1 ]; then
- echo 'Need server IP as argument.'
- false
-fi
-server_ip="$1"
-
-config_tree_prefix="${HOME}/config/buster"
-setup_scripts_dir="${config_tree_prefix}/setup_scripts"
-
-cd "${setup_scripts_dir}"
-./prepare_to_meet_server.sh "${server_ip}"
-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_peertube.sh"'
-scp plom@"${server_ip}":~/peertube_backup.tar /home/plom/peertube_backup.tar
-./restore_peertube.sh
-