Incremental Backup creates Full instead of information that has changed

Bidi

Well-Known Member
Oct 3, 2012
119
15
68
Romania, Transilvania
cPanel Access Level
DataCenter Provider
Hello guys,

I got a question / problem / confusion :)

I changed from Compressed backups to Incremental, but i dont understand why dose it makes full backup instead of making for files was changed.

What i whant to do is, 1 Full backup (weekly) and daily just for files was changed and the mysql.

I`m doing sompting wrong?
 

Attachments

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello,

Could you let us know the contents of the /var/cpanel/backups/config file on this system? Keep in mind that incremental backups make use of hard links, so it might seem like disk space is utilized when it's actually not:

How do the backups work exactly?

Thank you.
 

Bidi

Well-Known Member
Oct 3, 2012
119
15
68
Romania, Transilvania
cPanel Access Level
DataCenter Provider
Hello,

---
BACKUPACCTS: 'yes'
BACKUPBWDATA: 'no'
BACKUPDAYS: 0,2,3,4,5,6
BACKUPDIR: /home2/backup
BACKUPENABLE: 'yes'
BACKUPFILES: 'yes'
BACKUPLOGS: 'yes'
BACKUPMOUNT: 'no'
BACKUPSUSPENDEDACCTS: 'yes'
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: 1
BACKUP_WEEKLY_ENABLE: 'yes'
BACKUP_WEEKLY_RETENTION: 1
CHECK_MIN_FREE_SPACE: 1
ERRORTHRESHHOLD: 3
FORCE_PRUNE_DAILY: 1
FORCE_PRUNE_MONTHLY: 0
FORCE_PRUNE_WEEKLY: 1
GZIPRSYNCOPTS: --rsyncable
KEEPLOCAL: 1
LINKDEST: 0
LOCALZONESONLY: 'no'
MAXIMUM_RESTORE_TIMEOUT: 21600
MAXIMUM_TIMEOUT: 7200
MIN_FREE_SPACE: 10
MIN_FREE_SPACE_UNIT: percent
MYSQLBACKUP: accounts
POSTBACKUP: 'no'
PREBACKUP: -1
PSQLBACKUP: 'no'
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello,

Can you elaborate on what you are seeing that leads you to believe full backups are generated? Were you able to review the link referenced in my last post regarding hard links?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Whell, i see on the backups on the same account diffrent dates made backup of all the files not the changed only.
Hello,

Can you provide more details about what you see and how you are checking the existence of those files? Please post the output you see in the command line (ensuring to remove any identifying information about the accounts/server).

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello,

It's likely you are just seeing the hard link to the file. This is explained on the following thread:

How do the backups work exactly?

You'd need to access the server via SSH as root to confirm this by verifying the inode number is the same. EX:

Code:
ls -li /path/to/daily-backup/filename
ls -li /path/to/second-daily-backup/filename
Thank you.