Incremental backups and retention

Misiek

Well-Known Member
Feb 23, 2004
116
0
166
cPanel Access Level
Root Administrator
Dear All,
I want to set my system so it holds 10 backups with full backup of first day and the rest nine is just incremental. I really tried to find in documentation how inclremental backup works but there is nothing more than they work.

I set incremental backup with retention 5, checked for hard links but they are not there can somebody explain how to set it to make any sense

[[email protected] ~]# du --max-depth=1 -h /home/user/
385G /home/user/2018-11-29
23G /home/user/2018-11-24
23G /home/user/2018-11-27
23G /home/user/2018-11-30
452G /home/user/
 
Last edited:

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,080
657
263
Houston
cPanel Access Level
DataCenter Provider

Misiek

Well-Known Member
Feb 23, 2004
116
0
166
cPanel Access Level
Root Administrator
I created only incremental configuration, and the list of folders and sizes i attached are from only incremental backup!
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,080
657
263
Houston
cPanel Access Level
DataCenter Provider
Hello @Misiek

The way that incremental works though is that one initial backup needs to be full and subsequent backups store in increments any changes.
  • Incremental — Select this setting to save all of your files in the directory tree. This setting uses a combination of hard links and files for speed and to save disk space.

Can you explain what the issue with this is?

Thanks!
 

Misiek

Well-Known Member
Feb 23, 2004
116
0
166
cPanel Access Level
Root Administrator
This is not logical
Code:
385G    /home/server1/2018-11-29
12K     /home/server1/2018-12-01
23G     /home/server1/2018-11-24
24G     /home/server1/monthly
23G     /home/server1/2018-11-27
23G     /home/server1/2018-12-02
22G     /home/server1/2018-11-30
If one initial backup should be full why the full backup is with date 2018-11-29 and the earlier backup for example from 2018-11-27 are small?
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,080
657
263
Houston
cPanel Access Level
DataCenter Provider
Hello,


My own server has similar behavior:

Code:
[[email protected] backup]# du -h --max-depth=1
3.9M    ./.meta
724M    ./2018-12-05
477M    ./2018-12-04
305M    ./2018-12-06
305M    ./2018-12-08
304M    ./2018-12-07
2.1G    .
It's based on what's changed/being hardlinked to. This might be helpful for you: How do the backups work exactly?


Thanks!