Project

General

Profile

Bug #13887

Updated by François ARMAND over 5 years ago

 'File download (Rudder server)' technique lets you copy things from `/var/rudder/configuration-repository/shared-files/` to somewhere else.  

 You have three option to choose what to copy:  

 - Only this file 
 - The whole content of the folder 
 - The folder, its content, and all the subfolders  

 What I undestand, if I have:  
 <pre> 
 .../configuration-repository/shared-files/ 
 └── dir 
     ├── dir2 
     │   └── foo.txt 
     └── hollymolly.txt 
 </pre> 

 And that I set "dir" in source path, "/tmp" in destination path, is that the content will be:  

 - Only this file 
 <pre> 
 /tmp/ 
 └── dir/ 
 </pre> 

 But it actually does nothing. 

 - The whole content of the folder 
 <pre> 
 /tmp/ 
 ├── dir2 (empty) 
 └── hollymolly.txt 
 </pre> 

 And it's that! 


 - The folder, its content, and all the subfolders  
 <pre> 
 /tmp/ 
 └── dir 
     ├── dir2 
     │     └── foo.txt 
     └── hollymolly.txt 
 </pre> 

 But it actually skips "dir" (only content is copied) 

 Moreover, folder is used a couple of time, when `directory` is used in (many more) other places.  

 Change into:  

 - Only this file (or nothing for a directory) 
 - The whole content of the directory (one level) 
 - The whole content of the directory (recursively)  

 (and: Apply the sticky bit to the whole folder? (caution, use with care) => Apply the sticky bit to the whole directory? (caution, use with care) 

 (even so, that does not seems very consistent. Why the sub-directory is created in second case if skipped in the first? But it can be ok)  

Back