How to Move Backup Directory & Files
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.
-
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. 0 -
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! 0 -
[quote="jethrodesign, post: 1714772">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?
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.0
Please sign in to leave a comment.
Comments
3 comments