Backing up Folders without some folders...;)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Backing up Folders without some folders...;)
# 1  
Old 04-26-2004
Data Backing up Folders without some folders...;)

I am in a fix.......

I have to write a backup script to backup say Folder A.

Folder A contains n folders 1,2 ,3 .....n.

my script should copy A without folder 2 & 3.

Is there anyway I can do it without writing individual copy commands????


Please help....
# 2  
Old 04-26-2004
As you have already started another identical thread at

https://www.unix.com/unix-for-dummies-questions-and-answers/13779-copying-folders-without-some-folders.html?s=

I will lock this one. Please refrain from starting multiple threads on the same topic. Thank you.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to copy files/folders and show the files/folders?

Hi, So i know we use cp -r as a basic to copy folders/files. I would like this BUT i would like to show the output of the files being copied. With the amazing knowledge i have i have gone as far as this: 1) find source/* -exec cp -r {} target/ \; 2) for ObjectToBeCopied in `find... (6 Replies)
Discussion started by: Imre
6 Replies

2. UNIX for Dummies Questions & Answers

Archive folders and sub folders

Hi Can i archive folder and folders in with the tar command My files are located in subfolders Eg: Folder1/Folder1_1/*.pdf Folder1/Folder1_2/*.pdf Folder1/Folder1_3/*.pdf so i would like to tar all the files in Folder1_1 and Folder1_2 only not Folder1_3 that should be done next... (2 Replies)
Discussion started by: cnrj
2 Replies

3. Shell Programming and Scripting

Copy between two different folders containing same sub-folders

I have a folder like this ls input1 dir1 dir2 dir3 file1 file2 file3 dir1, dir2 and dir3 are sub-folders inside the folder input1 ls input2 dir1 dir2 dir3 file1 file2 file3 My dir1 in input1 folder has files f1, f2, f3 and f4. My dir1 in input2 folder has file f4 and f5. ... (3 Replies)
Discussion started by: jacobs.smith
3 Replies

4. UNIX for Dummies Questions & Answers

Searching for folders/parent folders not files.

Hello again, A little while back I got help with creating a command to search all directories and sub directories for files from daystart of day x. I'm wondering if there is a command that I've overlooked that may be able to search for / write folder names to an output file which ideally... (2 Replies)
Discussion started by: Aussiemick
2 Replies

5. Shell Programming and Scripting

Making 99 folders 99 folders deep

I am trying to make a unix shell script that will make 99 folders 99 deep (counting the first level folders). So far i have made it make the first 99 folders and 99 more in all of the folders. The only problem is the only way i have found is copying and pasting part of the script over and over and... (18 Replies)
Discussion started by: YukonAppleGeek
18 Replies

6. Red Hat

Moving folders

I'm new at this, so bare with me. I'm looking to move some folders, but keep the tree intact. Example: I have hundreds of folders in one directory (parent directory). In each folder there is a one folder called "source" and about 10 files. I want to move all the "Source" directories... (4 Replies)
Discussion started by: gnpower
4 Replies

7. Windows & DOS: Issues & Discussions

Help needed with backing up Outlook email folders and settings

I need to upgrade from Windows Me to Windows Xp, anyone can please tell me how can I backup everything in Outlook Express for an easy restore after reinstalling Windows? (3 Replies)
Discussion started by: Saanddra
3 Replies

8. Solaris

Identifying System folders that need backing up

We are not a huge shop -- 1 production V440 and one devel 450 box. Our backup strategy in a nutshell is if the system goes completely down, we reinstall the OS and then restore from tape the folders we need. I'm using Unix agent with BackupExec 10. It allows me to pick and choose down to a... (2 Replies)
Discussion started by: citrowske
2 Replies

9. UNIX for Dummies Questions & Answers

Removing old folders

All Please help me to remove old files. For example /usr/exp/ - inside this Apr 02 - dir02 Apr 03 - dir03 Apr 04 - dir04 Apr 05 - dir05 Apr 06 - dir06 Apr 07 - dir07 Apr 03 - file03 I want to delete all the folders 2 days before created.Not the fil03 even though it is 2 days old. ... (1 Reply)
Discussion started by: DeepakXavier
1 Replies

10. UNIX for Dummies Questions & Answers

Copying Folders without some folders... ;-)

I am in a fix....... I have to write a backup script to backup say Folder A. Folder A contains n folders 1,2 ,3 .....n. my script should copy A without folder 2 & 3. Is there anyway I can do it without writing individual copy commands???? Please help.... (5 Replies)
Discussion started by: chimpu
5 Replies
Login or Register to Ask a Question