Making the backup dump file with certain name?

Hi guys!

I have automated my system to make a dump by this command

/usr/local/bin/gitea dump -c /etc/gitea/gitea.ini

but the file is usually like this

gitea-dump-1584733774.zip

is there any possibilities to change the output name? Also is there a way to direct the output file on certain location?

Yes, you can use the --file flag.
https://docs.gitea.io/en-us/command-line/#dump

1 Like