#!/bin/bash set -e if [[ "$1" = "" ]]; then echo missing name exit fi test -d out && rm -r out set -x python3 1_graph.py conf_$1.py python3 2_filter.py conf_$1.py python3 3_archive.py conf_$1.py rsync -r -e 'ssh -p23' --progress out/file/ memorial:fediverse/$1/file/ rsync -r -e 'ssh -p23' --progress --ignore-existing out/note/ memorial:fediverse/$1/note/ rsync -r -e 'ssh -p23' --progress out/user/ memorial:fediverse/$1/user/ python3 4_delete.py conf_$1.py