On 5/6/13, James Turner <[email protected]> wrote:
> On Sun, May 05, 2013 at 10:22:53PM -0500, Abel Abraham Camarillo Ojeda
> wrote:
>> Where is the port...?
>>
>> On Sun, May 5, 2013 at 10:07 PM, Alan Corey <[email protected]> wrote:
>> > Somebody in misc@ suggested I send this to ports when I posted it
>> > there.
>> >
>> > http://ab1jx.webs.com/calcs/backdir/index.html
>> >
>> > It's for making backups at random times (manually invoked) of the
>> > files in a directory to a subdirectory called backups (which it will
>> > create if needed). Each backup file has the name and extension of the
>> > original, with the last modified date and time appended to the name,
>> > like bd_2013-05-05_1315.c. It only copies files changed since the
>> > last time it was run and it can be used for saving versions of things.
>> >
>> > Written in pure C, no dependencies, it even runs under Linux but it
>> > was written under OpenBSD 5.2.
>> >
>> > Alan
>> > --
>> > Credit is the root of all evil. - AB1JX
>> >
>>
>
> I took it upon myself to throw together a port. Since it's such a simple
> tool it only needs a simple port.
>
> One request to the OP any chance you could add a 20130505 or a version
> number to the tar.gz file? That way if you ever release a new version
> the port won't break with bad checksum errors. Thanks.
>
> --
> James Turner
>
Yes, there will be more versions for a little while. Maybe posting
this was premature, but I thought the next release was a long while
away so it was OK.
I discovered today this doesn't handle spaces in filenames (I never
use them), so I fixed that. Also it appends the date and time where
the last period in a filename is, so file.tar.gz ends up
file.tar_2013-05-06_1234.gz which looks a little funny. I haven't
decided how to deal with that. Multiple periods cause a problem since
I used strrchr('.') to place the split.
If there are suggestions I might make more changes, so the checksum
won't be stable for a little while. I don't anticipate changing it
very often after initial beta testing, if ever.
Thank you for making a port, I was looking up how to do that, but I've
been working on something else all day. This probably needs week or
so settling time: I've never published anything this way before. How
do I reconnect to the project?
There is now a http://ab1jx.webs.com/calcs/backdir/backdir_20135056.tar.gz
Thanks again,
Alan Corey, ab1jx
--
Credit is the root of all evil. - AB1JX