backup -- ls: shows too many paths? #37

Closed
opened 2023-10-12 13:41:46 +00:00 by decentral1se · 6 comments
Owner

I think I would not expect the timestamps?

And further, the lines with /var, /var/lib etc.

🌻 ./abra app backup ls abra-test-recipe.foo.com
2023-10-12T13:33:57.595887937Z /secrets
2023-10-12T13:33:57.595887937Z /secrets/abra-test-recipe_foo_com_pass_one_v1
2023-10-12T13:33:57.595887937Z /secrets/abra-test-recipe_foo_com_test_pass_two_v1
2023-10-12T13:33:03.084078341Z /var
2023-10-12T13:33:03.084078341Z /var/lib
2023-10-12T13:33:03.088078326Z /var/lib/docker
2023-10-12T13:33:02.108081747Z /var/lib/docker/volumes
2023-10-12T13:24:40.985842291Z /var/lib/docker/volumes/abra-test-recipe_foo_com_test-volume
2023-10-12T13:24:40.985842291Z /var/lib/docker/volumes/abra-test-recipe_foo_com_test-volume/_data

Maybe something like?

🌻 ./abra app backup ls abra-test-recipe.foo.com
/secrets/abra-test-recipe_foo_com_pass_one_v1
/secrets/abra-test-recipe_foo_com_test_pass_two_v1
var/lib/docker/volumes/abra-test-recipe_foo_com_test-volume/_data

Also, it would be good to include the time/date of this backup? Is there also an accompanying snapshot ID or additonal metadata you think would be useful to have on the receiving end of this?

I think I would not expect the timestamps? And further, the lines with `/var`, `/var/lib` etc. > 🌻 ./abra app backup ls abra-test-recipe.foo.com > 2023-10-12T13:33:57.595887937Z /secrets > 2023-10-12T13:33:57.595887937Z /secrets/abra-test-recipe_foo_com_pass_one_v1 > 2023-10-12T13:33:57.595887937Z /secrets/abra-test-recipe_foo_com_test_pass_two_v1 > 2023-10-12T13:33:03.084078341Z /var > 2023-10-12T13:33:03.084078341Z /var/lib > 2023-10-12T13:33:03.088078326Z /var/lib/docker > 2023-10-12T13:33:02.108081747Z /var/lib/docker/volumes > 2023-10-12T13:24:40.985842291Z /var/lib/docker/volumes/abra-test-recipe_foo_com_test-volume > 2023-10-12T13:24:40.985842291Z /var/lib/docker/volumes/abra-test-recipe_foo_com_test-volume/_data Maybe something like? > 🌻 ./abra app backup ls abra-test-recipe.foo.com > /secrets/abra-test-recipe_foo_com_pass_one_v1 > /secrets/abra-test-recipe_foo_com_test_pass_two_v1 > var/lib/docker/volumes/abra-test-recipe_foo_com_test-volume/_data Also, it would be good to include the time/date of this backup? Is there also an accompanying snapshot ID or additonal metadata you think would be useful to have on the receiving end of this?
Author
Owner

Related #27

Related https://git.coopcloud.tech/coop-cloud/backup-bot-two/issues/27
Author
Owner

@3wordchant any thoughts on output for this which would be useful?

@3wordchant any thoughts on output for this which would be useful?
Owner

I think for finding files with grep it would be nice to list all files recursively. But instead of being the default behavior, it could be activated with a flag like --all / -a . And the default behavior could be to provide a path, like unix ls works. And maybe activating timestamps with a -t flag?

I think for finding files with `grep` it would be nice to list all files recursively. But instead of being the default behavior, it could be activated with a flag like `--all / -a `. And the default behavior could be to provide a path, like unix `ls` works. And maybe activating timestamps with a `-t` flag?
Author
Owner

That sounds Very Cool @moritz 👍

That sounds Very Cool @moritz 👍
Owner

The usage is:

Usage: backup ls [OPTIONS] [PATH]

Options:
  -s, --snapshot TEXT
  -a, --all

backup ls will now show /var/lib/docker/volumes/ per default, if no PATH is given. The path can also be set per INCLUDE_PATH env.
The --all flag will show all files recursively. This flag can also be set with the env SHOW_ALL.

The usage is: ``` Usage: backup ls [OPTIONS] [PATH] Options: -s, --snapshot TEXT -a, --all ``` `backup ls` will now show `/var/lib/docker/volumes/` per default, if no `PATH` is given. The path can also be set per `INCLUDE_PATH` env. The `--all` flag will show all files recursively. This flag can also be set with the env `SHOW_ALL`.
Owner

Added -t, --timestamps flag (TIMESTAMPS env) to show timestamps.

Added `-t, --timestamps` flag (`TIMESTAMPS` env) to show timestamps.
Sign in to join this conversation.
No description provided.