Full migration of DocumentEngine to another S3 bucket

Full migration of DocumentEngine to another S3 bucket

Migrating PSPDFKit/Document Engine Data Storage to Another S3 Bucket.

Problem:

If you need to switch to a different S3 bucket, you will find that specifying a new S3 bucket will only cause the service to store new files in the new S3 bucket while continuing to retrieve old files from the old one.

This is because the service stores the file storage configuration for each file separately.

Documents Engine stores a storage config peer document/attachment in the three database tables — pdfs, documents and attachments.

[Read more]

The process of init a Linux user session

The process of init a Linux user session
      ┌──────────────────────────┐
      │       Interactive?       │──────────▶  No
      └──────────────────────────┘
                    │                           │
                    ▼                           │
                   Yes                          ▼
                                     ┌────────────────────┐
                    │                │   --login Flag?    │───────▶  No
                    ▼                └────────────────────┘
      ┌──────────────────────────┐              │                     │
      │       Login Shell?       │──┐    ┌──────┘                     ▼
      └──────────────────────────┘  │    ▼                    .───────────────.
                    │               │                        (    $BASH_ENV    )
                    ▼               └─▶ Yes  ───┐             `───────────────'
                    No                          ▼
                                     ┌────────────────────┐
                    │                │ --noprofile Flag?  │─────────▶  No
                    ▼                └────────────────────┘
      ┌──────────────────────────┐              │                       │
      │  --rcfile <file> Flag?   │────▶ Yes  ─┐ │                       │
      └──────────────────────────┘            │ └──────────┐            │
                    │                         │            │            │
                    ▼                         ▼            ▼            │
                                      .───────────────.                 │
                    No               (     <file>      )  No            │
                                      `───────────────'                 │
                    │                                      │            │
                    ▼                                      │            ▼
      ┌───────────────────────────┐                        │    .───────────────.
      │       --norc Flag?        │───▶ Yes  ──┬───────────┘   (  /etc/profile   )
      └───────────────────────────┘            │                `───────────────'
                    │                          │                        │
                    ▼                          ▼                        │
                                    ╔════════════════════╗              ▼
                   No               ║  No File Loaded!   ║ /────────────────────────\\
                                    ╚════════════════════╝ │ First Of:              │
                    │                                      │  - $HOME/.bash_profile │
                    ▼                                      │  - $HOME/.bash_login   │
        .───────────────────────.                          │  - $HOME/.profile      │
       (    /etc/bash/bash.rc    )                         \\────────────────────────/
        `───────────────────────'                                       │
                    │                .───────────────────.              │
                    └──────────────▶(    $HOME/.bashrc    )◀ ─ ─ ─ ─ ─ ─   May Include
                                     `───────────────────'
[Read more]