Skip to content
Thomas Martin edited this page Jun 17, 2022 · 2 revisions

tobackup-report generates an email containing the current state of the backup archive.

It displays the size of each incremental backup.

Example :

======================
Backup archives report
======================

Archives daily :
2019/09/07 = 25T
2019/09/06 = 25T
2019/09/05 = 25T
2019/09/04 = 25T
2019/09/03 = 25T
2019/09/02 = 25T
2019/08/31 = 25T

Archives weekly :
2019/09/08 = 25T
2019/08/25 = 25T
2019/08/18 = 25T

Archives monthly :
2019/09/01 = 25T
2019/08/01 = 25T
2019/07/01 = 24T

Instead of computing the storage size for each incremental, we could save rsync --stats output after each execution and display a more detailed report.

Rsync stats output looks like :

Number of files: 24 (reg: 22, dir: 2)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 1
Total file size: 433,739,071 bytes
Total transferred file size: 16,725,875 bytes
Literal data: 16,725,875 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 16,730,989
Total bytes received: 36

sent 16,730,989 bytes  received 36 bytes  33,462,050.00 bytes/sec
total size is 433,739,071  speedup is 25.92

So the email could looks like :

2019/09/07

    - Daily incremental
    - Completed at : <time>
    - Full incremental size : 25T
    - Variation since last backup : 109M
    - New files : 25
    - Updated files : 14
    - Deleted files : 7
    - Total data copied :

2019/09/06

    - Weekly incremental
    [...]

Clone this wiki locally