Author Topic: Copy Directory Structure To Another Dir  (Read 2353 times)

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Copy Directory Structure To Another Dir
« on: June 07, 2006, 04:38:37 pm »
anyone give a hand, never had to do this, btw creating an ext2 image of meanies gcc image, found that tmake cant find perl, due to the path given in the script.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Copy Directory Structure To Another Dir
« Reply #1 on: June 07, 2006, 04:46:01 pm »
You need to be more specific.  The simplest way to copy a whole directory structure is to use "cp -a [origin] [destination]"
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

DaemonsGR

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Copy Directory Structure To Another Dir
« Reply #2 on: June 07, 2006, 05:27:08 pm »
cp -R ?
Tasos Varoudis (Tech)
Tasos Varoudis (Architecture)

Zaurus sl-c3100 + Wlan, Lan ,BT ,etc
NOW running... pdaXrom 1.1.0beta3 + OOo + custom apps/setup + debian +.. not yet installed OpenBSD snapshot

WAS:Cacko 1.23 + X/QT + debian

Home-Net
Debian WIFI Router ,OpenBSD Bridge Firewall ,Win 2k Domain Server , :) Sun Fire v120 , :) Gentoo Main Server: Dual PIII

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Copy Directory Structure To Another Dir
« Reply #3 on: June 08, 2006, 01:04:38 am »
cp  -a actually worked, never used that for anything so, didnt know, btw the ex2 image for gcc will be around 80mb, ouch, but thats ok I am extending my /hdd2 to 1gig for that...
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Da_Blitz

  • Hero Member
  • *****
  • Posts: 1579
    • View Profile
    • http://www.pocketnix.org
Copy Directory Structure To Another Dir
« Reply #4 on: June 09, 2006, 03:31:26 am »
-a is for arciving and keeps permissions and timestamps intact as mell as symlinks
Personal Blog
Code
Twitter

Gemini Order: #95 (roughly)
Current Device: Samsung Chromebook Gen 3
Current Arm Devices Count: ~30
Looking to acquire: Cavium Thunder X2 Hardware