Restore backup target
Hello,
The server store backups at /backup, when I try to restore a backup account say "the target Insufficient disk space is available. "/backup/cpbackup/daily"" but the restore account target must be /home not /backup/cpbackup/daily .
Regards, Ricardo Additional info:
MASTER A: Start Session
MASTER A: Version: 2.3
MASTER A: Queue "RESTORE" items: 1
MASTER A: Remote Host:
RESTORE:1 A: Starting "Account": thenameaccount
RESTORE:1 A:thenameaccount A: Progress: 0%
RESTORE:1 A:thenameaccount A: Starting "RESTORE" for "Account" "thenameaccount".
RESTORE:1 A:thenameaccount A: Progress: 10%
RESTORE:1 A:thenameaccount A: Restore Reseller Privileges: yes
RESTORE:1 A:thenameaccount A: Restricted mode: no
RESTORE:1 A:thenameaccount A: Backup User: "thenameaccount"
RESTORE:1 A:thenameaccount A: Target "/backup/cpbackup/daily" on host "theservername" has 21.01 GB free and requires at least 28.83 GB free, which includes space for temporary files.
RESTORE:1 A:thenameaccount A: Progress: 100%
RESTORE:1 A:thenameaccount A: Failed: Insufficient disk space is available. "/backup/cpbackup/daily" on host "theservername" has 21.01 GB free and requires at least 28.83 GB free, which includes space for temporary files.
RESTORE:1 A: Account "thenameaccount": Insufficient disk space is available. "/backup/cpbackup/daily" on host "theservername" has 21.01 GB free and requires at least 28.83 GB free, which includes space for temporary files.
RESTORE:1 A: Progress: 100%
RESTORE:1 A: Child Complete
MASTER A: Session Complete# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 16G 212K 16G 1% /dev
tmpfs 16G 0 16G 0% /dev/shm
/dev/md2 49G 34G 13G 74% /
devtmpfs 16G 212K 16G 1% /dev
/dev/md3 3.5T 29G 3.3T 1% /home
/dev/md2 49G 34G 13G 74% /var/tmp
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/var/lib/mysql
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/var/www/cgi-bin
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/opt
tmpfs 16G 0 16G 0% /usr/share/cagefs-skeleton/dev/shm
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/var/www/html
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/local/apache/domlogs
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/var/lib/proxyexec/cagefs.sock
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/var/spool/at
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/var/run/dbus
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/local/cpanel/var
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/lib
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/lib
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/lib64
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/lib64
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/include
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/share/locale
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/share/terminfo
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/share/zoneinfo
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/share/vim
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/local/cpanel/Cpanel
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/local/cpanel/3rdparty/perl
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/local/cpanel/3rdparty/share
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/local/cpanel/3rdparty/php
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/local/cpanel/3rdparty/bin
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/var/lib/spamassassin
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/local/cpanel/sys_cpanel/boxtrapper-message
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/usr/local/cpanel/whostmgr/docroot/cgi/softaculous
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/opt/cpanel/ea-php70/root/usr/bin
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/opt/cpanel/ea-php70/root/etc
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/opt/cpanel/ea-php56/root/usr/bin
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/opt/cpanel/ea-php56/root/etc
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/opt/cpanel/ea-php54/root/usr/bin
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/opt/cpanel/ea-php54/root/etc
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/opt/cpanel/ea-php55/root/usr/bin
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/opt/cpanel/ea-php55/root/etc
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/opt/cpanel/ea-php53/root/usr/bin
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/opt/cpanel/ea-php53/root/etc
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/opt/cpanel/ea-php71/root/usr/bin
/dev/md2 49G 34G 13G 74% /usr/share/cagefs-skeleton/opt/cpanel/ea-php71/root/etc
ls -la
total 860
dr-xr-xr-x 24 root root 4096 Mar 4 22:47 .
dr-xr-xr-x 24 root root 4096 Mar 4 22:47 ..
-rw-r--r-- 1 root root 0 Mar 3 22:15 .autofsck
-rw-r--r-- 1 root root 0 Feb 22 19:42 .autorelabel
drwx--x--x 5 root root 4096 Mar 6 22:43 backup
dr-xr-xr-x 2 root root 4096 Feb 27 23:55 bin
dr-xr-xr-x 4 root root 4096 Feb 27 23:48 boot
drwxr-xr-x 18 root root 6340 Mar 6 03:37 dev
-rw-r--r-- 1 root root 20450 Feb 28 00:07 error_log
drwxr-xr-x 95 root root 12288 Mar 6 22:54 etc
drwx--x--x 18 root root 4096 Mar 6 21:54 home
-rw-r--r-- 1 root root 236 Feb 23 21:34 install.log
-rwxr-xr-x 1 root root 4896 Jun 23 2016 install.sh
dr-xr-xr-x 8 root root 4096 Feb 22 19:54 lib
dr-xr-xr-x 10 root root 12288 Feb 23 23:59 lib64
drwx------ 2 root root 16384 Feb 22 19:39 lost+found
drwxr-xr-x 2 root root 4096 Sep 23 2011 media
drwxr-xr-x 2 root root 4096 Sep 23 2011 mnt
drwxr-xr-x 5 root root 4096 Feb 23 20:38 msinstall
-rw-r--r-- 1 root root 702575 Nov 17 06:52 msinstall.tar.gz
drwxr-xr-x 6 root root 4096 Feb 27 23:56 opt
dr-xr-xr-x 263 root root 0 Mar 3 22:15 proc
-rw------- 1 root root 9216 Mar 6 22:54 quota.user
-rw-r--r-- 1 root root 109 Feb 22 20:13 razor-agent.log
dr-xr-x--- 18 root root 4096 Mar 6 22:54 root
dr-xr-xr-x 2 root root 12288 Feb 25 23:58 sbin
lrwxrwxrwx 1 root root 25 Feb 22 19:52 scripts -> /usr/local/cpanel/scripts
drwxr-xr-x 2 root root 4096 Sep 23 2011 selinux
drwxr-xr-x 2 root root 4096 Sep 23 2011 srv
drwxr-xr-x 13 root root 0 Mar 3 22:15 sys
drwxrwxrwt 12 root root 4096 Mar 6 22:54 tmp
drwxr-xr-x 15 root root 4096 Mar 3 22:15 usr
drwxr-xr-x 25 root root 4096 Mar 3 22:16 var
# cat /var/cpanel/backups/config
---
BACKUPACCTS: 'yes'
BACKUPBWDATA: 'yes'
BACKUPDAYS: 1,2,3,4,5,6
BACKUPDIR: /backup
BACKUPENABLE: 'yes'
BACKUPFILES: 'yes'
BACKUPLOGS: 'no'
BACKUPMOUNT: 'no'
BACKUPSUSPENDEDACCTS: 'no'
BACKUPTYPE: compressed
BACKUP_DAILY_ENABLE: 'yes'
BACKUP_DAILY_RETENTION: 1
BACKUP_MONTHLY_DATES: 1
BACKUP_MONTHLY_ENABLE: 'yes'
BACKUP_MONTHLY_RETENTION: 1
BACKUP_WEEKLY_DAY: 0
BACKUP_WEEKLY_ENABLE: 'no'
BACKUP_WEEKLY_RETENTION: 4
ERRORTHRESHHOLD: 3
GZIPRSYNCOPTS: --rsyncable
KEEPLOCAL: 1
LINKDEST: 0
LOCALZONESONLY: 'no'
MAXIMUM_RESTORE_TIMEOUT: 21600
MAXIMUM_TIMEOUT: 2700
MYSQLBACKUP: accounts
POSTBACKUP: 'no'
PREBACKUP: -1
PSQLBACKUP: 'no'
Regards, Ricardo Additional info:
# grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf ; httpd -v ; php -v ; mysql -V
/etc/redhat-release:CloudLinux Server release 6.8 (Oleg Makarov)
/usr/local/cpanel/version:11.62.0.16
/var/cpanel/envtype:standard
CPANEL=release
Server version: Apache/2.4.25 (cPanel)
Server built: Jan 25 2017 03:17:09
ea-php-cli Copyright 2016 cPanel, Inc.
PHP 5.6.30 (cli) (built: Feb 23 2017 16:25:57)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd., and
with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies
mysql Ver 14.14 Distrib 5.6.35, for Linux (x86_64) using EditLine wrapper
-
Hi, Please post the output for the following file. cat /etc/fstab 0 -
Hello, The result to cat /etc/fstab is: # cat /etc/fstab # /dev/md2 / ext3 errors=remount-ro,usrjquota=quota.user,jqfmt=vfsv0 0 1 /dev/md3 /home ext4 usrjquota=quota.user,jqfmt=vfsv0 1 2 /dev/sda4 swap swap defaults 0 0 /dev/sdb4 swap swap defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts defaults 0 0
Thank you0 -
Hello, Please browse to "WHM >> Basic WebHost Manager Setup" and verify what's configured for the following options: Enter the location where you wish for new users" home directories to be created. By default all directories matching the "Home Directory Prefix" are checked for available disk space and the directory with the most free space will be used. Additional home directories matching the following value will also be used for new home directory creations. (Leaving this value blank disables the feature.) This option only takes one value. Also, can you try moving one of the backup archives to the /home partition and restoring it with the /scripts/restorepkg command? EX: cp -a /backup/cpbackup/daily/username.tar.gz /home/username.tar.gz /scripts/restorepkg /home/username.tar.gz
This script is documented at: The restorepkg Script - Documentation - cPanel Documentation Thank you.0 -
Hello Michael. What are the recommended primary partitions to install CentOS 6.5 and cpanel including independent partition for backup? Thank you 0 -
What are the recommended primary partitions to install CentOS 6.5 and cpanel including independent partition for backup?
Hello, The recommended partition setup is documented at: Installation Guide - System Requirements - Documentation - cPanel Documentation Additionally, you'd want a separate partition or drive for /backup. Thank you.0
Please sign in to leave a comment.
Comments
5 comments