docker-volume-backup icon indicating copy to clipboard operation
docker-volume-backup copied to clipboard

Local tar.gz archive creation bypass

Open Adam-PP opened this issue 1 year ago • 4 comments

Hi everyone, Can you tell me please if there is a way to create a tar.gz archive file bypassing it's local copy? I know that at the first step the file is beeing created at /tmp then it is copied to the destination folder and locally deleted from /tmp I just want to create a backup tar.gz archive directly in destination without temporary local copy. Is there any workaround? Thanks in advance for the reply, Adam

Adam-PP avatar Dec 18 '23 13:12 Adam-PP

This is currently not supported as the code tries to be "backend-agnostic" and storing the archive locally is just another storage backend.

I could imagine that it makes sense to add an opt-in option that supports the behavior you describe where the archive gets created in the local directory if it's available. Not sure about the name / configuration for this feature though.

m90 avatar Dec 18 '23 16:12 m90

Thanks for information. I have one more question. Is there an option to configure backup using Offen solution to create tar.gz but locally? I know that there is an option:

BACKUP_ARCHIVE="/archive"

but when it is set, Offen still creates temporary file in /tmp directory or when you are using local copies step of creating file in /tmp directory is bypassed?

The goal is to not create temporary file in /tmp but in other local directory.

Adam-PP avatar Dec 29 '23 13:12 Adam-PP

No, as already written in my previous comment, there is no way to do what you describe.

m90 avatar Dec 29 '23 13:12 m90

When streaming is implemented like in #95 of some sort, the temp file may be obsolete and there this resolved. Depends on the implementation of #95 though. Just mentioning it to be potentially related to this issue.

MaxJa4 avatar Jan 09 '24 21:01 MaxJa4