Last active
August 17, 2017 11:22
-
-
Save macbre/d50747b3f5fd316ce4e264bc2141d4b3 to your computer and use it in GitHub Desktop.
SUS-2371
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NS_ID=$1 | |
NS_NAME=$2 | |
DB_PARAMS=`dbparams.pl --name=diepioconception --type=slave` | |
mysql $DB_PARAMS --silent --skip-column-names -e "set charset 'latin1'; SELECT CONCAT('$NS_NAME', ':', page_title) FROM page where page_namespace = ${NS_ID}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for IMAGE in `cat images.txt` | |
do | |
echo "Moving ${IMAGE} ..." | |
echo $IMAGE > file.txt | |
run_maintenance --db=diepioconception --script='dumpBackup.php --pagelist=file.txt --full --uploads --include-files' | run_maintenance --db=diepio --script='importDump.php --report=1 --uploads' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment