From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54119 invoked by alias); 17 Jan 2017 08:58:36 -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 54036 invoked by uid 89); 17 Jan 2017 08:58:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=bonus, H*RU:CriticalPath, Hx-spam-relays-external:CriticalPath, bye X-HELO: smtp207.alice.it Received: from smtp207.alice.it (HELO smtp207.alice.it) (82.57.200.103) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 17 Jan 2017 08:58:33 +0000 Received: from soth.ventu (82.52.25.226) by smtp207.alice.it (8.6.060.28) (authenticated as acanedi@alice.it) id 58760B4800FE1126 for cygwin@cygwin.com; Tue, 17 Jan 2017 09:57:57 +0100 Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) by soth.ventu (8.15.2/8.15.2) with ESMTP id v0H8vp4R053261 for ; Tue, 17 Jan 2017 09:57:54 +0100 (CET) (envelope-from ml@netfence.it) To: cygwin@cygwin.com From: Andrea Venturoli Subject: "Copy until full" tool Message-ID: <6aac2f2a-77e9-43a0-e62c-f7d68b5f9f66@netfence.it> Date: Tue, 17 Jan 2017 08:58:00 -0000 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00207.txt.bz2 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. I could try and write my custom script, but I'd hate to reinvent the wheel. Does such a tool already exist in Cygwin? Failing that, somewhere else? Bonus for retrieving the original data via FTP, but that's not required. bye & Thanks av. -- 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