From: Ben T. <bt...@gm...> - 2016-06-09 02:36:22
|
On Wed, Jun 8, 2016 at 10:25 PM, Elliot Finley <efi...@gm...> wrote: > mfsmakesnapshot makes a ”real” snapshot (lazy copy, like in case of > mfsappendchunks) of some object(s) or subtree (similarly to cp -r command). > It’s atomic with respect to each SOURCE argument separately. If DESTINATION > points to already existing file, error will be reported unless -o > (overwrite) option is given. Note: if SOURCE is a directory, it’s copied as > a whole; but if it’s followed by trailing slash, only directory content is > copied. > > mfsmakesnapshot does a copy-on-write copy... i.e. only the metadata is > copied. it happens very quickly. if your tens of thousands of files are > all in a single directory tree, just copy the head directory. > Thank you Elliot, I think this is exactly what I was looking for. |