From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46300 invoked by alias); 18 Jan 2017 03:34:32 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 44659 invoked by uid 89); 18 Jan 2017 03:32:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.5 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Think, andrea, Andrea, Venturoli X-HELO: mail-yw0-f182.google.com Received: from mail-yw0-f182.google.com (HELO mail-yw0-f182.google.com) (209.85.161.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Jan 2017 03:32:25 +0000 Received: by mail-yw0-f182.google.com with SMTP id v200so551979ywc.3 for ; Tue, 17 Jan 2017 19:32:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=64IivEm7nzewx6xfR9zARth97UNPOe/ZVRHIT2DAF5A=; b=YWvpmTCMYsjvFDDH+a53G+zRd2HSGPJ5oPVk4IYIPvrK5x5LuB4kHl0Ld2eXuGlek0 +jtkzEb8sQjvf8H+uYF97pyFuiYOP7Bo9hkxbeCndPKNn8B8Or11jEmNF1+sL20yy7RE bikiCw0mR447TDxOV84SqXFoYy1WNBB0FLcREKP+owg2yx292BNOIzXCNrQ7749mbhuw mmOgsEFpiCQdRYDhK2JhF4M4k/gpBHHtHeDRb9KUrLHxtkpMI85kAu1HcaLExFguo8uy nTJfPmX/RiRlhxw0aWlrOmADKw9QYhNuQXzHvHY1ILgxVVo+nE9iaX9/TJO56fDJ8cvd of0Q== X-Gm-Message-State: AIkVDXLMiKy/AFH9IzHdPcPDOpwaFR5or/CR51sM4oEcFC0QpQaFC0pKktRA6XGgmDw1bq69rGFnoXNth1hEug== X-Received: by 10.13.247.6 with SMTP id h6mr846801ywf.179.1484710343466; Tue, 17 Jan 2017 19:32:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.0.85 with HTTP; Tue, 17 Jan 2017 19:32:03 -0800 (PST) In-Reply-To: <6aac2f2a-77e9-43a0-e62c-f7d68b5f9f66@netfence.it> References: <6aac2f2a-77e9-43a0-e62c-f7d68b5f9f66@netfence.it> From: Doug Henderson Date: Wed, 18 Jan 2017 03:34:00 -0000 Message-ID: Subject: Re: "Copy until full" tool To: cygwin Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00234.txt.bz2 On 17 January 2017 at 01:57, Andrea Venturoli wrote: > > Hello. > > I've got a 2TB backup HD which is filled with several copies (at different times) of the same data; in other words, I could have the following directories: > > Data20170117 > Data20170110 > Data20170103 > ... > Data20161220 > User20170117 > User20170110 > User20170103 > ... > User20161220 > DB20170117 > DB20170110 > DB20170103 > ... > DB20161220 > > > > Now I periodically need to copy this HD to another one, which is, alas, only 1TB. > So I'd like to only transfer the most recent copies, either until the disk is full or by specifying a number of "copies" to keep. Of course the older ones should be deleted. > > Think rsync (which I've been using extensibly), but with a size barrier. This is not specifically a cygwin solution, but I am using it with my cygwin installation as well as interesting parts of my windows installation. Restic is a program that does backups right. home page: https://restic.github.io/ documentation: https://restic.readthedocs.io/en/latest/ source: https://github.com/restic/restic Read the home page. I think it meets its design goals very well. HTH, Doug -- Doug Henderson, Calgary, Alberta, Canada - from gmail.com -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple