Ignore:
Timestamp:
Oct 29, 2009, 3:40:47 AM (15 years ago)
Author:
broder
Message:

In xvm-db-backup:

  • Let the config file specify a list of tables to exclude from the backup.
Location:
trunk/packages/xvm-db-backup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/xvm-db-backup/debian/changelog

    r2259 r2536  
     1xvm-db-backup (0.0.6) unstable; urgency=low
     2
     3  * Let the config file specify a list of tables to exclude from the
     4    backup.
     5
     6 -- Evan Broder <broder@mit.edu>  Mon, 26 Oct 2009 10:14:47 -0400
     7
    18xvm-db-backup (0.0.5) unstable; urgency=low
    29
  • trunk/packages/xvm-db-backup/xvm-db-backup

    r2259 r2536  
    99mkdir -p "$(dirname $db_filename)"
    1010
     11exclude=()
     12if invirt-getconf db.backup_exclude &>/dev/null; then
     13    for i in invirt-getconf -l db.backup_exclude; do
     14        exclude=("${exclude[@]}" -T "$(invirt-getconf "db.backup_exclude.$i")")
     15    done
     16fi
    1117/usr/bin/pg_dump -U "$(invirt-getconf db.user)" \
    1218                 -h "$(invirt-getconf db.host)" \
     19                 "${exclude[@]}" \
    1320                 "$(invirt-getconf db.dbname)" | gzip - >"$db_filename"
    1421
Note: See TracChangeset for help on using the changeset viewer.