Create a *zip Files in workflow | Community
Skip to main content
Level 3
March 27, 2020
Solved

Create a *zip Files in workflow

  • March 27, 2020
  • 1 reply
  • 3752 views

Hello,

 

Have you ever had to create a zip file in ACC that would contain multiple *.csv/*.txt files. 
 
A client (who's currently getting migrated from SFMC to Adobe)  runs Exports weekly and creates seven (7) *.csv files. These files are then zipped into one file (ex: Client_Email_Send_2020_03_26.zip)
 
I found some information online, and have already reached out to Adobe Support to see if I have have the necessary utilities installed on the server. 
 
 
I've also tried to use some information I got from Adobe Experience League and get an 'Can not open file.." error. 
 
I've never done this in ACC before - especially since in ACS - you can choose to output the file as a *zip. Not sure how I need to proceed. 
 
The *csv file output to a FTP (which I can access through FileZilla) that was set up in Adobe.
 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Milan_Vucetic

Hi @holmes74338504 

 

you may use the following code in the Script node (chose Shell script):

 

# zip all .csv files
cd /some/directory/which/contain/files/
tar -cvf  PreferedNameOfZipFile  /some/directory/which/contain/files/*.csv

 

Regards,

Milan

1 reply

Milan_Vucetic
Milan_VuceticAccepted solution
Level 9
March 27, 2020

Hi @holmes74338504 

 

you may use the following code in the Script node (chose Shell script):

 

# zip all .csv files
cd /some/directory/which/contain/files/
tar -cvf  PreferedNameOfZipFile  /some/directory/which/contain/files/*.csv

 

Regards,

Milan