btrbk icon indicating copy to clipboard operation
btrbk copied to clipboard

Archive, need to have more details

Open citronbleuv opened this issue 2 years ago • 1 comments

I'm not sure to understand something.

I have this config :

  • target_preserve_min latest
  • target_preserve 3d

Today, I have 3 backups

  • 2020-01-01
  • 2020-01-02
  • 2020-01-03 (today)

I run a archive command, so I should have in archive folder :

  • 2020-01-01
  • 2020-01-02
  • 2020-01-03

Now, we are the 2020-01-12, I run a new backup. So I should have

  • 2020-01-12

Now I run archive, logicaly I should have :

  • 2020-01-12

But how that work, archive command will remove the old and will resend all ? Or the system can still do the difference between the last archive 2020-01-03 and send the difference only ?

citronbleuv avatar Mar 12 '22 04:03 citronbleuv

IIUC, that example should make btrbk

  • always preserve the latest snapshot
  • keep 3 daily snapshots on the target (where I believe the documentation already defines the algorithm for identifying *ly snapshots)

Therefore, I believe btrbk will, in your example:

  • create 2020-01-12
  • delete 2020-01-01 (and any before that)
  • since there's always at least one snapshot, still send 2020-01-12 incrementally

Anyone please correct me if I've got this wrong.

Edit: on reviewing the question, I notice that you've defined only the target_preserve_* config but are using the archive command. If my answer is correct, it applies only if you change your example target_preserve_* config to archive_preserve_*.

luxagen avatar Apr 20 '22 13:04 luxagen