Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-4823

DIY backup example script should fail fast if DB isn't postgress

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • None
    • None

    Description

      Scenario: Stash running under linux with Mysql. If you try to run the DIY backup and your database is not postgres the script will fail keeping Stash in maintenance mode (see log below).

      Expected: The DIY backup script should stop before locking Stash.

      NOTE: DIY backup is "Do It Yourself". We give an example with postgresdb. Admins will need to customize the script according to their installations.

      sent 34.40M bytes  received 15.57K bytes  22.94M bytes/sec
      total size is 722.18M  speedup is 20.99
      [http://localhost:7990]  INFO: Prepared backup of /Users/cyoshioka/stash_home to /Users/cyoshioka/Stash_backup/stash-home/
      [http://localhost:7990]  INFO: locked with 'a380648d6cd865b40cfbfdfb9ac7436944d376e2'
      [http://localhost:7990]  INFO: backup started with '694fd71bde77f3528db8e4aee448c135cd3ad104'
      [http://localhost:7990] .INFO: Waiting for DRAINED state.done
      [http://localhost:7990]  INFO: db state 'DRAINED'
      [http://localhost:7990]  INFO: scm state 'DRAINED'
      rm: /Users/cyoshioka/Stash_backup/stash-db/: No such file or directory
      pg_dump: invalid option -- j
      Try "pg_dump --help" for more information.
      [http://localhost:7990] ERROR: Unable to backup stash to /Users/cyoshioka/Stash_backup/stash-db/
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cyoshioka CelsoA
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Backbone Issue Sync