#14 remote dumps

closed-works-for-me
None
5
2004-02-14
2004-02-14
No

I'm running RH9 on two boxes (with dump-0.4b28-7 on
both) and am trying to dump from one to the other like
this:

# export RSH=ssh
# dump -0uaf deagol:/var/dump/b.dmp /

I can get a directory listing without a password prompt
like this:

# ssh deagol ls /var/dump

and can even create a file like this:

# ssh deagol touch /var/dump/b.dmp

but when I try dumping it complains:
...
DUMP: estimated 2474408 tape blocks.
DUMP: /var/dump/b.dmp: No such file or directory
DUMP: Cannot open output "/var/dump/b.dmp": No
such file or directory

I've also tried with -0uf and -0f but no dice... and I've
tried dumping just a directory and just a file instead of a
filesystem but nix.

what am I doing wrong?

Discussion

  • Stelian Pop

    Stelian Pop - 2004-02-14

    Logged In: YES
    user_id=5513

    This is because rmt is refusing to create a new file. Just
    chain the call to ssh touch and dump and it should work.

    Stelian.

     
  • Stelian Pop

    Stelian Pop - 2004-02-14
    • assigned_to: nobody --> stelian
     
  • Erick Calder

    Erick Calder - 2004-02-14
    • status: open --> closed-works-for-me
     
  • Erick Calder

    Erick Calder - 2004-02-14

    Logged In: YES
    user_id=575496

    aha! it's weird that I can create the file but rmt couldn't.
    anyway, it seems to work now. 1,000 thanks!

     
  • Stelian Pop

    Stelian Pop - 2004-02-15

    Logged In: YES
    user_id=5513

    It's a well known 'limitation' in rmt, designed to implement
    a more 'secure' policy, so users could write to existing
    device nodes, but not create new
    ones...

    I could change that but given all the rmt implementations
    out-there, I'm not sure it would be useful.

    Stelian.

     
  • Erick Calder

    Erick Calder - 2004-02-15

    Logged In: YES
    user_id=575496

    easier than patching changing rmt is to just document the
    limitation in dump's man page. that way anyone trying to do
    remote dumps will know to just create the file ahead of time.

     
  • Stelian Pop

    Stelian Pop - 2004-02-18

    Logged In: YES
    user_id=5513

    Done in CVS.

    Stelian.

     

Log in to post a comment.