--- a/README.md Sun Apr 11 02:33:42 2021 -0500
+++ b/README.md Sun Apr 11 02:46:35 2021 -0500
@@ -8,11 +8,13 @@
This image requires a number of environment variables
+ * `DESTINATION` The destination path in the container to extrac the backup to. + * `GID` The group id to set on the extracted files. * `S3_URL` Is the URL to your S3 bucket.
* `S3_KEY` The key in S3 that holds your trac backup.
* `S3_ACCESS_KEY` The S3 access key.
* `S3_SECRET_KEY` The S3 secret access key.
- * `DESTINATION` The destination path in the container to extrac the backup to.
+ * `UID` The user id to set on the extracted files. These environment variables are used to create an alias in mc and then extract
the backup with the following commands.
@@ -20,7 +22,9 @@
mc alias set trac-bootstrap "${S3_URL}" "${S3_ACCESS_KEY}" "${S3_SECRET_KEY}"
-mc cat "trac-bootstrap/${S3_KEY}" | tar -C "${DESTINATION}"
+mc cat "trac-bootstrap/${S3_KEY}" | tar -xf -C "${DESTINATION}" +chmod -R "${UID}":"${GID}" "${DESTINATION}" Note these commands are copied from [bootstrap](bootstrap) and may have not
--- a/bootstrap Sun Apr 11 02:33:42 2021 -0500
+++ b/bootstrap Sun Apr 11 02:46:35 2021 -0500
@@ -35,6 +35,9 @@
mc alias set trac-bootstrap "${S3_URL}" "${S3_ACCESS_KEY}" "${S3_SECRET_KEY}"
-mc cat "trac-bootstrap/${S3_KEY}" | tar -C "${DESTINATION}"
+mc cat "trac-bootstrap/${S3_KEY}" | tar -xf -C "${DESTINATION}" +chmod -R "${UID}":"${GID}" "${DESTINATION}"