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

Check free disk space on tmp volume before backup #7

Open
elmariofredo opened this issue May 10, 2022 · 0 comments
Open

Check free disk space on tmp volume before backup #7

elmariofredo opened this issue May 10, 2022 · 0 comments

Comments

@elmariofredo
Copy link

elmariofredo commented May 10, 2022

When you will try to backup huge dir, which will not fit into tmp volume tergum will fail without explanation. We should check if there is approximately enough space and return warning if tmp dir might be too small.

outputFile, err := os.CreateTemp("", "tergum-tar-gz-")

As workaround you can set variable TMPDIR to point to volume with enough space.

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

No branches or pull requests

1 participant