delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/25/13:38:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: <5.2.0.9.2.20030325103154.0235e4f8@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Tue, 25 Mar 2003 10:38:57 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: Forum for sharing windows-specific 'bash' scripts.
In-Reply-To: <3E809E86.8020700@dufair.org>
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0303251157340 DOT 561-100000 AT slinky DOT cs DOT nyu DOT edu>
<Pine DOT GSO DOT 4 DOT 44 DOT 0303251157340 DOT 561-100000 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0

--=====================_41231015==_
Content-Type: text/plain; charset="us-ascii"; format=flowed

Jason,

I have a snapshot-generating script called "snap." It's attached. There 
is usage output via the "--help" argument and a little header 
commentary in the script itself.

% snap --help
# snap: Usage
#   -c          Run target directory's "clean" program, if any
#   -D <dir>    Place snapshot file in specified <dir>
#   -f          Force overwrite of existing snapshot file
#   -q          Operate quietly (only error messages)
#   -v          Operate verbosely (list files placed in snapshot)
#   -nv         Operate non-verbosely (only action summary output)
#   -j          Use Bzip2 compression
#   -z          Use Gzip compression
#   -w          Create Zip (a.k.a. WinZip) archive
#   -u          Use no compression
#   -m          Include minute in snapshot file name timestamp
#   -h          Include hour in snapshot file name timestamp
#   -d          Include day in snapshot file name timestamp
#   -t          Include no timestamp in snapshot file name'
#   --help      Print this usage summary


Randall Schulz


At 10:23 2003-03-25, Jason Dufair wrote:
>I'd love to see the scripts.  I have written some of my own, but have 
>run into the full name and path problem.  Please post.
>
>Igor Pechtchanski wrote:
>
>>On Tue, 25 Mar 2003, Lee D. Rothstein wrote:
>>
>>
>>
>>>Because of a number of problems in backup, I have written a
>>>couple of Cygwin-specific bash scripts that I use to backup my
>>>system. Is there a forum for sharing these kinds of things? (Of
>>>course, they use 'bzip' and 'tar'.) BTW, I am not convinced that
>>>these scripts will save the "free world" from the heartbreak of
>>>psoriasis. Rather, I think that my script and others like it will
>>>benefit from sharing of ideas and "peer review". However, they
>>>are undeserving of full-fledged open
>>>source/Freshmeat/SourceForge/... treatment.
>>>
>>>One of the interesting motives of these scripts, BTW, is
>>>preserving the full names and paths of the original files and
>>>directories on NTFS, when they are copied to other media such
>>>as CD-R/RW, Firewire and FAT ... devices.
>>>
>>>Thanks,
>>>Lee
>>>
>>
>>So...  What's the question? ;-)
>>
>>If you were simply planning to announce the scripts, then this probably is
>>the best forum (in which case you might also want to attach them).
>>
>>Alternatively, you could try providing (and maintaining) them as a Cygwin
>>package (which is not as hard as people think), and see if they get
>>accepted/voted for.
>>     Igor
>>
>
>--
>Jason Dufair

--=====================_41231015==_
Content-Type: application/octet-stream; name="snap"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="snap"

IyEvYmluL2Jhc2gKCgojIENyZWF0ZSBhIHNuYXBzaG90IG9mIGEgZGlyZWN0b3J5CiMKIyBOb3Rl
OgojCVRoZXJlIGlzIGFuIGluYnVpbHQgYXNzdW1wdGlvbiBvZiBhIEphdmEgZGV2ZWxvcG1lbnQg
ZGlyZWN0b3J5CiMJaW4gdGhlIGRlZmF1bHQgY2xlYW51cCAoLWMgb3B0aW9uKSBhY3Rpb24gcGVy
Zm9ybWVkIHdoZW4gdGhlCiMJdGFyZ2V0IGRpcmVjdG9yeSBkb2VzIG5vdCBjb250YWluIGl0cyBv
d24gY2xlYW51cCBzY3JpcHQuCiMKIyBOT1RFOg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WVcIiIKCQkJZWxzZQoJCQkJZWNobyAiQ3Jl
YXRlZCBzbmFwc2hvdCBcIiRzbmFwc2hvdE5hbWVcIiIKCQkJZmkKCQlmaQoJCTs7Cgllc2FjCmRv
bmUK

--=====================_41231015==_
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--=====================_41231015==_--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019