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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.