Question AHow to get troubleshooting tips for various storage issues?
AnswerThere are several troubleshooting tips on every storage type:
Question BHow to limit the number of backups kept (e.g. the last 20 builds)?
AnswerEach storage location has a setting titled ‘Max Backups’. When this limit is exceeded, the oldest backup will be deleted. If set to 0 then no backups are removed. To enable go to Duplicator Pro > Storage > Edit Storage Item > Set Max Backups.
Because the max backups is tied to each storage endpoint, the main backups screen will still contain an entry or audit trail of the transaction. For example, if the ‘Max Backups’ for the ‘Default storage’ type is set to say 3 then only the 3 top most backups in the Backups page will have a Download button that works because the local default backups have been removed.
Question CHow to prevent manual builds from getting counted in scheduled max builds?
AnswerThe best way to separate manual build backups from scheduled build backups is to assign different storage locations. Since the storage location is the component that defines the “Max backups” setting. Also, when creating different storage types, make sure they point to a slightly different path. If they are pointing to the same directory, then they will interfere with one another. For instance, you could set things up like:
- /my_backup_path/manual
- /my_backup_path/scheduled