Back up your server without using local storage

Hello,
I’m contacting you because I recently noticed that my scheduled backups with Archivist aren’t all being completed. Especially for the three largest applications: NextCloud, Dodoc, and PeerTube.
When I run a backup of some of these applications independently, it rarely succeeds. It seems to be a disk space issue.
However, I recently increased the capacity of my VPS to 80 GB, and I’m surprised to see it’s already full.
So here are my questions:

  • How can I check the available disk space on a VPS?
  • Is there a recycle bin on Yunohost that should be emptied?
  • Is there a way to run a backup of Yunohost and its applications by immediately sending the archive to the PC from which I connect to the server via SSH?

I’ve been unable to backup my most important applications for a few months now. Thank you in advance for your help.
Guillaume

First of all, you should understand what’s taking so much space on your server using sudo ncdu / -x
Second, you can mount your backup folder on another server like I am doing here Mount /home/yunohost.backup on a remote server - #6 by jarod5001

1 Like

Hello and thank you for your reply.
This command is great :wink: I’ll just point out for anyone who has the same problem as me that you need to install ncdu before running the command:
‘sudo apt install ncdu’
Then the magic command:
‘sudo ncdu / -x’

Well, it seemed to me that the cleanup I did in my NextCloud was still stored in a “trash” folder. The “/home/yunohost.app/nextcloud/data/gheleguen/files_trashbin” folder
contains 21GB.
I’m going to empty trash.

So yes, according to this screenshot, there is indeed a little more than 60GB of storage occupied out of 80GB. So it’s not surprising that I can’t start my NextCloud backup, which is almost 23GB. So I need to figure out how to delete the NextCloud recycle bin.

Thanks for your backup tutorial. But actually, with OVH, I already pay €120/year for 80GB, so I don’t really have the budget for more. I might have an idea: it would be to put a Raspberry Pi at home with a hard drive and a timer that only turns on on the day of the backup. We’ll see.

Thanks already, I know what I need to do to free up space on my server and restart backups.

Have a nice day.

1 Like

Hi,
If you want to avoid the same situation in future, you can adjust thrash bin retention in your /var/www/nextcloud/config/config.php :

example with deleted files older than 30 days and delete the oldest files if files are less than 30 days but there is not enough space :

  'trashbin_retention_obligation' => 'auto, 30',

Idem if you use versioning with versions_retention_obligation parameters

1 Like