teejee2008 / timeshift

System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots. Supports scheduled snapshots, multiple backup levels, and exclude filters. Snapshots can be restored while system is running or from Live CD/USB.
GNU Lesser General Public License v3.0
4.68k stars 281 forks source link

Backup not allowed because of not enough space, but there is #583

Open jbrepogmailcom opened 4 years ago

jbrepogmailcom commented 4 years ago

Note: This application is provided "as-is" without support or warranty. If you need help with issues, consider making a donation to support the development.

Describe the bug I have a file backup.disk in root, that is virtual disk device and is larger than rest of filesystem. Lets say whole file system without that file has 4GB plus backup.disk in root directory has 6GB. So the filesystem would fit into backup.disk attached as /dev/loop1. The backup.disk is excluded in settings, so it will NOT be backed to itself. However, timeshift counts volume of whole filesystem INCLUDING excluded files, so it reports that I am attempting to backup 10GB of data into 6GB disk and does not allow me to continue. The error is: E: Not enough disk space (< 10 GB) E: Select another device or free up some space

The solution is to override the check, or substract size of excluded files from volume of backup.

To Reproduce Create virtual disk from file that exists in same filesystem as the one that will be backed up. Exclude that virtual disk file from backup and attempt to backup.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

System:

jbrepogmailcom commented 4 years ago

I have created workaround - sparse backup file with "truncate" command. This way I can create virtual disk much larger than OS I need to backup, yet the physical space used and needed is much lower.