[Eug-lug] help with directory listing
Rob Hudson
rob at tastybrew.com
Tue Mar 4 18:02:46 PST 2008
I haven't scripted it yet, but that should do it.
I have a Python script that I've been manually pushing little backups
up to Amazon's S3. Things like bzipped database dumps or SVN dumps.
I always want the latest and want to just shove it off the server as a
cheap and easy offsite backup. So I'll use that to get the latest
file inside my Python script.
Thanks,
Rob
On Tue, Mar 4, 2008 at 5:50 PM, Fred James <fredjame at fredjame.cnc.net> wrote:
>
> Rob Hudson wrote:
>
> >Of course... how could I forget head and tail?!
> >
> >Thanks.
> >
> >On 3/4/08, Hal Pomeranz <hal at deer-run.com> wrote:
> >
> >
> >>ls -t | head -1
> >>
> >>
> Rob Hudson
> Will that do it for you, or do you need something to exclude/include any
> particular type(s) of file(s)?
> Regards
> Fred James
>
More information about the EUGLUG
mailing list