scrubber/go.sh

20 lines
468 B
Bash
Raw Normal View History

2024-10-04 16:43:40 -06:00
#!/bin/bash
2024-09-04 05:47:13 -06:00
2024-10-04 16:43:40 -06:00
set -e
if [[ "$1" = "" ]]; then
echo missing name
exit
fi
2024-09-04 05:47:13 -06:00
test -d out && rm -r out
2024-10-04 16:43:40 -06:00
set -x
2024-09-04 05:47:13 -06:00
python3 1_graph.py conf_$1.py
python3 2_filter.py conf_$1.py
2024-10-04 16:43:40 -06:00
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