Skip to content

Commit

Permalink
aux-scripts/backupwiki: exclude large cache table
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Nov 19, 2022
1 parent 772304e commit c42a53a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aux-scripts/backupwiki
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
cd /

tdir=$(mktemp -d)
sudo -u http pg_dump -n archcnwiki -O -x http > $tdir/db.sql
sudo -u http pg_dump -n archcnmaintwiki -O -x http > $tdir/db_maint.sql
sudo -u http pg_dump -n archcnwiki -O -x http '--exclude-table=*.l10n_cache' > $tdir/db.sql
sudo -u http pg_dump -n archcnmaintwiki -O -x http '--exclude-table=*.l10n_cache' > $tdir/db_maint.sql

cd $tdir
ln -s /var/lib/mediawiki images
Expand Down

0 comments on commit c42a53a

Please sign in to comment.