docker-db-backup icon indicating copy to clipboard operation
docker-db-backup copied to clipboard

Change Backup filename

Open KareemWaheed opened this issue 1 year ago • 3 comments

Hi, I was wondering if there is a possibility of change the backup file name/naming format to a custom name

I'm uploading backups to S3 and i could enable versioning so that latest backup always has one name that i could restore via a script if needed without changing the name

Thank you

KareemWaheed avatar Sep 29 '22 09:09 KareemWaheed

At this time there is no way to format the file - I do some pretty hairy stuff with the filenames based on what type of compression and databases are taken. I can see how it can happen but would have to map out what it would take to get working properly without clobbering any of the backend work.

tiredofit avatar Sep 29 '22 15:09 tiredofit

It wouldn't be hard to workaround that with a post backup script since it reports the filename. Just ln it to latest and you should be good to go. Just my educated guess, not tested though.

cdpb avatar Nov 15 '22 18:11 cdpb

This is a great way of utilizing post script! Lovely idea.

tiredofit avatar Nov 15 '22 22:11 tiredofit