X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=xCh AiTqUIqRVgPF4w3oXrYikaFzu/WyXpD7LcG1n2c2Djljh0uwfPAA/ftnoROg77Q1 VmhC7fMOLrfpaLReXzUlxosvP57krj0wGb1jTXmNu6MAcPwRhWZX9mWNUeEK1k/W 5Jc5BWFa/Yirn6r+xMKC20nvaq5s9PjPUn7XsCW4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; s=default; bh=0FRXpYgcc ZVmWuExMDk11ji350Q=; b=aVAsURxsrjj/4rzmsmf6PFwjhmM79a9S1uG3CFunR DHz0fHpN/i/R0GEXIPc6OVTba+4RDBIGjMQlJimRO81p+LXZUT254Z2xHzyoAaLB 57QyB2Di4wuSObQYYV4FRld1Vf9Xm/cPvQEvOa5kracnjX/7g1Fqfj5acRC7B6W7 oQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 To: cygwin AT cygwin DOT com From: Andrea Venturoli Subject: "Copy until full" tool Message-ID: <6aac2f2a-77e9-43a0-e62c-f7d68b5f9f66@netfence.it> Date: Tue, 17 Jan 2017 09:57:51 +0100 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 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