- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: rcp 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
Discussions
Discussions
Forums
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
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
тАО08-28-2003 12:37 AM
тАО08-28-2003 12:37 AM
Solved! Go to Solution.
- Tags:
- rcp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 12:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 12:44 AM
тАО08-28-2003 12:44 AM
Re: rcp hidden files
If you rcp -r a directory which contains . files then all copy across. If you copy the files in the current dir of which some start with a . then it wont copy them, you will need 2 rcp commands; rcp * then rcp ./.*, or copy the parent directory instead, then it will include the . files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 12:51 AM
тАО08-28-2003 12:51 AM
Re: rcp hidden files
rcp follows same rules than cp, in order to copy hidden files you have to run something like:
rcp -p .[psXc]* remotehost:/path
where p, s, X and c are the first letter of your hidden files.
Regards,
Simone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 01:14 AM
тАО08-28-2003 01:14 AM
Re: rcp hidden files
Or you can use find in cobination with cpio
# cd /dir
# find . | cpio -ov | remsh host "cd /dir ; cpio -idvum"
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 03:45 AM
тАО08-28-2003 03:45 AM
Re: rcp hidden files
echo .*
echo .\*
The \ character removes the 'special' meaning of * and echo simply reports what the shell has done to the command line. So remember that ? and * (and []{}, etc) are processed by the shell, not the command itself.
Also, .* is a very commonly misused. .* means: return any filename with . as the first character followed by zero or more characters. What is often unexpected is that .* will return .. which is the parent directory. So using the rm -r .* command in a user's directory could destroy the entire /home directory structure! Always 'test' the rm -r command with either the -i option (asks for confirmation on every file deletion) or add the word echo in front of rm -r to see what the shell will do:
echo rm -i .*
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 03:48 AM
тАО08-28-2003 03:48 AM
Re: rcp hidden files
Say copy the /oracle filesystem from system to system.
rcp -p -r /oracle/*.* hostname:/oracle
Different number of bytes at the back end.
scp -p -r has not led to the same problem.
Gott love Secure Shell.
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA
You are better off using cpio or tar. If you are replicating a whole system, consider Ignite Golden Images.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com