Re: Mirroring Hard Drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Matt (lm7812@xxxxxxxxx) kirjoitteli (17.11.2008 18:42):

>> mkdir /mnt/org
>> mount /dev/hdx /mnt/org
>> mkdir /mnt/bckup
>> mount /dev/hdx /mnt/bckup
>> 
>> cp -af /mnt/org/* /mnt/bckup/.
> 
> Won't this command choke if there are too many files?  I think I have
> run into that before.

If it does, here's a way round (source: see the thread " ls and rm:
"argument list too long"").

for i in /mnt/org/*
do
    cp $i /mnt/bckup/
done

- Jussi
--
Jussi Hirvi * Green Spot
Topeliuksenkatu 15 C * 00250 Helsinki * Finland
Tel. & fax +358 9 493 981 * Mobile +358 40 771 2098 (only sms)
jussi.hirvi@xxxxxxxxxxxx * http://www.greenspot.fi

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux