I'm wondering if there's a resource out there to make a copy of a whole directory. I know I could always use a bash resource and just do a 'cp', but I was wondering if there's an analog to the 'file' resource for directories.
bash resource solution
bash "backup org folder" do
code <<-EOL
mkdir /opt/tmp/copy
mv /opt/tmp/org/* /opt/tmp/copy
EOL
end
I found this: How to move/copy files locally with Chef But is 2 years old so I'm wondering if there's any new resource for this case.
Thanks.