Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


ceastlack
2018-07-18T15:43:26Z
When trying to utilize the GZip Archive Type in the Archive -Compress task to zip together multiple CSV files, the task immediately fails when compressing to the .gz format.

There is never an error message associated with the failure.

Please look into this as soon as possible.
Sponsor
Forum information
Support
2018-07-24T08:53:15Z
Please add some screenshots of your Task settings.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
onridiko diko
2023-06-17T20:55:11Z
To compress files using GZip compression and create a .gz file, you can use various tools or programming languages. Here, I'll provide examples using both the command line and Python.

Command Line:

If you're using a Unix-like system (Linux, macOS, etc.), you can use the gzip command:

Copy code
gzip file.txt
This will compress file.txt and create a compressed file named file.txt.gz.

If you want to include multiple files or directories in the compression, you can use the -r option:

Copy code
gzip -r directory
This will compress all the files and directories within directory and create a compressed file named directory.tar.gz.

Python:
If you prefer using Python, you can use the gzip module to compress files programmatically. Here's an example:

python
Copy code
import gzip

input_file = 'file.txt'
output_file = 'file.txt.gz'

with open(input_file, 'rb') as f_in:
with gzip.open(output_file, 'wb') as f_out:
f_out.writelines(f_in)
This Python code opens the file.txt in binary mode, compresses its content using GZip, and writes it to the file.txt.gz.

Remember to replace 'file.txt' with the path or name of the file you want to compress.

I hope this helps! Let me know if you have any further questions.




onridiko diko
2023-06-19T21:32:34Z
Copy code
gzip -r directory
This will compress all the files and directories within a directory and create a compressed file named directory.tar.gz.

Python:
If you prefer Python, you can use the gzip module to compress files  programmatically. Here's an example:

Python
Copy code
import gzip

input_file = 'file.txt'
output_file = 'file.txt.gz'

with open(input_file, 'rb') as f_in:
with gzip.open(output_file, 'wb') as f_out:
f_out.writelines(f_in)
This Python code opens the file.txt in binary mode, compresses its content using GZip, and writes it to the file.txt.gz.

Scroll to Top