Okay thank you.

I don't know the ordering of && and |. I think you can use parentheses
in bash perhaps? In any case, line breaks work to separate the tasks.

I am now doing the following:

I detached my new 4 TB drive and am mounting -o degraded. Then I am
doing

# find . -type f -exec cat {} > /dev/null \;

In each folder of data I care about. If all of it is readable without my
TB, then I can safely create a new BTRFS on the 4 TB and migrate my data
over.

On Sat, Jan 2, 2016, at 11:46 PM, Chris Murphy wrote:
> On Sat, Jan 2, 2016 at 2:42 PM, Rasmus Abrahamsen <bt...@rasmusa.net>
> wrote:
> > On Sat, Jan 2, 2016, at 10:37 PM, Chris Murphy wrote:
> >> On Sat, Jan 2, 2016 at 2:30 PM, Rasmus Abrahamsen <bt...@rasmusa.net>
> >> wrote:
> >> > Okay, I will rebuild it then. Thank you.
> >> >
> >> > Where do I add -p?
> >>
> >> OK for me, I have these ro snapshots:
> >> drwxrwx---. 1 chris chris  218 Apr  3  2015 everything-20150403
> >> drwxrwx---. 1 chris chris  218 Apr  3  2015 everything-20150404
> >> drwxrwx---. 1 chris chris  218 Apr  3  2015 everything-20150412
> >> drwxrwx---. 1 chris chris  218 Apr  3  2015 everything-20150922
> >>
> >> # btrfs send everything-20150403 | btrfs receive /mnt/new
> >> # btrfs send -p everything-20150403 everything-20150404 | btrfs receive
> >> /mnt/new
> >> # btrfs send -p everything-20150404 everything-20150412 | btrfs receive
> >> /mnt/new
> >> # btrfs send -p everything-20150412 everything-20150922 | btrfs receive
> >> /mnt/new
> >>
> 
> > Do you mean that the pipe is not a bash pipe or that you executed the
> > commands as written? Sounds like you had two terminals and executed the
> > left side of the pipe and then the right side.
> 
> I execute those commands exactly as written, in a single shell. Each
> command completes before I can execute the next one.
> 
> The part I wrote about && is about my lack of bash experience; I don't
> know of a way to execute the above commands at once such that they
> happen in exactly that sequence so I could walk away.
> 
> 
> 
> 
> 
> 
> -- 
> Chris Murphy
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to