Open felixx9 opened 2 years ago
(Was )working, since #2070 solved. Misconficuration on my side and (at least to me) misleading error message. Solved.
was working 2 or 3 times and since then again - "no space left on device". Could that be a problem resulting from Playbook configuration? Or do I need to dig in the container "shipper"?
Hey,
looks like I found some hints regarding your issue (I had the same before I got a new issue ...):
it looks like we need to replace the folder /tmp/.cache/borg/<ID>/chunks.archive.d/
with a file like these guys did it:
# Fix too large Borg cache
# https://borgbackup.readthedocs.io/en/stable/faq.html#the-borg-cache-eats-way-too-much-disk-space-what-can-i-do
BORG_ID="$(borg config "$BORG_BACKUP_DIRECTORY" id)"
rm -r "/root/.cache/borg/$BORG_ID/chunks.archive.d"
touch "/root/.cache/borg/$BORG_ID/chunks.archive.d"
Infos from https://borgbackup.readthedocs.io
I guess fixing in the source-container is not possible, or? https://gitlab.com/etke.cc/borgmatic/-/blob/main/Dockerfile
Regards
ah interesting. But looks more like a workaround (?)
In a different context (don't remember, where) somebody suggested, to write the cache on a mapped volume instead of writing to the container's RAM which then fills up quickly. Sounds reasonable to me.
absolutely, but even the docs tells it is a log-term-workaround-hack but you are right -->
this is only recommended if you have a fast, low latency connection to your repo (e.g. if repo is local disk)
write the cache to a mapped volume would be much nicer.
UPDARTE: isn't it a volume already, but 100mb are not enought?
--tmpfs=/tmp:rw,noexec,nosuid,size=100m \
regards
Hey,
looks like I found some hints regarding your issue (I had the same before I got a new issue ...):
it looks like we need to replace the folder
/tmp/.cache/borg/<ID>/chunks.archive.d/
with a file like these guys did it:# Fix too large Borg cache # https://borgbackup.readthedocs.io/en/stable/faq.html#the-borg-cache-eats-way-too-much-disk-space-what-can-i-do BORG_ID="$(borg config "$BORG_BACKUP_DIRECTORY" id)" rm -r "/root/.cache/borg/$BORG_ID/chunks.archive.d" touch "/root/.cache/borg/$BORG_ID/chunks.archive.d"
Infos from https://borgbackup.readthedocs.io
I guess fixing in the source-container is not possible, or? https://gitlab.com/etke.cc/borgmatic/-/blob/main/Dockerfile
Regards
You can always send Merge Request
absolutely, but even the docs tells it is a log-term-workaround-hack but you are right -->
this is only recommended if you have a fast, low latency connection to your repo (e.g. if repo is local disk)
write the cache to a mapped volume would be much nicer.
UPDARTE: isn't it a volume already, but 100mb are not enought?
--tmpfs=/tmp:rw,noexec,nosuid,size=100m \
regards
Same here, feel free to send PR
When running borgbackup (installed via the playbook) I get this log:
The backup was running for two weeks or so, w/o issues. Lots of space in SSD:
what could cause this behavior?