I am moving data from an old zpool called "Volume1" to a 4x2TB Raidz2 array.
With a clean install of release v8.3.0 p1 I was going to import the first zPool (volume1) and create the new array Raidz2 array and call it: bin1
SIDE NOTE: all the data in volume1 is actually in a dataset called 'admin' ===> don't ask, it's just what happened as I was learning the system.
The command I was thinking of using was:
cp -r /mnt/volume1/admin/ /mnt/bin1
Now for my questions as I have never really messed with shell, the cp command or the options that are available:
Q1) Would cp -a /mnt/volume1/admin/ /mnt/bin1
not be a better option? As I understand it, it preserves much of the file attributes, permissions, etc.
Q2) I have seen cp -a /mnt/volume1/admin/* /mnt/bin1
. . . use of the asterisk. Like I said I am just looking for guidance on this.
Q3) http://en.wikipedia.org/wiki/Cp_(Unix) suggest that there are slight differences between how the copy command is handled in a GNU system verses a BSD system. Look for "however, on a BSD system" and you will see it on the page --- I think there was a slight typo on that example too, which is why I am asking here.
Q4) The trailing '/' on the target . . . is that not required?
Q5) In windows there are a couple of programs out there that run hash checks on the data copied from one location to another. Is there a way to do this with the copy command in shell?
Thanks for the help.
With a clean install of release v8.3.0 p1 I was going to import the first zPool (volume1) and create the new array Raidz2 array and call it: bin1
SIDE NOTE: all the data in volume1 is actually in a dataset called 'admin' ===> don't ask, it's just what happened as I was learning the system.
The command I was thinking of using was:
cp -r /mnt/volume1/admin/ /mnt/bin1
Now for my questions as I have never really messed with shell, the cp command or the options that are available:
Q1) Would cp -a /mnt/volume1/admin/ /mnt/bin1
not be a better option? As I understand it, it preserves much of the file attributes, permissions, etc.
Q2) I have seen cp -a /mnt/volume1/admin/* /mnt/bin1
. . . use of the asterisk. Like I said I am just looking for guidance on this.
Q3) http://en.wikipedia.org/wiki/Cp_(Unix) suggest that there are slight differences between how the copy command is handled in a GNU system verses a BSD system. Look for "however, on a BSD system" and you will see it on the page --- I think there was a slight typo on that example too, which is why I am asking here.
Q4) The trailing '/' on the target . . . is that not required?
Q5) In windows there are a couple of programs out there that run hash checks on the data copied from one location to another. Is there a way to do this with the copy command in shell?
Thanks for the help.