Backup failed: no space left on device

turbo2ltr

Member
Jun 3, 2011
21
3
53
Seems obvious what the issue is, but here's my df.

Code:
host2 root [/] # df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/md2         94G   24G   66G  26% /
/dev/md0        488M   58M  405M  13% /boot
/dev/md1        7.8G   19M  7.4G   1% /tmp
tmpfs           7.8G     0  7.8G   0% /dev/shm
/dev/sdc1        46G   22G   22G  51% /backup
/dev/sdc2       871G   12G  816G   2% /home2
/backup and /home2 are on a separate drive than everything else.

There is already a monthly copy in backup, it's 15gb so the daily should be about the same. It did not gzip any of the 5 accounts on the server.

Code:
host2 root [/backup/2015-08-31/accounts] # ll
total 8.0K
drwx--x--x 2 root root 4.0K Aug 31 02:00 .
drwx--x--x 4 root root 4.0K Aug 31 02:00 ..
-rw------- 1 root root    0 Aug 31 02:00 corp.tar.gz
-rw------- 1 root root    0 Aug 31 02:00 dev3.tar.gz
-rw------- 1 root root    0 Aug 31 02:00 prod.tar.gz
-rw------- 1 root root    0 Aug 31 02:00 stage.tar.gz
-rw------- 1 root root    0 Aug 31 02:00 cli.tar.gz
Any idea why?

To give you an idea on how big the zips are:
Code:
host2 root [/backup/monthly/2015-08-01/accounts] # ll
total 13G
drwx--x--x 2 root root 4.0K Aug  1 02:25 .
drwx--x--x 4 root root 4.0K Aug  1 02:00 ..
-rw------- 1 root root 4.4M Aug  1 02:25 corp.tar.gz
-rw------- 1 root root 1.6G Aug  1 02:25 dev3.tar.gz
-rw------- 1 root root 7.3G Aug  1 02:11 prod.tar.gz
-rw------- 1 root root 3.2G Aug  1 02:18 stage.tar.gz
-rw------- 1 root root 3.3G Aug  1 02:21 cli.tar.gz
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
Hello :)

You can review the backup logs in the following directory:

/usr/local/cpanel/logs/cpbackup

Which account did the backup generation fail at?

Thank you.
 

RayJay

Registered
Oct 6, 2015
2
0
1
Birmingham
cPanel Access Level
Website Owner
hi,

that code doesn't work for me,

I am trying to restore a backup but when i try to restore the backup, i get an error advising that i only have about 2gb space left and i need around 10gb to restore the backup.
I have configured my backups in cpanel to backup every week and keep 3 months of backups. I have been given, by my hosting providers support, a list of my backup directory and can see I have some old backups from the 08/09/2015 which are taking up a lot or room and if i delete them they should free up the required space. And I would then like to restore the backup I have from the 29/09/2015. Does anyone know how i can access my backup directory so i can delete the old backups, from my Cpanel?

I am using WHM, btw.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
Does anyone know how i can access my backup directory so i can delete the old backups, from my Cpanel?
Hello :)

You can only delete backup archives with "root" access via SSH or SFTP. Do you have root access to the server?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
This document may help:

cPanel - SSH Access

However, you may want to consult with a qualified system administrator or your hosting provider if you are not comfortable on the command line.

Thank you.
 

keat63

Well-Known Member
Nov 20, 2014
1,933
268
113
cPanel Access Level
Root Administrator
CSF do a nice utility called 'ConfigServer Explorer', which may allow removal of the files directly within WHM.
I find 'PUTTY' a good SSH utility, but this is only really any good if you understand command line inputs.
 
  • Like
Reactions: Infopro