UpdraftPlus Home › Forums › Paid support forum – UpdraftPlus backup plugin › Default exclusions for uploads folder
Tagged: defaults, exclusions, settings
- This topic has 8 replies, 3 voices, and was last updated 6 years, 3 months ago by Andrew.
-
AuthorPosts
-
August 18, 2018 at 2:17 pm #300032AndrewParticipant
Hi Team,
Most of my clients use one of two image optimization plugins – either ShortPixel or Imagify. (These are both popular plugins, each with over 100K installs.)
Having UDP make a full snapshot of these backup folders nightly has increased my AWS bill dramatically… since now I’m backing up the newly optimized images AND all the old images. Many of my clients have backup folders of 5GB or more.
Both plugins make backups of the original images before optimizing them, storing them in these folders, respectively:
/wp-content/uploads/ShortpixelBackups/ /wp-content/uploads/backup/
These are the default exclusions in UpdraftPlus for the /uploads/ folder:
backup*,*backups,backwpup*,wp-clone,snapshots
Those defaults don’t actually exclude these two backup folders. For ShortPixel, I think it’s because of the capital “B” (*backups is excluded, but *Backups is not). For Imagify, I think it’s because it’s backup (singular), and backup* requires an extra character.
Can you please adjust the default exclusions so that “ShortpixelBackups” and “backup” will also be automatically excluded?
I’m wondering if this would be a better default exclusion list?
backu*,*ackups,backwpup*,wp-clone,snapshots
Alternately, if the regex is changed to be case-insensitive, and * means “zero or more characters” (instead of “one or more characters”), that would solve it too. :)
Thanks!
August 18, 2018 at 2:19 pm #300033AndrewParticipantActually, I’d love that last option — changing the meaning of * in the exclusion list — because then an update would retroactively apply to all my client’s sites and I wouldn’t have to go through and change the list manually. ;)
August 18, 2018 at 3:48 pm #300051udadminKeymasterHi,
Wouldn’t it make more sense if you configured those two plugins to not make backups? You already have a solution for backups (i.e. UpdraftPlus), so, it would seem more logical to cut out the “backups of things already backup-ed elsewhere” at the source?
David
August 18, 2018 at 4:14 pm #300058udadminKeymasterBTW, if I create a folder
backups
inside the uploads directory, then it is not backed up. The log says as follows (and it’s not inside the zip file):0005.671 (0) Exclusion option setting (uploads): backup*,*backups,backwpup*,wp-clone,snapshots
0005.686 (0) Looking for candidates to backup in: /(path)/wp-content/uploads
0005.700 (0) finding files: backup: skipping: excluded by options (glob)
0005.745 (0) finding files: 2016: adding to list (1)August 18, 2018 at 5:06 pm #300063AndrewParticipantHi David,
Thanks for getting back to me so quickly. :)
The plugins make backups of the original image files, and then optimize/compress the images on the site. Once that’s done, the files in the backup folders are the originals (and aren’t exact duplicates of the live images on the site). These backup folders are needed in case a user wants to restore an image to the original state, or re-process it with a different compression level.
So the image processing backup folders are necessary for full functionality of the plugins, and it’s desirable to keep that feature active. But I don’t want to make backups of thesse backups, which is why I want to exclude them from the UDP backups.
You’re correct, a folder with the name
backups
will be excluded by default. But a folder with the namebackup
(singular), which is what Imagify creates, is not excluded by the default directives.The reason the Imagify
backup
folder is not excluded by default is that it’s singular, not plural.The reason the Shortpixel
ShortpixelBackups
folder is not excluded by default is that the B is capitalized, and it appears the exclusions are case-sensitive.Hope that helped clarify?
August 18, 2018 at 5:08 pm #300064AndrewParticipantOh, I just re-read your last message, and looked more closely at the sample logs.
Was that a typo when you said
backups
(plural)? Is abackup
(singular) folder being successfully excluded? If so, I stand corrected on that! And then I just want to solve theShortpixelBackups
exclusion. ;)August 20, 2018 at 4:45 pm #300382Dee NutbourneModeratorHi,
Yes, the log is correct.
I’ll make a note in our development list about altering the default exclusion list to catch capitalised
Backup
.Best Wishes,
David NAugust 20, 2018 at 5:12 pm #300393AndrewParticipantGreat – thanks David!
August 20, 2018 at 5:13 pm #300394AndrewParticipantOh, and just to make sure this is accurately reflected in your notes… it needs to catch
*Backup
not justBackup
. :) -
AuthorPosts
- The topic ‘Default exclusions for uploads folder’ is closed to new replies.