Package backup

Downloaded files can be automatically saved in a separate directory for backup purposes. This feature is useful for tracking download history and ensuring that packages are available in case they are no longer present in the official software repository.

To enable automatic backup, add the following lines to the gsm.conf file or enable the feature during setup:

backup_package_enable = [True/False]
backup_package_path = /home/data/gsm/backup

The backup directory has the following substructure:

│
└── module
    ├── version
     pkg-filename.tar.gz.1734436688      # Package file
     pkg-filename.tar.gz.dsc.1734436688  # Package description file
     pkg-filename.tar.gz.sig.1734436688  # Package signature file
    ...
...

The creation time of the downloaded package file is used as the reference time for the backup. The timestamp is in UTC and is appended to all files.

Here is an example of the backup structure:

│
├── seiscomp
│   ├── 6.6.3
│      ├── seiscomp-6.6.3-rhel-8-x86_64.tar.gz.1734618047
│      ├── seiscomp-6.6.3-rhel-9-x86_64.tar.gz.dsc.1734618877
│      ├── seiscomp-6.6.3-rhel-9-x86_64.tar.gz.sig.1734618877
│   └── 6.7.9
│       ├── seiscomp-6.7.9-rhel-9-x86_64.tar.gz.1736417068
│       ├── seiscomp-6.7.9-rhel-9-x86_64.tar.gz.dsc.1736417068
│       └── seiscomp-6.7.9-rhel-9-x86_64.tar.gz.sig.1736417068
└── seiscomp-tools
    └── 2024.330
        ├── seiscomp-tools-2024.330-seiscomp-6-any--noarch.tar.gz.1736417190
        ├── seiscomp-tools-2024.330-seiscomp-6-any--noarch.tar.gz.dsc.1736417190
        └── seiscomp-tools-2024.330-seiscomp-6-any--noarch.tar.gz.sig.1736417098