summaryrefslogtreecommitdiff
path: root/backupfiles.sh
blob: 97d486001f515100c365d03b21eadca4f07e839a (plain)
1
2
3
4
5
6
#!/usr/bin/env bash
test "$(hostname)" = "tomsmeding.com" || { echo "Not on server...?"; exit 1; }
cp --version >/dev/null 2>&1 || { echo "not GNU cp"; exit 1; }
cd ~/webserver
mkdir -p ../backups_webserver
find modules/zelfoverhoor -type f -name '*.json' | grep -v 'accounts.json' | xargs cp -v -t ../backups_webserver