Skip to content

Commit

Permalink
Merge pull request #160 from MaRDI4NFDI/fix_image_backup
Browse files Browse the repository at this point in the history
exclude cache and temp directories
  • Loading branch information
eloiferrer authored Sep 19, 2024
2 parents 9006011 + 036c79a commit a91261c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ files_dump() {
echo "Uploaded files backup"
IMAGES_FILE=images_${DATE_STRING}.tar.gz
if \
tar -czf "${BACKUP_DIR}/${IMAGES_FILE}" -C /var/www/html/ images
tar --exclude='images/cache' --exclude='images/temp' -czf "${BACKUP_DIR}/${IMAGES_FILE}" -C /var/www/html/ images
then
STATUS=$?
if [[ -f ${BACKUP_DIR}/${IMAGES_FILE} ]]; then
Expand Down

0 comments on commit a91261c

Please sign in to comment.