On Tue, Jun 04, 2013 at 11:07:11AM +0200, Stefan G. Weichinger wrote:
>
> I have to pull in an SQL-dump from a Windows Server ... using smbclient
> ... works fine so far.
>
> The guy from the software company told me to look at the creation date
> of that dump, sometimes some windows-services crash and then the dump
> isn't created etc.
>
> Sure, that should be solved on the server ... but aside from that:
>
> Is there a way to somehow check the date of that dump from within
> amanda? Some script/API/magic?
>
> Or should I cifs-mount that share, look at the file, etc?
>
> Just a hack to be done ;-)
>
Probably not what you are looking for, but you could use smbclient
to do a dos "dir" command on the file.
$ smbclient -N -c 'dir ifconfig-mumsxp /t:c' //cyberxp/jon
Domain=[CYBERXP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
ifconfig-mumsxp A 933 Mon Feb 21 18:55:46 2011
51199 blocks of size 2097152. 35262 blocks available
$
The "/t:c" option causes create timestamp to be printed.
Of course you still have to get rid of headers etc.
Jon
--
Jon H. LaBadie [email protected]
11226 South Shore Rd. (703) 787-0688 (H)
Reston, VA 20190 (609) 477-8330 (C)