From owner-freebsd-questions@freebsd.org Mon Jan 25 11:46:29 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F4194A45099 for ; Mon, 25 Jan 2016 11:46:28 +0000 (UTC) (envelope-from moiseev@mezonplus.ru) Received: from mx.mezonplus.ru (mx.mezonplus.ru [91.211.181.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B09279D3 for ; Mon, 25 Jan 2016 11:46:28 +0000 (UTC) (envelope-from moiseev@mezonplus.ru) Received: from [192.168.255.10] (unknown [192.168.255.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx.mezonplus.ru (Postfix) with ESMTPSA id ABDB3622BD for ; Mon, 25 Jan 2016 14:37:19 +0300 (MSK) Subject: Re: rolling backup To: freebsd-questions@freebsd.org References: <56A5F7FF.1050606@gmail.com> <56A6017E.4020801@freebsd.org> From: Alexander Moisseev Message-ID: Date: Mon, 25 Jan 2016 14:37:20 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:46.0) Gecko/20100101 Thunderbird/46.0a1 MIME-Version: 1.0 In-Reply-To: <56A6017E.4020801@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2016 11:46:29 -0000 On 25.01.16 14:05, Matthew Seaman wrote: > Deleting 'all but the last N' is a good strategy with backups. Suppose > for whatever reason, backup fails for N nights in a row. If you just > deleted backup files that were over N days old, you'ld be left without > any backups at all after a certain time. However, keeping a certain > number of files means that you still have some backups available, albeit > older than would be ideal. > An exponential expiry strategy can solve that problem. https://github.com/moisseev/rmexp/blob/master/rmexp/rmexp.pod There is no support for backups stored locally as files yet, but it is not complicated to add. -- Alexander