Copy from one HD to another :)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Copy from one HD to another :)
# 1  
Old 07-12-2009
Copy from one HD to another :)

So i have two HD full of Files, files are ordered by First letter, then inside name of the person that created and inside that the month when i was created..

So There are folders A to Z, inside these folders there are names, and inside these names months.. For example


M -> Miguel x -> December

Like i said i have 2 HD one has the months from January to July and the other one from august to December...

What script can i use to combine these two and keep them on the same order... So it will look at HD A and look for names that are no in HD B and copy them. And if that name exist go inside that folder and copy the names that are missing...

btw im using linux..


Sorry if it is confusing Smilie

---------- Post updated at 10:35 AM ---------- Previous update was at 10:31 AM ----------

will rsync do that? since it does incremental copy's?
# 2  
Old 07-14-2009
I don't see why it wouldn't work to simply do a recursive copy (rsync -a will work for that) from one dir tree to another. Normally you'd have to worry about overwriting files, but as I understand it, all path names should be unique, right?
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copy command

Hi , I am trying to take a backup of file before overwriting it with cp command, I am using the command cp -b. -rw-rw-r-- 1 autoengine murex 0 Jan 22 07:08 a -rw-rw-r-- 1 autoengine murex 0 Jan 22 07:08 b cp -b a b -rw-rw-r-- 1 autoengine murex 0 Jan 22 07:08 a -rw-rw-r-- 1... (1 Reply)
Discussion started by: Raj999
1 Replies

2. Shell Programming and Scripting

how to copy the directory but not copy certain file

Hi experts cp bin root src /mnt but not copy bin/bigfile any help? ( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum) Thanks (6 Replies)
Discussion started by: yanglei_fage
6 Replies

3. Solaris

Need help with copy

Hi Gurus, I need some help to fulfill the following requirement. I have a file A and some contents in it and I have file B and some conent in it. I need to append the contents on File A to FIle B. I am sure its Basics but missing it. Thank You, Rama (1 Reply)
Discussion started by: rama krishna
1 Replies

4. UNIX for Dummies Questions & Answers

What is in-core copy and disk-copy of i-node table?

I have found a question from the exercises of my study mat. The question is "Why are there a in-core copy and a disk-copy of i-node block and super block?" If any one know the proper answer then please send me..... (1 Reply)
Discussion started by: dearanik
1 Replies

5. Shell Programming and Scripting

SCP copy

I want to copy all the files and subdirectory from a server. I tried scp pritish@ipaddress:/home/pritish -r $PWD it copies all the files but not the directory, Can any one help me. I want to copy files as well as subdirectory from a server directory Note: Use CODE-tags when... (2 Replies)
Discussion started by: pritish.sas
2 Replies

6. Shell Programming and Scripting

getting backup of a copy

Hi, I wrote a script file file1.sh Mistakenly I have copied some other file contents to this file, cp a.sh file1.sh is there any way to recover the original contents of the file1.sh. plz let me know, otherwise I need to write the logic again. Thanks in advance. (1 Reply)
Discussion started by: villain41
1 Replies

7. UNIX for Dummies Questions & Answers

How to copy ?

HOw to copy a folder from one user to another user in UNIX ? (4 Replies)
Discussion started by: nani_ynm
4 Replies

8. UNIX for Dummies Questions & Answers

HOw to find and copy

Hi, I need to find files in a directory, between dates like 4/15/06 and 5/02/06, and copy them to a different directory. Is there a way to doa find and a copy together? Thanks, Neil (1 Reply)
Discussion started by: aaajohnson
1 Replies
Login or Register to Ask a Question