The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Backup problem

Discussion in 'General Discussion' started by jcallery, May 2, 2005.

  1. jcallery

    jcallery Well-Known Member

    Joined:
    Aug 25, 2003
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    I noticed that the primary HD on one of my servers was 75% full, and we don't even have many customers on it. I realized that for some reason, the backup system wasn't mounting the slave hard drive as /backup - but was rather just putting the backup files on the same drive in the /backup folder.

    How can I get rid of these backup files from the primary hard drive and make it so the backup system backs up to the slave drive? It used to do it - but not anymore.

    The following are my backup configurations:

    Backup Status: Enabled
    Backup Interval: Daily
    Backup Retention: Daily, Weekly, and Monthly
    Days to run: all
    Remount,unmount backup drive: Disabled
    Bail out if the backup drive cannot be mounted: Disabled
    Backup Accounts: Enabled
    Backup Config Files: Enabled
    SQL Databases: Per Accounts Olnly
    Backup Raw Access Logs: Disabled
    Backup Type: Standard
    Backup Destination: /backup


    Am I supposed to enable the Remount/unmount backup drive?


    Thanks!
     
  2. jcallery

    jcallery Well-Known Member

    Joined:
    Aug 25, 2003
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Oh duh. I checked another server with the proper config - and it has the slave drive mounted as /backup.

    Does anyone know how I can move the data from the backup folder on my primary drive to the backup on the mounted drive?


    Thanks!
     
  3. Shannon17

    Shannon17 Active Member

    Joined:
    Sep 20, 2004
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brisbane, Australia
    alright befor you mount your slave drive do this

    # cd /
    # mv backup back2up

    then you want to mount the slave drive to do this i think you type following in ssh

    # mount /backup

    then you want to move files and what not to your slave drive type this in ssh

    # cd /back2up/
    # cp * /backup/

    that should move all files and dir to /backup you might want to make sure there in that drive befor you remove them

    to remove the old backup dir just do

    # rm -fr /back2up

    hopefully that helps


    NOTE you must be logged in as root to do all them commands!
     
  4. jcallery

    jcallery Well-Known Member

    Joined:
    Aug 25, 2003
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Thank you for that - worked wonderfully! I sincerely appreciate your help :)
     
  5. jcallery

    jcallery Well-Known Member

    Joined:
    Aug 25, 2003
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Oops - I guess it didn't work.

    It keeps saying "omitting directory 'cpbackup'

    root@svr04 [/back2up]# root@svr04 [/]# cd /back2up
    -bash: root@svr04: command not found
    root@svr04 [/back2up]# root@svr04 [/back2up]# cp * /backup
    -bash: root@svr04: command not found
    root@svr04 [/back2up]# cp: omitting directory `cpbackup'
    > root@svr04 [/back2up]#


    Any ideas?


    Thanks!
     
  6. cPanelBilly

    cPanelBilly Guest

    rsync -av /back2up /backup
     
Loading...

Share This Page