There are a number of issues with server backup and restore.
- The default image name should be given without a folder, e.g.,
openfido-backup-latest.tar.
- If the image already exists already exists, it should be moved to a date-time sequence number, e.g.,
${IMAGENAME}-1234.tar.
- Server
stop and restart should require confirmation if data is not stored in a volume because otherwise data will be lost. Confirmation is not required when -f|--force is included in the command line
- If the image name includes a path that doesn't exist, then the path should only be created if a
-f|--force option is included in the command arguments.
There are a number of issues with server backup and restore.
openfido-backup-latest.tar.${IMAGENAME}-1234.tar.stopandrestartshould require confirmation if data is not stored in a volume because otherwise data will be lost. Confirmation is not required when-f|--forceis included in the command line-f|--forceoption is included in the command arguments.