nocache icon indicating copy to clipboard operation
nocache copied to clipboard

backup still using cache

Open pepeverde9 opened this issue 2 years ago • 1 comments

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?

pepeverde9 avatar Oct 13 '23 11:10 pepeverde9

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

hhoffstaette avatar Jan 04 '24 11:01 hhoffstaette