On Tue, Nov 29, 2011 at 04:14:31PM +0100, Stefan G. Weichinger wrote:
> Am 29.11.2011 15:32, schrieb Jens Berg:
> > On Tue Nov 29 2011 15:17:35 GMT+0100
> > [email protected] (Brian Cuttler) wrote:
> >
> >>>> (although I have to keep in mind that
> >>>> amanda doesn't follow symlinks, does it?).
> >>
> >>> No, AFAIK it doesn't, and you probably don't want to copy the tarballs
> >>> around before running amdump.
> >
> > Just remembered the -h option of gnutar, which dereferences symlinks. So
> > you should be able to create a directory on you amanda server, create
> > symlinks to the required target files of your mounted CIFS share and run
> > amdump on that directory with a dumptype definition using gnutar -h
>
> yep, thanks.
>
> Right now I have it mounted via mount.cifs and browse the files to get a
> feeling for what is possible.
>
> For example I could run
>
> # find . -type f -mtime -1
>
> and tar up these files somewhere on the amanda server to dump them later.
>
> Unfortunately the filenames are rather stupid. The timestamp in the
> filename does not correspond to the ctime ... for example. At least
> there is an "F" in it for FULL, I assume.
There has been lots of talk of mv/cp/symlinks. What about
good old hard links? Does a mounted CIFS allow hard links?
You could have a directory (bkupdir) on the CIFS share,
run your find from above and have it execute an
"exec ln {} bkupdir". No data moves, no names disappear
from the original dir.
--
Jon H. LaBadie [email protected]
11226 South Shore Rd. (703) 787-0688 (H)
Reston, VA 20190 (609) 477-8330 (C)