public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* Problems with incremental send/receive
@ 2014-01-08 22:04 Felix Blanke
  2014-01-09  2:10 ` Wang Shilong
  0 siblings, 1 reply; 7+ messages in thread
From: Felix Blanke @ 2014-01-08 22:04 UTC (permalink / raw)
  To: linux-btrfs

Hi List,

My backup stopped working and I can't figure out why. I'm using
send/receive with the "-p" switch for incremental backups using the
last snapshot as a parent snapshot for sending only the changed data.

The problem occurs using my own backup script. After I discovered the
problem I did a quick test using the exact commands from the wiki with
the same result: It doesn't work. Here is the output:


server ~ # ./test_snapshot.sh
++ btrfs subvolume snapshot -r /mnt/root1/@root_home/ /mnt/root1/snapshots/test
Create a readonly snapshot of '/mnt/root1/@root_home/' in
'/mnt/root1/snapshots/test'
++ sync
++ btrfs send /mnt/root1/snapshots/test
++ btrfs receive /mnt/backup1/
At subvol /mnt/root1/snapshots/test
At subvol test
++ btrfs subvolume snapshot -r /mnt/root1/@root_home/
/mnt/root1/snapshots/test_new
Create a readonly snapshot of '/mnt/root1/@root_home/' in
'/mnt/root1/snapshots/test_new'
++ sync
++ btrfs send -p /mnt/root1/snapshots/test /mnt/root1/snapshots/test_new
++ btrfs receive /mnt/backup1/
At subvol /mnt/root1/snapshots/test_new
At snapshot test_new
ERROR: open @/test failed. No such file or directory

I don't get where the "@/" in front of the snapshot name comes from.
It could be that I had a subvolume named @, but this doesn't exists
anymore and I don't understand why this would be important for the
send/receive.

Some more details about the fs:

server ~ # btrfs subvol list /mnt/root1/
ID 259 gen 568053 top level 5 path @root
ID 261 gen 568053 top level 5 path @var
ID 263 gen 568049 top level 5 path @home
ID 302 gen 568053 top level 5 path @owncloud_chroot
ID 421 gen 568038 top level 5 path @root_home
ID 30560 gen 563661 top level 5 path snapshots/home_2014-01-06-19:33_d
ID 30561 gen 563665 top level 5 path
snapshots/owncloud_chroot_2014-01-06-19:34_d
ID 30562 gen 563674 top level 5 path snapshots/root_home_2014-01-06-19:38_d
ID 30563 gen 563675 top level 5 path snapshots/var_2014-01-06-19:39_d
ID 30564 gen 563697 top level 5 path snapshots/root_2014-01-06-19:50_d

server ~ # btrfs subvol get-default /mnt/root1/
ID 5 (FS_TREE)

server ~ # ls -l /mnt/root1/
total 0
drwxr-xr-x. 1 root root  30 May 10  2013 @home
drwxr-xr-x. 1 root root 134 Jan  5 19:27 @owncloud_chroot
drwxr-xr-x. 1 root root 204 Nov 24 18:16 @root
drwx------. 1 root root 468 Jan  8 22:47 @root_home
drwxr-xr-x. 1 root root 114 Oct  7 17:39 @var
drwx------. 1 root root 420 Jan  8 22:50 snapshots


Any ideas? Thanks in advance.


Regards,
Felix

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-01-10 16:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-08 22:04 Problems with incremental send/receive Felix Blanke
2014-01-09  2:10 ` Wang Shilong
2014-01-09 11:36   ` Felix Blanke
2014-01-10  7:26     ` Felix Blanke
2014-01-10  8:02       ` Wang Shilong
2014-01-10 13:15         ` Felix Blanke
2014-01-10 16:26           ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox