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

backup still using cache #53

Open
pepeverde9 opened this issue Oct 13, 2023 · 1 comment
Open

backup still using cache #53

pepeverde9 opened this issue Oct 13, 2023 · 1 comment

Comments

@pepeverde9
Copy link

Hi

I'm using the version of nocache that comes with Ubuntu.
I am making backup of my home directory using tar, something like
nocache tar -zcvp /home -f /mnt/usbhdd/backup.tgz
but when I run
cachestats /mnt/usbhdd/backup.tgz
while running the backup command, it still reports about 3GB of pages in cache.
My understanding was that the used cache should be much smaller. Is there any way to prevent tar and gzip from trashing the cache of the system during backup?

@hhoffstaette
Copy link

hhoffstaette commented Jan 4, 2024

nocache will only uncache-on-close, i.e. when the large backup.tgz file has been fully written and the last writer closes their file descriptor. The problem is that your backup has only a single file. There is really nothing else that nocache can do in its current form.
See #49

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

2 participants