Default Backup Directory change
Hello,
I want to change the default backup directory from /backup to /home/backup because there is not enough space to save and retain backups in / (this has to do with the way the disk has been partitioned and unfortunately I can't change it). Since we are currently working on a test server, there is no need to save backups remotely for now, so we need local backups to be easily restored. The current backup configuration is:
The problem is that every time I try to remove the "Retain Backups in the Default Backup Directory" option I get the following error message: Error: Nowhere to back up: no enabled destinations found and retaining local copies is disabled. Can you please help me solve this? I have created the /home/backup directory and made sure that is writable. Thank you.
---
BACKUPACCTS: 'yes'
BACKUPBWDATA: 'yes'
BACKUPDAYS: 0,2,4,6
BACKUPDIR: /home/backup
BACKUPENABLE: 'yes'
BACKUPFILES: 'yes'
BACKUPLOGS: 'no'
BACKUPMOUNT: 'no'
BACKUPSUSPENDEDACCTS: 'no'
BACKUPTYPE: incremental
BACKUP_DAILY_ENABLE: 'yes'
BACKUP_DAILY_RETENTION: 3
BACKUP_MONTHLY_DATES: 1
BACKUP_MONTHLY_ENABLE: 'no'
BACKUP_MONTHLY_RETENTION: 1
BACKUP_WEEKLY_DAY: 0
BACKUP_WEEKLY_ENABLE: 'no'
BACKUP_WEEKLY_RETENTION: 4
CHECK_MIN_FREE_SPACE: 1
DISABLE_METADATA: 'no'
ERRORTHRESHHOLD: 3
FORCE_PRUNE_DAILY: 1
FORCE_PRUNE_MONTHLY: 0
FORCE_PRUNE_WEEKLY: 0
GZIPRSYNCOPTS: --rsyncable
KEEPLOCAL: 1
LINKDEST: 0
LOCALZONESONLY: 'no'
MAXIMUM_RESTORE_TIMEOUT: 21600
MAXIMUM_TIMEOUT: 7200
MIN_FREE_SPACE: 350000
MIN_FREE_SPACE_UNIT: MB
MYSQLBACKUP: accounts
POSTBACKUP: 'no'
PREBACKUP: -1
PSQLBACKUP: 'no'
REMOTE_RESTORE_STAGING_DIR: /home/backup
The problem is that every time I try to remove the "Retain Backups in the Default Backup Directory" option I get the following error message: Error: Nowhere to back up: no enabled destinations found and retaining local copies is disabled. Can you please help me solve this? I have created the /home/backup directory and made sure that is writable. Thank you.
-
You've changed the default directory to /home/backup - removing the retention without having a remote backup destination leaves you with no enabled destinations. 0 -
Thank you very much for your response, cPanelLauren. There is still something I don't understand, sorry it may be that it's just the wording that is confusing me. If my backups will be saved in /home/backup, why does it says that there are no enabled destinations? I only want local backups in /home/backup for now, fully knowing the risks of having them only saved locally. Thank you for your help! 0 -
So you have to have backups being stored somewhere, if you tell the server that you don't want to retain backups in the default directory (/home/backup) but you also don't want to transport them anywhere it has nowhere to put them. 0 -
Great, that is now clear. I was getting confused on the "default" word. Thanks again! 0
Please sign in to leave a comment.
Comments
4 comments