Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local tar.gz archive creation bypass #316

Open
Adam-PP opened this issue Dec 18, 2023 · 4 comments
Open

Local tar.gz archive creation bypass #316

Adam-PP opened this issue Dec 18, 2023 · 4 comments
Labels
enhancement New feature or request pr welcome

Comments

@Adam-PP
Copy link

Adam-PP commented Dec 18, 2023

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

@m90
Copy link
Member

m90 commented Dec 18, 2023

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 m90 added enhancement New feature or request pr welcome labels Dec 18, 2023
@Adam-PP
Copy link
Author

Adam-PP commented Dec 29, 2023

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.

@m90
Copy link
Member

m90 commented Dec 29, 2023

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

@MaxJa4
Copy link
Contributor

MaxJa4 commented Jan 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pr welcome
Projects
None yet
Development

No branches or pull requests

3 participants