Re: Dump | Restore
On Mon, Apr 20, 2009 at 1:31 PM, Daniels Vanags wrote: > > > Unable to successfully dump | restore over ssh. Source machine > FreeBSD 6.2, disk /dev/mirror/gm0s1a, > > target machine FreeBSD 6.2, target disk /dev/ad1s1a mounted on /mnt. > > Run dump -0aLf - / | ssh ip_address ''cd /mnt/ && cat | restore - rf > -'', dump/restore goes without any errors. dump L0af - / | ssh ip_addr '(cd /mnt; restore -rf -)' > Fstab fixed, but system failure to boot: BTX halted. You could either do bdslabel -B or use sysinstall to do the same. Only you mount the slice to /, set bootable and softupdates, then chane the mount point to /mnt before you "W" to commit. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "Clothes make the man. Naked people have little or no influence on society." -- Mark Twain ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: how to copy files without directories
2009/4/20 Patrick Lamaizière > Le Mon, 20 Apr 2009 13:24:42 +0200, > "Zbigniew Szalbot" : > > > Ahh... I am sorry. Wrong subject. I want to copy directories without > > files they contain. > > see mtree(8) > Something like > $ mtree -dc -p path1 | mtree -U -p path2 Wow!! Looks brilliant. Several hidden swissknifes (yea, not knives)! -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "Clothes make the man. Naked people have little or no influence on society." -- Mark Twain ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: how to copy files without directories
2009/4/20 Zbigniew Szalbot > On Mon, 20 Apr 2009 13:22:38 +0200, Fernando ApesteguĂa < > fernando.apesteg...@gmail.com> wrote: > > On 4/20/09, Zbigniew Szalbot wrote: >> >>> Dear all, >>> >>> I have read the cp manual and I cannot find an option how to copy >>> directories without files they contain. Is this possible? >>> >> >> Maybe I read it wrong, but the subject and the paragraph above say two >> different things. >> > > Ahh... I am sorry. Wrong subject. I want to copy directories without files > they contain. For a directory tree, try my dose of medicine. I think it can work. It wont set your system on fire if it doesn't:) -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "Clothes make the man. Naked people have little or no influence on society." -- Mark Twain ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: how to copy files without directories
On Mon, Apr 20, 2009 at 2:12 PM, Zbigniew Szalbot wrote: > Dear all, > > I have read the cp manual and I cannot find an option how to copy > directories without files they contain. Is this possible? > Thank you very much! I don't get your requirement. You'd like to copy empty directories from where to where? Is it a directory tree or just leaves (TM, patented by me)? (Leaves are at the same level,, below the branches, while trees contain branches. Wildly imagining..from a tree... or branches.. for d in `find /source/path/ -type d`; do mkdir -p /some/path/$d; done (Untested). -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "Clothes make the man. Naked people have little or no influence on society." -- Mark Twain ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"