ramirojoaquin / vestacp-borg-incremental-backups

A series of bash scripts to perform incremental backups of Vesta Control Panel users and server config, using Borg Backup as backend.
GNU General Public License v3.0
23 stars 15 forks source link

wrongly exclude moodle cache scripts #15

Open mojtaba82 opened 3 years ago

mojtaba82 commented 3 years ago

Hi. Thank you for this good backup script and excuse me for my bad english This line

if [ -d "$WEB_DIR/$PUBLIC_HTML_DIR_NAME/cache" ]; then
          echo "$WEB_DIR/$PUBLIC_HTML_DIR_NAME/cache" >> $EXCLUDE
fi

that is for exclude Dropal data cache wrongly exclude cache scripts that moodle use these to cache data. In moodle cached data is in moodledata directory and cache in public_html include scirpts for caching. generally this line is not good because some sites may use this directory for scripts that make caching not for cached data.