wok-current rev 13685

btrfs-progs: do not create 2 snapshots simultaneously...
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 03 11:12:37 2012 +0100 (2012-12-03)
parents 3c7348ca269f
children 7f54c4867f8e
files btrfs-progs/stuff/btrfs-snapshot
line diff
     1.1 --- a/btrfs-progs/stuff/btrfs-snapshot	Sat Dec 01 08:24:37 2012 +0000
     1.2 +++ b/btrfs-progs/stuff/btrfs-snapshot	Mon Dec 03 11:12:37 2012 +0100
     1.3 @@ -1,10 +1,11 @@
     1.4  #!/bin/sh
     1.5  
     1.6  # Keep last 30 daily snapshots with crontab
     1.7 +# Note: do not create 2 snapshots simultaneously (break btrfs mountage)
     1.8  #0 * * * * /usr/bin/btrfs-snapshot 5  -hourly
     1.9 -#0 0 * * * /usr/bin/btrfs-snapshot 30 -daily
    1.10 -#0 0 1 * * /usr/bin/btrfs-snapshot 12 -monthly
    1.11 -#0 0 1 1 * /usr/bin/btrfs-snapshot 99 -yearly
    1.12 +#1 0 * * * /usr/bin/btrfs-snapshot 30 -daily
    1.13 +#2 0 1 * * /usr/bin/btrfs-snapshot 12 -monthly
    1.14 +#3 0 1 1 * /usr/bin/btrfs-snapshot 99 -yearly
    1.15  
    1.16  btrfs_list()
    1.17  {