Skip to content

Bash command to Zip files in dir or sub dir with pattern full o incremental with retantion days to clean up dir.

License

Notifications You must be signed in to change notification settings

padosoft/zip-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zip-files

Bash command to Zip files in dir or sub dir with pattern full o incremental with retantion days to clean up dir.

Software License

Table of Contents

Prerequisites

bash

Install

This package can be installed easy.

cd /root/myscript
git clone https://github.com/padosoft/zip-files.git
cd zip-files
chmod +x zipfiles.sh

If you want to run programmatically, add it to cronjobs manually or execute install script:

cd /root/myscript/zipfiles
chmod +x install.sh
bash install.sh

Usage

bash zip-files.sh PATHTOZIP ZIPNAME ZIPNAMEPATH [MODE 0|1|2] [DAYCHANGES] [MAXRETENTIONDAYS]

Example

bash /root/myscript/zip-files/zipfiles.sh /my/dir/images/ images.zip /my/dir/archives/ 
bash /root/myscript/zip-files/zipfiles.sh /my/dir/images/ images.zip /my/dir/archives/ 0 1
bash /root/myscript/zip-files/zipfiles.sh /my/dir/images/ images.zip /my/dir/archives/ 0 1 30

For help:

bash zipfiles.sh

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Credits

About Padosoft

Padosoft is a software house based in Florence, Italy. Specialized in E-commerce and web sites.

License

The MIT License (MIT). Please see License File for more information.

About

Bash command to Zip files in dir or sub dir with pattern full o incremental with retantion days to clean up dir.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages