Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print error and usage on an unrecognized command #18

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

Guiorgy
Copy link
Contributor

@Guiorgy Guiorgy commented Feb 7, 2024

E.g.

$ ./vackup impotr mosquitto_config.tar.gz mosquitto_config
Error: 'impotr' is not a recognized command

"Docker Volume Backup". Replicates image management commands for volumes.

export/import copies files between a host tarball and a volume. For making
  volume backups and restores.

save/load copies files between an image and a volume. For when you want to use
  image registries as a way to push/pull volume data.

Usage:

vackup export VOLUME FILE
  Creates a gzip'ed tarball in current directory from a volume

vackup import FILE VOLUME
  Extracts a gzip'ed tarball into a volume

vackup save VOLUME IMAGE
  Copies the volume contents to a busybox image in the /volume-data directory

vackup load IMAGE VOLUME
  Copies /volume-data contents from an image to a volume

@BretFisher BretFisher merged commit d129222 into BretFisher:main Oct 25, 2024
@Guiorgy Guiorgy deleted the handle-unrecognized-commands branch November 1, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants