Re: [zfs-discuss] ZFS snapshots & rsync --delete

2009-10-18 Thread Richard Elling
On Oct 18, 2009, at 11:23 AM, Sander Smeenk wrote: Quoting Chris Kirby (chris.ki...@sun.com): If you have a snapshot named "p...@snap", this: # rmdir /pool/.zfs/snapshot/snap is equivalent to this: # zfs destroy p...@snap Similarly, this: # mkdir /pool/.zfs/snapshot/snap is equivalent to this

Re: [zfs-discuss] ZFS snapshots & rsync --delete

2009-10-18 Thread Sander Smeenk
Quoting Chris Kirby (chris.ki...@sun.com): > If you have a snapshot named "p...@snap", this: > # rmdir /pool/.zfs/snapshot/snap > is equivalent to this: > # zfs destroy p...@snap > > Similarly, this: > # mkdir /pool/.zfs/snapshot/snap > is equivalent to this: > # zfs snapshot p...@snap > > This ca

Re: [zfs-discuss] ZFS snapshots & rsync --delete

2009-10-18 Thread Chris Kirby
On Oct 18, 2009, at 11:37 AM, Sander Smeenk wrote: I tried to indicate that it's strange that rmdir works on the snapshot directory while files inside snapshots are immutable. This, to me, is a bug. If you have a snapshot named "p...@snap", this: # rmdir /pool/.zfs/snapshot/snap is equivale

Re: [zfs-discuss] ZFS snapshots & rsync --delete

2009-10-18 Thread Sander Smeenk
Quoting dick hoogendijk (d...@nagual.nl): > > Well, thats what i would expect too. It seems strange that you can't > > edit or remove singular files from snapshots [...] > That would make the snapshot not a snapshot anymore. There would be > differences.. I'm well aware of that. You're replying t

Re: [zfs-discuss] ZFS snapshots & rsync --delete

2009-10-18 Thread dick hoogendijk
On Sun, 2009-10-18 at 18:12 +0200, Sander Smeenk wrote: > Well, thats what i would expect too. It seems strange that you can't > edit or remove singular files from snapshots [...] That would make the snapshot not a snapshot anymore. There would be differences.. __

Re: [zfs-discuss] ZFS snapshots & rsync --delete

2009-10-18 Thread Sander Smeenk
Quoting A Darren Dunham (ddun...@taos.com): > > i noticed rsync -removes- snapshots even though i am not able to do > > so myself, even as root, with plain /bin/rm. > I never liked this interface. I want snapshots to be immutable to > operations within the filesystem itself. Well, thats what i w

Re: [zfs-discuss] ZFS snapshots & rsync --delete

2009-10-16 Thread A Darren Dunham
On Fri, Oct 16, 2009 at 01:42:49PM +0200, Sander Smeenk wrote: > Recently i switched on 'snapdir=visible' on one of the zfs volumes to > easily expose the available snapshots and then i noticed rsync -removes- > snapshots even though i am not able to do so myself, even as root, with > plain /bin/rm

[zfs-discuss] ZFS snapshots & rsync --delete

2009-10-16 Thread Sander Smeenk
Hi! I am new to zfs / opensolaris but getting the hang of it. :) In my setup i have a large zpool called 'backup' which has zfs'es for servers that i backup with rsync. I export those zfs'es via NFS to the remote servers so i have easy access to the most recent backup and the snapshots which i ma