Confusion how to use cpbackup with NAS

busterkat

Active Member
Aug 20, 2007
41
0
56
NY
I need to do a full backup of my server prior to upgrading redhat and cpanel.

What I don't understand is how to set up cpbackup to backup to the NAS.

There's no problem with backing up to the /backup directory but what I want is to backup to the NAS.
The NAS is visible from the root. Does cp mount it automatically? Do I need to mount it manually?

I used:

Code:
 mount -t cifs //nasxyz.service.abc.com/xxxxxxx-x -o username=xx xxxxx-1,password=blahblah /backup/
Backup is enabled in WHM.

Also I tried:

Code:
[[email protected] cpbackup]# /scripts/cpbackup --force
[cpbackup] Process started in background.
[cpbackup] Log file: /usr/local/cpanel/logs/cpbackup/1364244741.log
[[email protected] cpbackup]# cd //
[[email protected] //]# cd usr/local/cpanel/logs/cpbackup
[[email protected] cpbackup]# ls
1364239942.log	1364240134.log	1364240861.log	1364244741.log
[[email protected] cpbackup]# cat 1364244741.log
[cpbackup] Started at Mon Mar 25 16:52:21 2013
[backupmount] Setting up mount
[backupmount] running: /bin/mount /backup
mount: can't find /backup in /etc/fstab or /etc/mtab
[backupmount] running: /bin/mount -o remount,rw /backup
mount: can't find /backup in /etc/fstab or /etc/mtab
[cpbackup] Backup failed! /backup is not mounted!
[[email protected] cpbackup]#
Any help will be much appreciated. Thanks!!

WHM 11.32.6 (build 3)
REDHAT Enterprise 4 x86_64 standard on server1
 

arunsv84

Well-Known Member
Oct 20, 2008
373
1
68
127.0.0.1
cPanel Access Level
Root Administrator
You should mention the exact mounted directory name/path of the NAS in WHM >> Configure backup. By default cPanel will look for /backup directory. If NAS is mounted to some other location, correct it in configure backup.

Cheers!!!
 

busterkat

Active Member
Aug 20, 2007
41
0
56
NY
Thank you.

I did that, put /nasxyz.service.abc.com/ in to the BACKUPDIR field in the backupform, got the Backup configuration saved!. Nothing happened. Nothing in the nas and nothing in /backup/cpbackup (thought I'd should check there just in case.

Any ideas?
 

busterkat

Active Member
Aug 20, 2007
41
0
56
NY
Arun,

filesystem Size Used Avail Use% Mounted on
/dev/sda5 9.9G 361M 9.0G 4% /
/dev/sda1 99M 21M 74M 22% /boot
none 1005M 0 1005M 0% /dev/shm
/dev/sda7 198G 5.0G 183G 3% /home
/dev/sda8 1012M 34M 927M 4% /tmp
/dev/sda2 9.9G 5.3G 4.2G 56% /usr
/dev/sda3 9.9G 1.3G 8.1G 14% /var
/tmp 1012M 34M 927M 4% /var/tmp
//nas301.service.networklayer.com/zzzzzzz-1
36T 35T 1.4T 97% /backup
//nas301.service.networklayer.com/zzzzzzz-1
36T 35T 1.4T 97% /backup

It is now. I had to add trust to/from the the nas in the APF config. I'm going to try to force the backup now using cpbackup --force

[email protected] /]# /scripts/cpbackup --force
[cpbackup] Process started in background.
[cpbackup] Log file: /usr/local/cpanel/logs/cpbackup/1364927294.log
[[email protected] /]# /usr/local/cpanel/logs/cpbackup/1364927294.log

is there some way to monitor progress?
 
Last edited: