layout a backupbot (drone-like) interface #20
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/backup-bot-two#20
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this is my first interface proposal.
At the moment we use restics --host key for the actual host, but I think it could be more useful to actually identify the service with it.
commands
create
restic backup --host $SERVICE
Restore
restic restore --host $SERVICE $SNAPSHOT
Download
restic dump --host $SERVICE $SNAPSHOT
docker cp
Snaphots
Displays a list of all snapshots
restic snaphots -H $SERVICE
List
Displays a list of available backups.
restic ls $SNAPSHOT
I changed the layout of #23 a little bit.
Please review:
commands
create
restic backup --host $SERVICE
backup --host cloud.example.org create --repo /example/repo
--host
and--repo
are optionalRestore
restic restore --host $SERVICE $SNAPSHOT
backup --host cloud.example.org restore --snapshot <snapshot_id> --target <target_path>
--snapshot
and--target
are optionalDownload
restic dump $SNAPSHOT $INCLUDE_PATH > /tmp/$INCLUDE_PATH.tar
docker cp
backup download --snapshot <snapshot_id> --path <download_path>
--snapshot
is optionalIt returns the filepath where the dump is saved. This dump can be copied with
abra app cp
.Snaphots
Displays a list of all snapshots
restic snaphots -H $SERVICE
backup --host cloud.example.org snapshots
--host
is optionalList
Displays a list of available backups.
restic ls $SNAPSHOT
backup ls --snapshot <snapshot_id> --path <target_path>
--snapshot
and--path
are optional