Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

shutil.make_archive

dst = '/mnt/data' # where to save
src = '/home/abc' # directory to be zipped
path_to_archive = shutil.make_archive(dst,'zip',src)
# path_to_archive = '/mnt/data/abc.zip
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
4+8 =