<commit_before>#!/bin/bash
#Usage: sh copy_wp.sh whkr
set -xv #on

#### REPLACE
source=${1:-wpmn}
now=$(date +"%Y%m%d")
#### END REPLACE

sourcezip="$source"'_'"$now"'.zip'
sourcesql="$source"'_'"$now"'.sql'

# 0. backups
(cd ~/files/backup/ ; mkdir -p $source ;)
(cd ~/webapps/$source/ ; zip -qr ~/files/backup/$source/$sourcezip * ;)
(cd ~/webapps/$source/ ; wp db export ~/files/backup/$source/$sourcesql ;)
(cd ~/webapps/$source/ ; wp export --dir=$HOME/files/backup/$source/ ;)

<commit_msg>mv backup dir inside wp-content into files/backup<commit_after>#!/bin/bash
#Usage: sh copy_wp.sh whkr
set -xv #on

#### REPLACE
source=${1:-wpmn}
now=$(date +"%Y%m%d")
#### END REPLACE

sourcezip="$source"'_'"$now"'.zip'
sourcesql="$source"'_'"$now"'.sql'

# 0. backups
(cd ~/files/backup/ ; mkdir -p $source ;)
(cd ~/webapps/$source/ ; mv wp-content/backup-* ~/files/backup/$source ;)
(cd ~/webapps/$source/ ; zip -qr ~/files/backup/$source/$sourcezip * ;)
(cd ~/webapps/$source/ ; wp db export ~/files/backup/$source/$sourcesql ;)
(cd ~/webapps/$source/ ; wp export --dir=$HOME/files/backup/$source/ ;)


{'fraction_non_alphanumeric': 0.24319419237749546, 'fraction_numerical': 0.003629764065335753, 'mean_word_length': 4.328502415458937, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1041914', 'n_tokens_mistral': 448, 'n_tokens_neox': 430, 'n_words': 89}