coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Monday May 20, 2013


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 43 guests online

Newest Member

nbewwmbxog

Hit Counter
11541018 Visitors

cool Statistics
coolcommands:1338
Categories:83
Total queries:620107
Members:22813





Category Search coolcommands.com
Select Category:


coolcommand

cpio - copy source directory or filesystem to a another destination
Description

To copy a source directory or filesystem to a destination directory or filesystem on the same server:

As root, run:

# cd /source ; find . -print | cpio -pdm /destination

To verify copy was successful:

From source directory or filesystem:

# find . -type f -ls | awk '{print $11 " " $7}' | awk -F"[ /]" '{print $(NF-1) " " $NF}' | sort > /tmp/zzz1

From destination directory or filesystem:

# find . -type f -ls | awk '{print $11 " " $7}' | awk -F"[ /]" '{print $(NF-1) " " $NF}' | sort > /tmp/zzz2

Run a diff on the two files created:

# sdiff /tmp/zzz1 /tmp/zzz2

OR

# dircmp -s source destination
Example

cd /source ; find . -print | cpio -pdm /destination

Return to search results

Random coolcommands

coolcommand: hdisk and vpath correspondance for IBM SAN (shark)
Example: rmdev -dl dpo -R ; rmdev -dl fscsi0 -R ; cfgmgr -vl fcs0 ; cfallvpath
[show me the details]
coolcommand: rrdtool - update a rrdtool (round robin database) database file
Example: rrdtool update filename [--template|-t ds-name[:ds-name]...] N|timestamp:value[:value...] [timestamp:value[:value...] ...]
[show me the details]
coolcommand: pwdx - how to find the working directory of a process in Sun Solaris
Example: /usr/proc/bin/pwdx 666
[show me the details]
coolcommand: get_partition_state - to get the partition state on a HMC
Example: get_partition_state –m < managed_system > –p < partition_name >
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1160
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris51939
Category AIX49006
Category General UNIX47511
solaris23554
aix22739

Terms of Use
Privacy
Contact


 
coolcommands.com © 2013. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum