linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs send using with copied snapshot
@ 2015-05-06 14:01 sri
  2015-05-07  4:49 ` Paul Harvey
  2015-05-07  4:59 ` Duncan
  0 siblings, 2 replies; 3+ messages in thread
From: sri @ 2015-05-06 14:01 UTC (permalink / raw)
  To: linux-btrfs

btrfs send has option -p to compare 2 snapshots and genereate output of 
diff and if btrfs receive is there it will get the diff.

lets say i have done my first backup 
/b1/s1 is my subvolume and snap1_s1 is first snapshot

ran command:

btrfse send /b1/snap1_s1 | btrfs receive /backup


then I will get my backup /backup/snap1_s1

next I have created 2nd snapshot /b1/snap2_s1

why cannot i do below

btrfs send -p /backup/snap1_s1 /b1/snap2_s1 |btrfs receive /backup

both sanp1_s1 and snap2_s2 are readonly

why there is a restriction of all snapshots should be under same root? 
can't I get the diff of copied snapshot i.e /backup/snap1_s1 (never 
changed) to new snapshot /b1/snap2_s1 ??

My case, i may not always keep previous snapshot but i have copied to 
backup using the snapshot.

In this case is there a way to backup only incrementals using backedup 
snapshot subvolume ?


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

end of thread, other threads:[~2015-05-07  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-06 14:01 btrfs send using with copied snapshot sri
2015-05-07  4:49 ` Paul Harvey
2015-05-07  4:59 ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).