X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fdinstall.functions;h=5f8221044c2392687574aaf24216cb01c03eeaeb;hb=f1e3abea4079e50b95c189fc00e06b119f24c165;hp=587df1b5d07bc3f151db18590c37cba8ede1dcfd;hpb=1eb18077dfc10f7ba80a94fc2e85c79b944e4d61;p=dak.git diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index 587df1b5..5f822104 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -59,25 +59,6 @@ function pgdump_post() { #ln -sf $base/backup/dumpall_$POSTDUMP currentall } -# Load the dak-dev projectb -function pgdakdev() { - # Make sure to unset any possible psql variables so we don't drop the wrong - # f****** database by accident - local PGDATABASE - unset PGDATABASE - local PGHOST - unset PGHOST - local PGPORT - unset PGPORT - local PGUSER - unset PGUSER - cd $base/backup - echo "drop database projectb" | psql -p 5434 template1 - #cat currentall | psql -p 5433 template1 - createdb -p 5434 -T template1 projectb - fgrep -v '\connect' current | psql -p 5434 projectb -} - # Updating various files function updates() { log "Updating Bugs docu, Mirror list and mailing-lists.txt" @@ -527,10 +508,10 @@ function compress() { find -maxdepth 1 -mindepth 1 -type f -name 'dump_pre_*' -mtime +2 -print0 | xargs -0 --no-run-if-empty rm find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' \! -name '*.xz' -mmin +720 -print0 \ - | xargs --no-run-if-empty -0 -P4 -n16 xz -9v + | xargs --no-run-if-empty -0 -P4 -n1 xz -9v find -maxdepth 1 -mindepth 1 -type f -name "dumpall_*" \! -name '*.bz2' \! -name '*.gz' \! -name '*.xz' -mmin +720 \ - | xargs --no-run-if-empty -0 -P4 -n16 xz -9v + | xargs --no-run-if-empty -0 -P4 -n1 xz -9v finddup -l -d $base/backup }