On Dec 18, 2007 11:14 AM, elmo <<a href="mailto:elmo@ne.rr.com">elmo@ne.rr.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
After digging around in my notes, a book or two, and some websites, I<br>came up with this command:<br> cp -aprv /dev/sda7 /dev/sdc5<br></blockquote></div><br>I would use rsync instead, as it can do compression. Also, I don't believe that cp or rsync can use the /dev information to copy anything.
<br><br>If /dev/sda7 is mapped to /home and /dev/sdc5 is mapped to /home-backup, then I would use:<br><br>rsync -avz /home /home-backup (and I would do this as root or with "sudo " in front, to make sure you copy all the files that you might not have permission to access).
<br><br>My guess is that you haven't mounted /dev/sdc6 yet, so you would need to do that. Create a directory, (sudo mkdir /home-backup), then mount (sudo mount /dev/sdc5 /home-backup). Then you will be ready to run the command and have it back up successfully.
<br clear="all"><br>-- <br>John DeCarlo, My Views Are My Own