I have a NCP instance on a 500GB SSD which is now 90% capacity so I attached a USB 1TB SSD to do a full backup and move the instance to other computer and disk. However, it fails:
.
check free space...
free space check failed. Need 405651974018 Bytes
Maintenance mode disabled
Done. Press any key...
Sorry i do not read all entrys. But perhaps you waste some space with e.g. nextcloud upgrade - backups in data/updater-***/backups or on other positions.
Please install ncdu and find big directorys.
ncdu /path/to/your/nextcloud ncdu /media/usb
100% full disk can crash your system.
Normally non-root-user like www-data can not fill it to 100%.
Yesterday night I had around 20% free and this morning it was gone. I think a cron job related with the photo/video preview gen started and used that free space.
And you are right, once it reached 100%, my instance was gone… but I manage to get some free space deleting some things related with the preview generator… or so I hope
Thanks for the tip on using “ncdu”, much easier than du/df
I have 2 users, seems that they are the ones taking the majority of the space so this should be as expected.
Yes, I know I can set quote, in this case for both users the quote is/should be “unlimited” and it is not a problem. I know I am suddenly reaching full disk capacity thus this exercise of backup/move to other instance.
Regarding the
> I think you do not use the /media/usb for storage. Is this for you correct?
Indeed, /media/usb is the mount point for /dev/sdb1 which is the 1GB SSD disk where I am backing up my NextCloudPi
Running nc-restore
check free space...
free space check failed. Need 393707054 KB in /media/usb500gb/ncp-restore.JFczsV
Cleanup...
Done. Press any key...
Looks like the tar.gz will be unpacked complete then the files copied? Looks like it by looking at the processes running and this means that I will always need 2x the free space that the backup takes so that it hold the .tar.gz + the unpacked files.
My 373GB tar.gz is requires ~393GB free to be unpacked. This means that although I was able to create such backup in a 500GB SSD, I will be unable to restore from it.
I could not get a reply on this thread, so I assume now that I need 2x the free space, I think i put up a workaround where I moved the backup to a much bigger external disk, created new NCP install where I had 2-3x the free space then i was able to restore it…
Other option could be to decompress the tar.gz file manually to a different drive (so that you have a uncompressed .tar file).
However, that’ll need some linux-know-how.