[Borgbackup] prune before create?

Adrian Klaver adrian.klaver at aklaver.com
Thu Feb 23 09:02:36 EST 2017


On 02/23/2017 03:45 AM, Neal Becker wrote:
> I saw some advice a few weeks ago on this list that it made more sense
> in my regular backup script, to prune first, then create new backup
> (than the other way around, as in the example script). I've been using
> this since, but I'm wondering, in case of some failure, wouldn't I
> rather backup first then prune?

Well the prune will be working from the oldest to newest so your most 
recent backup(s) prior to the failure will still be there. The number of 
those recent backups will be dependent on how often you create archives 
and how aggressively you prune. If this does not answer your question, 
is there a specific concern you have?


-- 
Adrian Klaver
adrian.klaver at aklaver.com


More information about the Borgbackup mailing list