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
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
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).
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 !