Saturday, December 13, 2008

Solaris Moving Directories to Other Location

Sometimes using tar we receive error file too large. Use cpio instead for same results
% cd /target-directory

% find . -depth -print | cpio -pudmv /dest-directory


example

#! /bin/sh
cd /ftp/data/pdu-msa/EDA-SLS
find . -depth -print | cpio -pudmv /ftp/data2/pdu-msa/EDA-SLS

No comments:

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...