Replies: 1 comment
-
|
The short answer is that you can't change this from a config file — the File Manager's compress button is part of the CloudPanel admin UI (which ships as a closed-source bundle in the Practical workaround if you want the sudo -u <site-user> bash -c '
cd /home/<site-user>/htdocs/<domain>
FOLDER="$1"
zip -r "${FOLDER}_$(date +%Y-%m-%d_%H-%M).zip" "$FOLDER"
' _ <folder-name>Drop that in For recurring archives, the cleaner setup is a cron job under the site user (CloudPanel UI: Site → Cron Jobs): 0 3 * * * cd /home/<site-user>/htdocs/<domain> && zip -rq "backups/$(basename "$PWD")_$(date +\%Y-\%m-\%d_\%H-\%M).zip" public_html/uploads(Note: cron's If a built-in option matters enough that you want it in the UI, that's a feature-request path against this repo — but as it stands the compress button is fixed at |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using CloudPanel and I need to modify the compression functionality.
When I click the "Compress" button in the File Manager, it creates an archive named "archive.zip".
I want it to automatically create archives with this naming pattern:
foldername_$(date +%Y-%m-%d_%H-%M).zip
Where can I find the configuration file that controls this compression behavior?
I need to edit it to change the default archive naming convention.
Beta Was this translation helpful? Give feedback.
All reactions