I have a quick question about directories/remote directory syntax.
If I have a set of directories I’d like to create, BUT on the system, they
may be filled with things, I’d like to back them up prior to creating the
new, empty ones.
I see that remote_directory offers this backup feature and I like being able
to sketch out my folder structure in files/default/foo/bar.
When I do this though:
remote_directory "C:/foo/bar" do
source "foo/bar"
files_backup 10
end
and the directory within the cookbook files/default/foo/bar is empty,
nothing is created.
Do I have to have files in there in order for the directories to be
created?
Use "directory" resource to create directories
"remote_directory" is for transferring recursively files/directories
from cookbooks
On 10/12/11 12:16 AM, Maven User wrote:
I have a quick question about directories/remote directory syntax.
If I have a set of directories I'd like to create, BUT on the system,
they may be filled with things, I'd like to back them up prior to
creating the new, empty ones.
I see that remote_directory offers this backup feature and I like
being able to sketch out my folder structure in files/default/foo/bar.
When I do this though:
remote_directory "C:/foo/bar" do
source "foo/bar"
files_backup 10
end
and the directory within the cookbook files/default/foo/bar is empty,
nothing is created.
Do I have to have files in there in order for the directories to be
created?
--
Vladimir Girnet
Infrastructure Engineer
Tacit Knowledge
The remote_directory doesn't work if it's just empty directories (you need
at least one file in there).
Or am I missing something?
On Wed, Oct 12, 2011 at 2:54 AM, Vladimir Girnet <vgirnet@tacitknowledge.com
wrote:
Use "directory" resource to create directories
"remote_directory" is for transferring recursively files/directories
from cookbooks
On 10/12/11 12:16 AM, Maven User wrote:
I have a quick question about directories/remote directory syntax.
If I have a set of directories I'd like to create, BUT on the system,
they may be filled with things, I'd like to back them up prior to
creating the new, empty ones.
I see that remote_directory offers this backup feature and I like
being able to sketch out my folder structure in files/default/foo/bar.
When I do this though:
remote_directory "C:/foo/bar" do
source "foo/bar"
files_backup 10
end
and the directory within the cookbook files/default/foo/bar is empty,
nothing is created.
Do I have to have files in there in order for the directories to be
created?
--
Vladimir Girnet
Infrastructure Engineer
Tacit Knowledge
http://www.tacitknowledge.com