Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 825953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:20:13+00:00 2026-05-15T03:20:13+00:00

REMOTE SERVER remsh remoteserverhostname -l remoteusername find /tmp/a1/ | cpio -o > /tmp/paketr.cpio LOCAL

  • 0
REMOTE SERVER
remsh remoteserverhostname -l remoteusername find /tmp/a1/ | cpio -o > /tmp/paketr.cpio

LOCAL SERVER
rcp remoteserverhostname:/tmp/paketr.cpio /tmp/aaa
cpio -idmv < /tmp/paketr.cpio

I’m trying to get and create directory structure from remote server to local server. I can do this with following command list
but I wonder if I can do this with just one command

by running cpio with pass-through mode

remsh remoteserverhostname find /tmp/a1 | cpio -pd /tmp

current </tmp/tmp/a1/b1/y1> newer
current </tmp/tmp/a1/b1/z1> newer
current </tmp/tmp/a1/b2/l2smc> newer
"/tmp/a1/b3": No such file or directory
Cannot stat </tmp/a1/b3>.
0 blocks

So when I try to cpio -pd option , I’m expecting it to create directories for me but it does not.

I was using rcp but its not preserving symbolic links 🙁

What can I do ?
hp-ux

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:20:14+00:00Added an answer on May 15, 2026 at 3:20 am

    Are you trying to copy just the directory structure (i.e. directories only), or the files too? If copying everything, try:

    ssh remoteserverhostname 'find /tmp/a1 | cpio -o' | cpio -idmv
    

    If just the directories, then use:

    ssh remoteserverhostname 'find /tmp/a1 -type d | cpio -o' | cpio -idmv
    

    (I recommend ssh rather than remsh, as it’s way more secure, but the same commands ought to work with remsh too…)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to nail down free space on a remote server by querying
I am trying to create a new website on a remote server via msbuild
I have a remote gitosis server and a local git repository, and each time
My local system and remote server is configured with ssh key exchange. and I
When I upload the files on the remote server I get the following message:
I'm trying to read a public MSMQ from a remote (Server 2008) machine. I
How does a remote server trigger an iPhone app to get current location? Apps
Given the remote server 'Production' (currently accessible via an IP) and the local database
I'm running nosetests on a remote server. On my local server my test.ini and
I have used WMI to get the remote server disk space report using widows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.