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.

How to Move Backup Directory & Files

Discussion in 'Data Protection' started by jethrodesign, Aug 21, 2014.

  1. jethrodesign

    jethrodesign Active Member

    Joined:
    Feb 17, 2012
    Messages:
    41
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi, we have a dedicated server that had one main partition where backups and sites were stored, set to the root directory '/'. Backups are just set to use the directory '/backups'.

    But that partition is getting pretty full. So we added a new drive/partition and it is located at '/home2'. All new accounts are going on this drive just fine.

    - How do we migrate the complete backup (all files, settings, references) to the '/home2' directory so that we don't lose any prior backups and everything keeps flowing smoothly?

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can configure the backup storage location via:

    "WHM Home » Backup » Backup Configuration"

    Existing files/directories are movable through SSH with the "mv" command. Note that storing backups on a home directory is not advised, and can lead to quota discrepancies.

    Thank you.
     
  3. jethrodesign

    jethrodesign Active Member

    Joined:
    Feb 17, 2012
    Messages:
    41
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi, thanks for the reply.

    So by having the backups just set to '/backups', have we been using a home directory (the root '/') all along? I guess if this is not recommended, we'd have to see if the host would re-partition the new drive to allow for a dedicated backups partition and guess at how large it could potentially grow to.

    If we can't get the secondary drive re-paritioned and just have to move the backups to it for the sake of space, would we just set the directory in Backup Configuration to '/home2/backups'? And then move the files there? Restore would still work with what's already been backed up?

    Thanks!
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, that is correct. Ensure the directory structure remains in place (e.g. move the directories/files within /backup to /home2/backup) so the path does not end up as "/home2/backup/backup".

    Thank you.
     
Loading...

Share This Page