Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

A lot of time people ask how rsync backup type works and how hardlinks are used. Following article describes when files are created and deleted on the file system Dateien and when hardlinks are used.

 

Hardlinks is a filsystem feature of Linux etx3 and ext4 filesystem. They are pointer which connect a filename with a file contents. That way hardlinks can be used to point to the same file contents with different filenames from different locations in the file tree. Linux command  ln can be used to create hardlinks.

Furing the first rsync backup run all files are copied and create on the backup space. All following backup runs will copy only changed an new files. Therefore most of the time these backup runs are relatively short compared to the first full backup. for all other files hardlinks are created in the backup filesystem which point to the previously saved file version.When files were deleted there will be no hardlinks created and thus the file is deleted in the backup. This allows to have full access to all files and files are copied and saved only once. This saves backup time and -space.

 

Following picture shows again how files and hardlinks are created and deleted.

raspiBackup rsync

Add comment

*** Note ***

Comments are welcome. But in order to reject spam posts please consider following rules:
  1. All comments are reviewed manually and it usually takes one day until a comment will be published.
  2. Comments with string http are rejected with message You have no rights to use this tag.
  3. You have to wait at least one hour until you can post another comment.