Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Backing up the media folder

Make sure that you preserve both the file permissions and the ownership while creating the tar package by using --same-owner
Info
Note

It is highly recommended to back up the data both in the database, the media files and the values.yaml regularly and before running updates.

Backing up the media folder

To create an archive out of the UPLOADS_DIR and preserve permissions and ownership run the following command:


sudo tar --same-owner -zcvpf uploads.tgz UPLOADS_DIR/

Info

Make sure that you preserve both the file permissions and the ownership while creating the tar package by using --same-owner


Note: This will create an archive of the entire UPLOADS_DIR folder and all of its subdirectories:

  • backend-uploads/

...

  • This is where the 3YD application uploads and stores 3D files

  • button3d-media/

...

  • This is where the 3YD application stores documents like:

    • Materials Datasheets (PDF)

    • Order Notes - Order confirmation doc, Invoices, Delivery Confirmation notes (all in PDF)

    • Fulfillment partner Logos, Key Manager logos (.png, .jpg)

  • button3d-private-media/

...

  • This is where private media files like Basket/Order attachments are stored

  • psql/

...

  • This is where

...

  • data from the embedded Postgres database is stored (only if used)


Restoring the media folder

In case you need to restore the Media, 3D and DB folders from an archive follow below steps.

Use cases when required to restore from the archive:

...