From owner-freebsd-questions@freebsd.org Thu Feb 11 18:52:21 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 77558AA674A for ; Thu, 11 Feb 2016 18:52:21 +0000 (UTC) (envelope-from sergeig.public@gmail.com) Received: from mail-vk0-x231.google.com (mail-vk0-x231.google.com [IPv6:2607:f8b0:400c:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3164AFA1 for ; Thu, 11 Feb 2016 18:52:21 +0000 (UTC) (envelope-from sergeig.public@gmail.com) Received: by mail-vk0-x231.google.com with SMTP id k196so43920472vka.0 for ; Thu, 11 Feb 2016 10:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RZQ2ik3FDFzipN14ywkRwVEqM6+PVUVi7obNtXb0h4c=; b=IP21cP2ygryfaijCfFOL84HS3cOcL7cdvq7+9gxRtKsItcjFIx68r8x+X4kFUF0BqO YhQBy9iVrnWDuf6tB9bt9k5BdO63ub3aKRURK+ZxHjAxSP7MAEw6Ymu+aqutu6G+M1Bm nuk9rCHtpJRN5tErwF3albBvS4u+RYPfsCAmf2qCg5KtOnqety0Oei9tMjR8TvM35QiC 1z8IupydyYM8B4jBHOPQgxf7L9eGf6749N/obSq2HDtIpSJ8qrGkCBOdnbc90OlsRKs5 tzLhfz+RWruB68Ukg9okumRerme68bTeJlLc2cYurDrGWBDma+kDXsbrX/2QLIqbASue eVwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=RZQ2ik3FDFzipN14ywkRwVEqM6+PVUVi7obNtXb0h4c=; b=V3Zn+EyIjGAYWVU296f5PbsvaMGGae/4+d13RQTFI2UOUiLnbNISsup1CrFbHWtDnA hCK6w4YTCcCwReU+udHNppTYry0i3t+4hrFenDEcJNTel46MxKMXUJQd8bmDFGo7KOYH OUqJR2QcHQ5hXpPPZurJFlpBbxsV3VnYfhgPiDKWBgaLIvezY3xM7RW/Md1dzZdmc/Tp ve/L+r5GW2t9HAorIxTEsih1mep/FsIJH9jAmy8+lQdfUbvtY3CQlkLY/7MPaik/tOyd tE0r4WVDk13Si4CITH9N2os/dK7HznIQp/ov5auOFXRWn4da1BSw6wuOXtsi9tXxkF3c WdjA== X-Gm-Message-State: AG10YOTDKJLJdjqomfI+1+TefNJNd6ftNUQp8mspYjvUi6it/HtPTEQznqm+QGnIwacVtXIEziD8o911pWSMeA== MIME-Version: 1.0 X-Received: by 10.31.47.88 with SMTP id v85mr35841429vkv.118.1455216740136; Thu, 11 Feb 2016 10:52:20 -0800 (PST) Received: by 10.31.174.132 with HTTP; Thu, 11 Feb 2016 10:52:20 -0800 (PST) In-Reply-To: References: <56A5F7FF.1050606@gmail.com> <56A6017E.4020801@freebsd.org> Date: Thu, 11 Feb 2016 10:52:20 -0800 Message-ID: Subject: Re: rolling backup From: Sergei G To: Alexander Moisseev Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Thu, 11 Feb 2016 18:52:21 -0000 I ended up creating a rolling backup script. It does not use exponential strategy, but is simple enough for me: https://github.com/Kulak/rollingdump I pushed it to github as a backup strategy :) On Mon, Jan 25, 2016 at 3:37 AM, Alexander Moisseev wrote: > 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 > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >