4 # Heavily inspired by <https://docs.pleroma.social/backup.html>
6 if [ "$#" -ne 1 ]; then
7 echo 'Need server IP as argument.'
12 config_tree_prefix="${HOME}/config/buster"
13 setup_scripts_dir="${config_tree_prefix}/setup_scripts"
15 cd "${setup_scripts_dir}"
16 ./prepare_to_meet_server.sh "${server_ip}"
17 eval $(ssh-agent) && ssh-add
18 read -p'Hit Enter when you are done.' ignore
19 ssh plom@"${server_ip}" 'su -lc "cd config && git pull && cd config/buster/setup_scripts && ./backup_pleroma.sh"'
20 scp plom@"${server_ip}":~/pleroma_backup.tar /home/plom/pleroma_backup.tar