Пример #1
0
    def task_dump(self, localfile, withAttachments=True):
        """
        Create a tarball containing all information not currently stored in
        version control and download it to the given C{localfile}.

        C{localfile} is a path on your local system.

        Keep it in sync with task_restore.

        For it to work you need your SSH public key added to
        /srv/trac/.ssh/authorized_keys
        """
        with settings(user=self.serviceUser):
            with utils.tempfile() as temp:
                postgres.dumpToPath('trac', temp)

                files = {
                    'db.dump': temp,
                }

                if withAttachments is True:
                    #files['attachments'] = 'attachments'
                    files['trac-attachments'] = 'config/trac-env/files/attachments'

                archive.dump(files, localfile)
Пример #2
0
 def task_dump(self, dump):
     """
     Dump non-versioned resources.
     """
     with settings(user=self.serviceUser):
         archive.dump({
             'data': 'data',
             }, dump)
Пример #3
0
 def task_dump(self, dump):
     """
     Dump mailman data.
     """
     with settings(user=self.serviceUser):
         archive.dump({
             'lists': 'lists',
             'data': 'data',
             'archives': 'archives'
         }, dump)
Пример #4
0
 def task_dump(self, localfile):
     """
     Dump codespeed database and download it to the given C{localfile}.
     """
     with settings(user=self.serviceUser):
         with utils.tempfile() as temp:
             run('/usr/bin/sqlite3 ~/data/codespeed.db .dump >{}'.format(temp))
             archive.dump({
                 'db.dump': temp,
             }, localfile)
 def task_dump(self, localfile):
     """
     Create a tarball containing all information not currently stored in
     version control and download it to the given C{localfile}.
     """
     with settings(user=self.serviceUser):
         archive.dump({
             'data': 'data',
         }, localfile, exclude=[
             'http.log*',
         ])
Пример #6
0
 def task_dump(self, dump):
     """
     Dump mailman data.
     """
     with settings(user=self.serviceUser):
         archive.dump(
             {
                 'lists': 'lists',
                 'data': 'data',
                 'archives': 'archives'
             }, dump)
 def task_dump(self, localfile):
     """
     Create a tarball containing all information not currently stored in
     version control and download it to the given C{localfile}.
     """
     with settings(user=self.serviceUser):
         archive.dump({
             'data': 'data',
         },
                      localfile,
                      exclude=[
                          'http.log*',
                      ])
Пример #8
0
    def task_dump(self, localfile):
        """
        Create a tarball containing all information not currently stored in
        version control and download it to the given C{localfile}.
        """
        with settings(user=self.serviceUser):
            with utils.tempfile() as temp:
                postgres.dumpToPath('trac', temp)

                archive.dump({
                    'htpasswd': 'config/htpasswd',
                    'attachments': 'attachments',
                    'db.dump': temp,
                }, localfile)
Пример #9
0
    def task_dump(self, localfile):
        """
        Create a tarball containing all information not currently stored in
        version control and download it to the given C{localfile}.
        """
        with settings(user=self.serviceUser):
            with utils.tempfile() as temp:
                postgres.dumpToPath('trac', temp)

                archive.dump({
                    'htpasswd': 'config/htpasswd',
                    'attachments': 'attachments',
                    'db.dump': temp,
                }, localfile)
Пример #10
0
    def task_dump(self, localfile, withAttachments=True):
        """
        Create a tarball containing all information not currently stored in
        version control and download it to the given C{localfile}.
        """
        with settings(user=self.serviceUser):
            with utils.tempfile() as temp:
                postgres.dumpToPath('trac', temp)

                files = {
                    'db.dump': temp,
                }

                if withAttachments is True:
                    files['attachments'] = 'attachments'

                archive.dump(files, localfile)
Пример #11
0
    def task_dump(self, localfile, withAttachments=True):
        """
        Create a tarball containing all information not currently stored in
        version control and download it to the given C{localfile}.
        """
        with settings(user=self.serviceUser):
            with utils.tempfile() as temp:
                postgres.dumpToPath('trac', temp)

                files = {
                    'db.dump': temp,
                }

                if withAttachments is True:
                    files['attachments'] = 'attachments'

                archive.dump(files, localfile)