Replies: 4 comments 13 replies
-
|
No, shrink-backup will not recalculate due to other mounts or excluded paths in exclude.txt. https://github.com/UnconnectedBedna/shrink-backup?tab=readme-ov-file#info
In this situation where you want the img smaller than files on root, and not just "make sure all data fits", try running shrink-backup with shrink-backup does not calculate space on all data to be backed up, it simply performs a general check of how much minimum space is needed for all files on root to fit to make sure the backup does not fail due to out of space. But if the backup img file becomes 18G but only data on let's say 10G of those, compressing the img with external tool will probably make the 8G "empty space" take up a few bytes, since all the "data" in those 8G will be zeroes.
Mounted partitions will never be included in the calculations, but that is the other way around, ie it is NOT included in the size calculations even if not excluded in exclude.txt. This could potentially be "fixed" with a new option where shrink-backup is running a full
Moving Let me know if I can clarify closer. |
Beta Was this translation helpful? Give feedback.
-
|
There you go: 0f39c81 Try running script on testing branch with |
Beta Was this translation helpful? Give feedback.
-
|
Didn't work. Looks like there might be an error around line 2810? Log: |
Beta Was this translation helpful? Give feedback.
-
|
SUCCESS! Well done! Log: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The size of the files once exclude.txt is factored into it is about 2.22GB. You can see in the log where the debug Rsync reports the size of the files copied. However, shrink-backup is making an 18GB image file.
All I can imagine is that it's not excluding the
/imagesfolder in it's calcuation, which would make up that difference. It IS, however, NOT including the/media/usbfolder, which over 60GB, but is also in the exclude.txt, but that's also where the image file will be written, so it's excluded by default I expect.log file:
Beta Was this translation helpful? Give feedback.
All reactions