- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rcp missing hidden files.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 01:54 AM
01-17-2003 01:54 AM
rcp missing hidden files.
Is there a flag I can set to make sure the hidden files go across.
I'm using rcp -rp hosts:/file /file2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 02:40 AM
01-17-2003 02:40 AM
Re: rcp missing hidden files.
I'd never heared about such a problem. Please check with 'ncheck' if there are realy hidden files.
Regards ...
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 02:42 AM
01-17-2003 02:42 AM
Re: rcp missing hidden files.
Can't find an option for rcp to include hidden file, but you can use find in combination with cpio.
# cd /home/user
# find . | cpio -ov | remsh server " cd /home/user ; cpio -idvum "
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 04:09 AM
01-17-2003 04:09 AM
Re: rcp missing hidden files.
I'm not aware of any flags fro rcp for hidden files. I've just used rcp to copy a users home directory & all of the hidden files have come across OK.
Regards,
Hilary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 04:41 AM
01-17-2003 04:41 AM
Re: rcp missing hidden files.
When rcp -r is copying a directory (rcp -rp host:/remotedir /localdir), it should always include all files it can read, hidden or otherwise. If it doesn't then it's broken.
When you use "rcp -rp hosts:/file /file2" (explicitly naming the files), rcp will copy those filenames it is given by the shell (after wildcard expansion). If that includes hidden files, they should be copied.
Is there a chance you're doing something like "rcp -rp hosts:/* /localdir"? That would ignore hidden files because the * wildcard won't match them.
-Scott-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 04:50 AM
01-17-2003 04:50 AM
Re: rcp missing hidden files.
So to get hidden files, DO NOT TYPE rcp .*!!!!! To see what you will get, always use echo first as in echo .* ...if you are in a subdirectory, you will be very surprised to see directories and files one level up in the listing! That's because .* matches the hidden directory called: .. which is a real directory, and not what you want.
The easiest solution is to use rcp's ability to copy an entire directory with -r as in:
rcp -r /some_directory_path ...
or if you need just the files in a specific directory, use a regular expression that finds the hidden files but not the .. directory as in:
echo * .[!.]*
and
rcp * .[!.]*
The regular expression .[!']* says: match all normal files and directories (*) and then match all files that start with . but not files that have a . in the second character. This will miss files that start with .. but they can be handled with .??* which matches all files starting with . followed by any 2 characters or more.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 08:42 AM
01-17-2003 08:42 AM
Re: rcp missing hidden files.
Good Luck.
Steve