copy folders with subfolders

Discuss RoboTask here
Post Reply
DraBS
Posts: 35
Joined: Sat Apr 02, 2005 7:43 am
Location: Bulgaria

copy folders with subfolders

Post by DraBS »

I have a folder with subfolders in it. There are files in the subfolders but none directly in the main folder.

I want to make a backup of the folder by simply copying it to another partition of the hard drive. (That is, one action only macro.)

It doesn't work, though. As far as I can understand the action "copy folder1\*.* to folder2" will copy only the files in "folder1" but not the subfolders in it.

Synchronising "folder1" to "folder2" wouldn't work for me because I want the new versions of changed files to be available in "folder2" along with the previous (older) ones. Synchronising will delete any old versions of changed files.

How could I be able to copy a folder + subfolders in it?
Last edited by DraBS on Wed Jan 07, 2009 11:44 am, edited 1 time in total.
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

copy folders with subfolders

Post by Oleg »

Synchronising "folder1" to "folder2" wouldn't work for me because I want the new versions of changed files to be available in "folder2" along with the previous (older) ones. Synchronising will delete any old versions of changed files.
"Synchronize folders" action do not delete old files. It overwrite new files over old with same names.

If you want to save old versions of files too you must rename files or synchronize into new folder each time (for example, the name of destination folder is based on current date).
DraBS
Posts: 35
Joined: Sat Apr 02, 2005 7:43 am
Location: Bulgaria

copy folders with subfolders

Post by DraBS »

Here is my whole macro:



I have selected "Rename". The issue is that it doesn't want to copy subfolders no matter whether the selection is "Rename" or "Overwrite".

I do not want to synchronize into new folder each time because that would take up too much disk space.
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

copy folders with subfolders

Post by Oleg »

Use "Synchronize folders" action.

"Copy files" action only copy (or move) files into specified folder and doesn't preserve the folder structure.
DraBS
Posts: 35
Joined: Sat Apr 02, 2005 7:43 am
Location: Bulgaria

copy folders with subfolders

Post by DraBS »

In case someone is interested in a backup of this type, I think I found a workaround with WinRAR:



The only issue is that I was not able to find out exactly where WinRAR stores archive presets (called "profiles" in this program) so as to start them as file by Robotask.
Post Reply