Giter Site home page Giter Site logo

Comments (10)

Phil1988 avatar Phil1988 commented on July 18, 2024 1

Oh this would be indeed pretty useful, but understandable low priority on you side.
(Ah and your assumption was right, that I never did a dietpi-backup before)

Its honestly unbelievable how good your support and dietpi is for such a long period!

from dietpi.

Joulinar avatar Joulinar commented on July 18, 2024

It depends on your backup location. Usually default location is within /mnt. Simply remove backup folder.

from dietpi.

Phil1988 avatar Phil1988 commented on July 18, 2024

like this one right?
image

(just do be safe to not delete something important)

from dietpi.

Joulinar avatar Joulinar commented on July 18, 2024

Yes correct

from dietpi.

Phil1988 avatar Phil1988 commented on July 18, 2024

Thanks a lot, it works now.
Is there a simple way for you to integrate a short "availible disk space" check before doing such a the backup?
If no, then you can simply close this one as its not a really important improvement or a bug.

from dietpi.

MichaIng avatar MichaIng commented on July 18, 2024

There was a disk space check included some DietPi versions ago. We intentionally removed it since it took much time and gave incorrect results on network drives. And we thought that an error like "no space left" is quite clear and you would know what to do?

To have disk space better in view, you can add it to the login banner via dietpi-banner. Or use df -h to get a general overview of mounts and their free/used space.

from dietpi.

Phil1988 avatar Phil1988 commented on July 18, 2024

Ahh that explains it!

I remembered that "some moons ago" there was such a hint, but completely understandable that you removed it.
And yes, its obvious that files have to be deleted, but for me I didnt know what files.

Maybe it might be great that if the backup failed in this case, it automatically removes the files directly.
But surely you have more important things to do.

I will close this now and thank you for this great piece of software!

from dietpi.

MichaIng avatar MichaIng commented on July 18, 2024

In such case it is hard to say what the admin/user wants: If there was a backup before which is just updated, then the added disk usage is usually very small, so one might want to remove other data instead, ah or try to get some space via dietpi-cleaner 🙂. If it is a new backup and hence incomplete, removing is more likely to be wanted, until enough space is provided/cleared otherwise. We could add some info in case of an error, or extend the error message to contain the path to the backup, with the info that it is safe to remove it from there and start over. rsync does not throw a particular error code when aborting due to insufficient disk space, but one which contains this case: https://manpages.debian.org/rsync#EXIT_VALUES

23 - Partial transfer due to error

This should be it.

Would be nice if you can tell me how I can delete the failed backup which was something about 120GB as it failed.
I didnt expected it fo get this big :)

I read this just now. We could also add an info to the backup prompt, telling what exactly is backed up. As long as /mnt/dietpi_userdata is located on the rootfs, it is backed up as well, which in case contains media files, downloads and other data, which can be quite big. If userdata have been moved to an external drive, it is skipped, so then only the system itself and data in /var/lib and users' home dirs are backed up.

from dietpi.

Phil1988 avatar Phil1988 commented on July 18, 2024

As my /mnt/dietpi_userdata is on the rootfs and contains like ~2TB user data, I think that was the issue here and a dietp-cleaner wouldnt make a difference :D

So everything is fine for me and I will remember everything for future.

from dietpi.

MichaIng avatar MichaIng commented on July 18, 2024

Makes sense then to exclude userdata with the include/exclude filters. But I think in general a simple toggle for this would be helpful. This is actually long on the ToDo already, but low-priority indeed. In this particular case, the main problem is that you likely did not use dietpi-backup before, hence could not know about the backup location etc, and the prompt triggered by the upgrade script (and also e.g. by dietpi-software reinstall ... and some other cases) does not show you the dietpi-backup menu with all the info, but just runs the backup with default settings when you hit "yes".

Let me open this issue as a reminder for this enhancement. We can e.g. check whether the dietpi-backup config file exists, and show the full menu if not, so users see the backup location, can chance it and other settings etc, before the backup runs.

from dietpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.