Jump to content
Sign in to follow this  
curioffl

Backup a folder but not its subfolders?

Recommended Posts

 

Sorry, this feels like a total noob question but I can't seem to make it work with the available exclude rules.

 

I want to backup a folder and all of its files, but none of its subfolders. Is there a combination that will do this?

 

Defined "Volume" Data is:

 

I:\data\

 

I want to backup:

 

I:\data\file1.tmp

I:\data\file100.txt

I:\data\file1000.bmp

 

But not:

 

I:\data\folder1\*

I:\data\folder2\*

 

The files and folders in I:\data\ are constantly changing (so I can't just include/exclude specific ones) but I always want all of the files in the folder and I never want any of the subfolders.

 

Thanks.

 

C

Share this post


Link to post
Share on other sites

When you set up your inclusion/exclusion rule for a folder there is an option to include enclosing folders. If you uncheck this option it should include/exclude only the root of the parent folder and skip any subfolders inside.

Share this post


Link to post
Share on other sites

Okay but I'm not sure on the logic here.

 

If I define I:\data\ as a Volume. And then make a script that backs up that Volume, if I make an "exclude" rule to exclude sub-folders, that exclude rule has to exclude something in and of itself right? So I could only exclude I:\data\ AND its sub-folders or not (which is not what I want because I want the contents of I:\data\).

 

I'm not sure at all on the logic of Include because I think if I point a script at I:\data\ it will include everything anyway.

 

If I point a script at I:\data\ and say "include" I:\data\ but "exclude" I:\data\* and all sub-folders, retrospect backs up nothing.

 

If I define I:\ as the volume I'm in the same problem (I think) of needing to know what all of the sub-folders will be in order to exclude them (they change).

 

I'm sure I'm missing something obvious here and apologize for my ignorance.

 

C

Share this post


Link to post
Share on other sites

If I follow your logic correctly your rule will only use the include section with

folder(volume) name is I:\data(volume name) not including enclosing folders

 

If done correctly it should only back up the root of I:\data skipping over all subfolders.

Share this post


Link to post
Share on other sites

It doesn't though. I think because you "exclude something and all of its subfolders", not "exclude only its subfolders" (which is what I'm trying to do).

 

(Maybe I mistyped something, etc. But that's what I thought would do it but my backup was 0-files.)

 

C

Share this post


Link to post
Share on other sites

Although I haven't tried it myself, I would do something like this:

Make a copy of "All files except cache files" (for instance).

Click on the "+" under Include.

Set up like attached picture 1. Notice that "Include enclosed folders" is not checked.

Add the other files and folders on the volume, click on the "+" under the rule you just added.

Set up like attached picture 2.

It should look like attached picture 3.

 

Hope this helps.

 

Share this post


Link to post
Share on other sites

Do not use the exclude section and put the following in the include section:

 

folder(volume) name is I:\data(volume name) not including enclosing folders

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×