0

Which do you think is the best and most simple way to prevent automatic backups filling all disk space in Linux, before it actually happens?

I would like to automatically recycle the oldest ones when the disk reaches, let's say 85% full

Dave M
  • 4,514
  • 22
  • 31
  • 30
fjcobas
  • 11
  • 1

2 Answers2

0

I generally use rsnapshot with appropriate retention policies. It has the (big) added advantage to provide an incremental backup approach (ie: almost no additional space is used by two identical backups) while giving you always up-to-date "full tree" in the latest snapshot (ie: what other products call "syntetic full backup").

However, this approach must be combined with robust free space monitor/alarm, should used space increase faster then expected (for example via unique data, which are not shareable between incremental runs).

shodanshok
  • 47,711
  • 7
  • 111
  • 180
0

You should use a separated storage for backup, may be a network storage or a disk partition. That will keep your system safe from your backup job.

I agree with @shodanshok monitoring your system with a tool is another key. have a look to netdata !

inattendu
  • 318
  • 2
  • 6