Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: Date: Wed, 9 Nov 2005 11:02:12 +0800 From: nidhog To: cygwin AT cygwin DOT com Subject: Re: Winzip & Zip In-Reply-To: <8i6um1dfkcr3m7jl18jalaq2th9cvi1bnp@4ax.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: <8i6um1dfkcr3m7jl18jalaq2th9cvi1bnp AT 4ax DOT com> X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id jA932Ltn031746 On 11/7/05, zzapper wrote: > Hi, > Everyone knows the very useful Winzip, however some pretty clever "automatic" stuff can be done > using CygWins zip > > > # zip a webroot but only html or php files > zip.exe -r web.zip c:/intranet/web/ -i *.php *.htm* > > # zip a list of files where list.txt contains one file name per line > zip all.zip -@ < list.txt > > find . -name "*.[ch]" -print | zip source -@ > > Now you can start using the above for a regular backup if you link them to a cron nice tips! used to use zip for backups a long time ago... then tar.gz... now i use rsync. best, -- /nh -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/