Skip to main content

Incremental backups and hardlinks question

Comments

2 comments

  • cPanelMichael
    Hello, The remote incremental backup process (with rsync) is designed to check if the files associated with the account backup on the cPanel server also exist on the remote backup destination. If the files do not exist on the remote backup destination (or if the files have changed), then it copies the actual files. Otherwise, it makes use of hard links when the files already exist on the remote backup destination. The following document is available if you'd like to read more about how account backup information is stored:
    0
  • brt
    This confused me at first too, trying to figure out how incremental backups were working using date-named directories that were eventually deleted. A hard link is different than a Windows-type "shortcut". Your first copy of a file is just a file. The second instance of that same identical file also appears as a file -- an identical file -- but the two (or more) are actually one and the same. Either one can be deleted, and the other will remain as a completely normal file. Every "copy" of a hardlink/file basically increments a "copy count" on the original/only actual file, and deleting any of the hardlinks/files just decreases that copy count by one until there's only one remaining, at which point another delete removes the file. Hopefully that makes more sense.
    0

Please sign in to leave a comment.