Professional Web Applications Themes

dd on samba - FreeBSD

Hi folks, I need to backup my whole disk, re organize my partitions, and then restore the whole thing. The problem is that the only place where I can put the backup is a samba mount. dd and dump won't work (they won't put the data on a directory). What else could I do? Don't forget that I also need to backup the whole / and /var (which gives sometimes problems with some unreadable files) Thank you! -- Pietro "Piter" Cerutti <com> <ch> Beansidhe - SwiSS Death / Thrash Metal <www.beansidhe.ch> Windows: "Where do you want to go today?" Linux: ...

  1. #1

    Default dd on samba

    Hi folks,
    I need to backup my whole disk, re organize my partitions, and then
    restore the whole thing.

    The problem is that the only place where I can put the backup is a samba mount.

    dd and dump won't work (they won't put the data on a directory).

    What else could I do?

    Don't forget that I also need to backup the whole / and /var (which
    gives sometimes problems with some unreadable files)

    Thank you!

    --
    Pietro "Piter" Cerutti
    <com>
    <ch>

    Beansidhe - SwiSS Death / Thrash Metal
    <www.beansidhe.ch>

    Windows: "Where do you want to go today?"
    Linux: "Where do you want to go tomorrow?"
    FreeBSD: "Are you guys coming or what?"
    Pietro Guest

  2. #2

    Default Re: dd on samba

    On Mon, 14 Mar 2005 13:27:19 +0000, Pietro Cerutti
    <com> wrote: 

    Maybe I solved it, by making
    # dd if=/dev/ad0 of=/mnt/some_file.dd bs=2m

    But how is goint to be to restore the whole filesystem?

    Thanks!


    --
    Pietro "Piter" Cerutti
    <com>
    <ch>

    Beansidhe - SwiSS Death / Thrash Metal
    <www.beansidhe.ch>

    Windows: "Where do you want to go today?"
    Linux: "Where do you want to go tomorrow?"
    FreeBSD: "Are you guys coming or what?"
    Pietro Guest

  3. #3

    Default Re: dd on samba

    On Mon, 14 Mar 2005, Pietro Cerutti wrote:
     
    There probably are some dozen possibilities, but you could try
    /usr/ports/net/rsync

    Regards,

    Uli.
     



    *********************************************
    * Peter Ulrich Kruppa - Wuppertal - Germany *
    *********************************************
    Peter Guest

  4. #4

    Default Re: dd on samba

    On Mon, 14 Mar 2005 13:34:17 +0000
    Pietro Cerutti <com> wrote:
     
    >
    > Maybe I solved it, by making
    > # dd if=/dev/ad0 of=/mnt/some_file.dd bs=2m
    >
    > But how is goint to be to restore the whole filesystem?
    >
    > Thanks!
    >
    >
    > --
    > Pietro "Piter" Cerutti
    > <com>
    > <ch>
    >
    > Beansidhe - SwiSS Death / Thrash Metal
    > <www.beansidhe.ch>
    >
    > Windows: "Where do you want to go today?"
    > Linux: "Where do you want to go tomorrow?"
    > FreeBSD: "Are you guys coming or what?"[/ref]

    Hello,

    I have free space between two slices to I tried to do the same as you.

    When you have the image of a slice generated by 'dd', it contains its
    partitions and filesystems. First you may want to make that slice image
    (file) to appear in '/dev', so you can manipulate its partitions. This
    is done (in FreeBSD 5.X, if you use 4.X use'vnconfig', there are
    examples in the Handbook) like with a CD-ROM ISO image (see the
    Handbook->Storage):

    mdconfig -a -t vnode -f <file> -u <n>

    It will appear in '/dev' as 'md<n>', with its partitions, like the
    following:

    md1a
    md1c
    [...]

    So you can mount them, dump them, etc., like with a slice (in fact,
    it is an image of a slice).

    When you end what you want to do with it, do (after unmounting the
    partitions):

    mdconfig -d -u <n>

    Best Regards,
    Ale
    Alejandro Guest

  5. #5

    Default Re: dd on samba

    On Mon, 14 Mar 2005 19:53:12 -0300, Alejandro Pulver
    <biz> wrote: 

    Hi there,
     

    Thank you!
     

    Great, this is what I was searching for!
    Thank you once more!

    Best regards,


    --
    Pietro "Piter" Cerutti
    <com>
    <ch>

    Beansidhe - SwiSS Death / Thrash Metal
    <www.beansidhe.ch>

    Windows: "Where do you want to go today?"
    Linux: "Where do you want to go tomorrow?"
    FreeBSD: "Are you guys coming or what?"
    Pietro Guest

Similar Threads

  1. AIX & samba
    By Piotr in forum AIX
    Replies: 6
    Last Post: December 7th, 04:30 PM
  2. Samba on SCO 5.0.7
    By wlj@elmore.rr.com in forum SCO
    Replies: 1
    Last Post: July 18th, 12:22 PM
  3. Replies: 0
    Last Post: July 14th, 12:50 AM
  4. VFS for Samba
    By Brad S in forum Linux Setup, Configuration & Administration
    Replies: 1
    Last Post: July 10th, 12:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139