On Thu, Feb 23, 2012 at 7:02 PM, Anand Jain <anand.j...@oracle.com> wrote:
>
>
>  autosnap code is available either end of this week or early
>  next week

I thought you stopped working on this :D

Alternatives are good though. Will test yours when it's out.

FWIW, I also have another one, based on zfsonlinux's autosnapshot script :D

> and what you will notice is autosnap snapshots
>  are named using uuid.
>
>  Main reason to drop time-stamp based names is that,
>    - test (clicking on Take-snapshot button) which took more
>  than one snapshot per second was failing.
>    - a more descriptive creation time is available using a
>   command line option as in the example below.
>  -----
>  # btrfs su list -t tag=@minute,parent=/btrfs/sv1 /btrfs
>  /btrfs/.autosnap/6c0dabfa-5ddb-11e1-a8c1-0800271feb99 Thu Feb 23 13:01:18
> 2012 /btrfs/sv1 @minute
>  /btrfs/.autosnap/5669613e-5ddd-11e1-a644-0800271feb99 Thu Feb 23 13:15:01
> 2012 /btrfs/sv1 @minute
>  -----
>  As of now code for time-stamp as autosnap snapshot name is
>  commented out, if more people wanted it to be a time-stamp
>  based names, I don't mind having that way. Please do let me know.

For me the main bonus point of having timestamp in names in the
abiility to sort it by creation date by simply using "ls". As for the
more-than-one-click-per-second problem, in my script I simply let it
fail and return informative-enough error message.

A workaround would be adding nanosecond timestamp, or put the UUID
AFTER the time stamp, e.g:
/btrfs/.autosnap/@minute_20120223_131501_123456_5669613e-5ddd-11e1-a644-0800271feb99

-- 
Fajar
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to