Skip to content

Conversation

@anthony-chu
Copy link
Member


println "Creating backup of volume ${volumeName} in ${hostPath}/${backupFileName}"
waitForCommand("docker run --rm -v ${volumeName}:/source -v ${hostPath}:/target busybox:latest tar --create --file=/target/${backupFileName} --directory=/source .")
waitForCommand("docker run --rm -v ${volumeName}:/source -v ${file(hostPath).getAbsolutePath()}:/target busybox:latest tar --create --file=/target/${backupFileName} --directory=/source .")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the error that compelled this change:

$ gw exportContainerData

> Task :exportContainerData FAILED
Creating backup of volume liferay-environment-composer_liferay in exported_data/data_liferay-environment-composer_20251028.113038/liferay.tar
docker: Error response from daemon: create exported_data/data_liferay-environment-composer_20251028.113038: "exported_data/data_liferay-environment-composer_20251028.113038" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path

Run 'docker run --help' for more information

FAILURE: Build failed with an exception.

* Where:
Build file '/home/me/dev/projects/liferay-environment-composer/build.gradle' line: 47

@drewbrokke
Copy link
Member

See #165, thanks!

@drewbrokke drewbrokke closed this Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants