Re: Use pax instead of cpio in FAQ 14.4 (Adding extra disks)
On Sat, Jan 12, 2013 at 3:44 AM, Jiri B wrote: > On Sat, Jan 12, 2013 at 01:10:16AM +, Christian Weisgerber wrote: >> I tend to recommend dump|restore, but those aren't on bsd.rd. > > Really? I had feeling that the best way to do disaster > recovery is to use bsd.rd, make partitioning and > dump/restore... Quite pitty if dump/restore is not > included. > > jirib > At least on the 5.2 RELEASE bsd.rd, /sbin/restore exists, but not dump. I've used for something like: ftp -o - http://192.168.0.5/20110411_backup.dump | restore -rvf - ref: http://www.undeadly.org/cgi?action=article&sid=20061023122025
Re: Use pax instead of cpio in FAQ 14.4 (Adding extra disks)
On Sat, Jan 12, 2013 at 01:10:16AM +, Christian Weisgerber wrote: > I tend to recommend dump|restore, but those aren't on bsd.rd. Really? I had feeling that the best way to do disaster recovery is to use bsd.rd, make partitioning and dump/restore... Quite pitty if dump/restore is not included. jirib
Re: Use pax instead of cpio in FAQ 14.4 (Adding extra disks)
Jeremy Evans wrote: > 1) Switch from cpio -pdum to pax -rw -p e. Seems fine to me. > I'm not sure if there are other reasons to use cpio over pax. Nope. On OpenBSD, tar/cpio/pax are all frontends to the same program anyway. > However, when I replaced I disk last night and tried to use cpio > to copy partitions, I noticed that it didn't work on bsd.rd. I tend to recommend dump|restore, but those aren't on bsd.rd. > Thoughts/OKs? ok -- Christian "naddy" Weisgerber na...@mips.inka.de
Use pax instead of cpio in FAQ 14.4 (Adding extra disks)
Two changes: 1) Switch from cpio -pdum to pax -rw -p e. cpio -pdum requires find which isn't available on bsd.rd, while pax -rw -p e works fine on bsd.rd. 2) Use a more complete example. I'm not sure if there are other reasons to use cpio over pax. However, when I replaced I disk last night and tried to use cpio to copy partitions, I noticed that it didn't work on bsd.rd. Thoughts/OKs? Jeremy Index: faq14.html === RCS file: /cvs/www/faq/faq14.html,v retrieving revision 1.202 diff -u -p -r1.202 faq14.html --- faq14.html 19 May 2010 12:41:02 - 1.202 +++ faq14.html 11 Jan 2013 20:19:16 - @@ -638,8 +638,14 @@ Finally, add it to What if you need to migrate an existing directory like /usr/local? You -should mount the new drive in /mnt and use cpio -pdum to copy /usr/local -to the /mnt directory. Edit the +should mount the new drive in /mnt and copy /usr/local to the /mnt directory. +Example: + + +# cd /usr/local && pax -rw -p e . /mnt + + +Edit the http://www.openbsd.org/cgi-bin/man.cgi?query=fstab&sektion=5";>/etc/fstab(5) file to show that the /usr/local partition is now /dev/sd2d (your freshly formatted partition). Example: