Feature request
Improve duplicacy info
command to give information of the repository and storages without need for further options.
Rationale
Backup setups tend to be things that one once sets up and next time revisits those after several months or even years. While all the information can found out by using basic UNIX tools like cat ~/.duplicacy/Repo/preferences
, there could be more user friendly way for this using duplicacy info
.
Functionality (directional)
Here are couple of examples what the duplicacy info
command could do.
List storages by default
# inside a configured repo
%> duplicacy info
repository: /path/to/repo
Storages: b2-backup
onedrive-backup
Storage info
# inside a configured repo
%> duplicacy info <storage-name>
repository: /path/to/repo
name: <storage-name>
--------------------------------------
id: my-repo-id
storage: b2://bucket-URL
encrypted: true
filters: -*.tmp
-tmp/
-*swp
Info of all storages
# inside a configured repo
%> duplicacy info -all
repository: /path/to/repo
name: b2-backup
--------------------------------------
id: my-repo-id
storage: b2://bucket-URL
encrypted: true
filters: -*.tmp
-tmp/
-*swp
name: onedrive-backup
--------------------------------------
id: my-repo-id
storage: one://backup/dir
encrypted: true
filters: -*.tmp
-tmp/
-*swp
-*.jpg
There are other things also what the info
command could do, but this would be a good start.
Final words
As said all this information can be found out using cat
etc. but this type of functionality would improve the usability of duplicacy.
PS. I can try to make PR, but I had issues building duplicacy form source. I will make a separate post or GH issue about this. It was related to versions of github.com/ncw/swift
, github.com/vmihailenco/msgpack
and github.com/googleapis/gax-go
.. Somehow go had issues with v2
versions.