Changeset 1711 for trunk


Ignore:
Timestamp:
Nov 17, 2008, 9:03:24 PM (16 years ago)
Author:
broder
Message:

Write out the list of running VMs to AFS as well as the database backup

Location:
trunk/packages/xvm-db-backup
Files:
2 edited

Legend:

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

    r1656 r1711  
     1xvm-db-backup (0.0.2) unstable; urgency=low
     2
     3  * Backup a list of currently running VMs as well as the database
     4
     5 -- Evan Broder <broder@mit.edu>  Mon, 17 Nov 2008 21:02:41 -0500
     6
    17xvm-db-backup (0.0.1) unstable; urgency=low
    28
  • trunk/packages/xvm-db-backup/xvm-db-backup

    r1657 r1711  
    66aklog sipb
    77
    8 filename="/mit/xvm/backups/db/prod/$(date +%Y-%m-%d-%H-%M.sql.gz)"
     8db_filename="/mit/xvm/backups/db/prod/$(date +%Y-%m-%d-%H-%M.sql.gz)"
    99
    1010/usr/bin/pg_dump -U "$(invirt-getconf db.user)" \
    1111                 -h "$(invirt-getconf db.host)" \
    12                  "$(invirt-getconf db.dbname)" | gzip - >"$filename"
     12                 "$(invirt-getconf db.dbname)" | gzip - >"$db_filename"
     13
     14running_filename="/mit/xvm/log/running/prod/$(date +%Y-%m-%d-%H-%M.gz)"
     15
     16remctl "$(invirt-getconf remote.hostname)" web listvms | gzip - >"$running_filename"
Note: See TracChangeset for help on using the changeset viewer.