Skip to content

Backup command reporting oldest backup as latest #3109

@SliceofLie

Description

@SliceofLie

Basic info

  • Distro: [Ubuntu 20.04]
  • Game: [Factorio]
  • Command: [Backup and Details]
  • LinuxGSM version: [v20.5.1]

Further Information

When using either the backup or details command, the oldest backup is reported as the latest backup, leading to confusion.
I think the script info_distro.sh is causing the issue.
I've changed the line
lastbackup=$(find "${backupdir}"/*.tar.gz | head -1)
to
lastbackup=$(find "${backupdir}"/*.tar.gz | tail -1)
and it seems to have fixed the issue.

To Reproduce

Steps to reproduce the behaviour:
Use either the backup or details command
Observe the "Latest backup" section information
Compare with the actual file list of the backups directory

Expected behaviour

"Latest backup" should refer to the most recently created backup, not the oldest backup.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions