Get the filename of the backup

Hi!

I’d like to automate the following: creating a backup from script AND copying the backup to somewhere else.

Is there an easily parseable way to find out the current backup filename (yes I know the backup process outputs the filename created, but that’s not readily machine readable), or should I just hack a oneliner to figure out the most recent file in the backup directory?

thanks
Gergő

1 Like
./launcher enter app
discourse restore

That command will output all available backups and the filenames there already have consistent date information that would make it easier to sort. Does that work?

4 Likes

Thanks, so that means I should hack a shell oneliner to find the latest file.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.