On Tue, Jan 07, 2014 at 02:49:51AM -0800, Marc MERLIN wrote: > I read different howtos on the wiki and oracle docs, but I can't get it > to work: > > legolas:/mnt/btrfs_pool1# btrfs subvolume snapshot -r tmp tmp_read_only_new > Create a readonly snapshot of 'tmp' in './tmp_read_only_new' > legolas:/mnt/btrfs_pool1# sync > legolas:/mnt/btrfs_pool1# btrfs send tmp_read_only_new | btrfs receive /mnt/btrfs_pool2/ > At subvol tmp_read_only_new > At subvol tmp_read_only_new > > # Make a new snapshot later and try to sync it: > legolas:/mnt/btrfs_pool1# mv tmp_read_only_new tmp_read_only > legolas:/mnt/btrfs_pool1# btrfs subvolume snapshot -r tmp tmp_read_only_new > Create a readonly snapshot of 'tmp' in './tmp_read_only_new' > legolas:/mnt/btrfs_pool1# btrfs send -p tmp_read_only tmp_read_only_new | btrfs receive /mnt/btrfs_pool2/ > At subvol tmp_read_only_new > At snapshot tmp_read_only_new > ERROR: creating snapshot tmp_read_only_new -> tmp_read_only_new failed. File exists > > This is where I get stuck: > Obviously /mnt/btrfs_pool2/tmp_read_only_new already exists since it's the reference backup volume. > > What am I doing wrong? You need to move /mnt/btrfs_pool2/tmp_read_only_new to a different name as well. The send stream contains the name of the subvolume it wants to create, so it's trying to create a subvolume called "tmp_read_only_new" in /mnt/btrfs_pool2, and there's one there already. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- It's against my programming to impersonate a deity! ---
Attachment:
signature.asc
Description: Digital signature
