Changeset - bce03e4d9e85
[Not reviewed]
0 1 0
Branko Majic (branko) - 5 years ago 2021-01-18 22:33:44
branko@majic.rs
MAR-151: Fix The Bug Genie backup example in usage instructions:

- Properly set-up the directory where files are uplaoded.
- Update instructions to mention what needs to be done in order to
upload some files in The Bug Genie.
1 file changed with 24 insertions and 3 deletions:
0 comments (0 inline, 0 general)
docs/usage.rst
Show inline comments
 
@@ -1560,12 +1560,28 @@ Before we start, here is a couple of useful pointers regarding the
 
          regexp: '.*"lib-pcre".*'
 
          line: '        "lib-pcre": ">=8.0",'
 
        with_items:
 
          - "composer.json"
 
          - "composer.lock"
 

	
 
      - name: Create directory for storing uploaded files
 
        file:
 
          path: "/var/www/tbg.example.com/files"
 
          state: directory
 
          mode: 02770
 
        become: yes
 
        become_user: admin-tbg_example_com
 

	
 
      - name: Create symlink towards directory where uploaded files are stored
 
        file:
 
          src: "/var/www/tbg.example.com/files"
 
          dest: "/var/www/tbg.example.com/thebuggenie-{{ tbg_version }}/files"
 
          state: link
 
        become: yes
 
        become_user: admin-tbg_example_com
 

	
 
      - name: Create TBG cache directory
 
        file:
 
          path: "/var/www/tbg.example.com/thebuggenie-{{ tbg_version }}/cache"
 
          state: directory
 
          mode: 02770
 
        become: yes
 
@@ -2398,15 +2414,20 @@ Genie*. So let's fix that one.
 
            - "/var/www/tbg.example.com/files"
 

	
 
2. Apply the changes::
 

	
 
     workon mysite && ansible-playbook playbooks/site.yml
 

	
 
3. Now rerun the backup on server ``www.example.com`` (as root). If you haven't
 
   uploaded any files, you may want to do so before testing to make sure
 
   something is backed-up.
 
3. Now rerun the backup on server ``www.example.com`` (as root). If
 
   you haven't uploaded any files, you may want to do so before
 
   testing to make sure something is backed-up. This will require
 
   enabling file uploads in `The Bug Genie settings
 
   <https://tbg.example.com/configure/files>`_, creating a test
 
   project, and then adding a new project release (via project's
 
   release center). While creating a new project release, it is
 
   possible to upload a release file.
 

	
 
   ::
 

	
 
     duply main backup
 

	
 
4. Verify that the files have been backed-up:
0 comments (0 inline, 0 general)