I’m using the following options in the ActionScript:
Similar Settings:
// set max size to 524288000 to prevent too much data. If the zip file is to bigger than 500MBs the upload won't occur
setting "_BESClient_ArchiveManager_MaxArchiveSize"="524288000" on "{parameter "action issue date" of action}" for client
setting "_BESClient_ArchiveManager_OperatingMode"="2" on "{parameter "action issue date" of action}" for client
Option 1:
setting "_BESClient_ArchiveManager_FileSet-Ubuntu2004"="/var/opt/BESClient/__BESData/Patches\ for\ Ubuntu\ 2004/apt/*.*" on "{parameter "action issue date" of action}" for client
setting "_BESClient_ArchiveManager_FileSet-Ubuntu1804"="/var/opt/BESClient/__BESData/Patches\ for\ Ubuntu\ 1804/apt/*.*" on "{parameter "action issue date" of action}" for client
setting "_BESClient_ArchiveManager_FileSet-Ubuntu1604"="/var/opt/BESClient/__BESData/Patches\ for\ Ubuntu\ 1604/apt/*.*" on "{parameter "action issue date" of action}" for client
Option 2:
setting "_BESClient_ArchiveManager_FileSet-Ubuntu2004"="/var/opt/BESClient/__BESData/Patches\ for\ Ubuntu\ 2004/apt" on "{parameter "action issue date" of action}" for client
setting "_BESClient_ArchiveManager_FileSet-Ubuntu1804"="/var/opt/BESClient/__BESData/Patches\ for\ Ubuntu\ 1804/apt" on "{parameter "action issue date" of action}" for client
setting "_BESClient_ArchiveManager_FileSet-Ubuntu1604"="/var/opt/BESClient/__BESData/Patches\ for\ Ubuntu\ 1604/apt" on "{parameter "action issue date" of action}" for client
Option 3:
setting "_BESClient_ArchiveManager_FileSet-Ubuntu2004"="/var/opt/BESClient/__BESData/Patches for Ubuntu 2004/apt/*.*" on "{parameter "action issue date" of action}" for client
setting "_BESClient_ArchiveManager_FileSet-Ubuntu1804"="/var/opt/BESClient/__BESData/Patches for Ubuntu 1804/apt/*.*" on "{parameter "action issue date" of action}" for client
setting "_BESClient_ArchiveManager_FileSet-Ubuntu1604"="/var/opt/BESClient/__BESData/Patches for Ubuntu 1604/apt/*.*" on "{parameter "action issue date" of action}" for client
// send results
archive now
Non of them Actually Archive the Folder Apt
I’m deploying the same action on different Ubuntu Flavors - Non of them is working
I can archive the following folder: setting "_BESClient_ArchiveManager_FileSet-EDRDeployData"="/var/opt/BESClient/EDRDeployData" on "{parameter "action issue date" of action}" for client
So, it’s uploading the files in the folder but you want it to upload the folder itself?
No subdirectory structure is going to be created in the UploadManagerData folder. If you want to preserve some kind of structure you would need to create an archive (tar, zip, etc.) and then upload the zip file.
Hmm…at first glance, option 3 looks right to me, and worked in my test (v11 Client on Ubuntu 22.04 for reference, though I’m not aware of a version consideration here):
_BESClient_ArchiveManager_FileSet-Ubuntu2204 = /var/opt/BESClient/__BESData/Patches for Ubuntu 2204/apt/*.*
// set max size to 524288000 to prevent too much data. If the zip file is to bigger than 500MBs the upload won’t occur
setting “_BESClient_ArchiveManager_MaxArchiveSize”=“524288000” on “{parameter “action issue date” of action}” for client
setting “_BESClient_ArchiveManager_OperatingMode”=“2” on “{parameter “action issue date” of action}” for client
setting “_BESClient_ArchiveManager_FileSet-Ubuntu2004”="/var/opt/BESClient/__BESData/Patches for Ubuntu 2004/apt/." on “{parameter “action issue date” of action}” for client
setting “_BESClient_ArchiveManager_FileSet-Ubuntu1804”="/var/opt/BESClient/__BESData/Patches for Ubuntu 1804/apt/." on “{parameter “action issue date” of action}” for client
setting “_BESClient_ArchiveManager_FileSet-Ubuntu1604”="/var/opt/BESClient/__BESData/Patches for Ubuntu 1604/apt/." on “{parameter “action issue date” of action}” for client
And what does the Client log show for that action execution?
I just tried on another machine (Ubuntu 1804 with v10 Client) successfully with the following actionscript:
// save existing ArchiveManager settings
parameter “prevOperatingMode” = “{if (exists setting whose (name of it = “_BESClient_ArchiveManager_OperatingMode” and exists value of it) of client) then value of setting “_BESClient_ArchiveManager_OperatingMode” of client else “0”}”
parameter “prevMaxArchiveSize” = “{if (exists setting whose (name of it = “_BESClient_ArchiveManager_MaxArchiveSize” and exists value of it) of client) then value of setting “_BESClient_ArchiveManager_MaxArchiveSize” of client else “52428800”}”
// manual upload settings
setting “_BESClient_ArchiveManager_OperatingMode”=“2” on “{parameter “action issue date” of action}” for client
setting “_BESClient_ArchiveManager_MaxArchiveSize”=“52428800” on “{parameter “action issue date” of action}” for client
setting “_BESClient_ArchiveManager_FileSet-Ubuntu2004”=“/var/opt/BESClient/__BESData/Patches for Ubuntu 2004/apt/.” on “{parameter “action issue date” of action}” for client
// send results
archive now
// restore previous settings or leave a default
setting “_BESClient_ArchiveManager_OperatingMode”=“{parameter “prevOperatingMode”}” on “{parameter “action issue date” of action}” for client
setting “_BESClient_ArchiveManager_MaxArchiveSize”=“{parameter “prevMaxArchiveSize”}” on “{parameter “action issue date” of action}” for client
@JasonWalker@Aram Thanks for your help! Went to sleep and then I’ve seen the error I’ve made
I’ve forgot to add / in the end of the folder name
/apt
versus
/apt/
Which causes it to look for apt file and not the apt folder
The following settings worked and uploaded all of the files under that folder (it does not include sub-folders)
setting "_BESClient_ArchiveManager_FileSet-Ubuntu2004"="/var/opt/BESClient/__BESData/Patches for Ubuntu 2004/apt/" on "{parameter "action issue date" of action}" for client
setting "_BESClient_ArchiveManager_FileSet-Ubuntu1804"="/var/opt/BESClient/__BESData/Patches for Ubuntu 1804/apt/" on "{parameter "action issue date" of action}" for client
setting "_BESClient_ArchiveManager_FileSet-Ubuntu1604"="/var/opt/BESClient/__BESData/Patches for Ubuntu 1604/apt/" on "{parameter "action issue date" of action}" for client