Compare commits
14 Commits
fd9426181f
...
01efeab13f
Author | SHA1 | Date | |
---|---|---|---|
01efeab13f | |||
9a663f4260 | |||
7c635c36e0 | |||
fff33849da | |||
3391ffa4e6 | |||
b7d1be495e | |||
2daf2f130d | |||
d120c2ca8f | |||
02fd04930d | |||
10b0abe707 | |||
291a954e9c | |||
e43eecf383 | |||
ea676fe0da | |||
e73bd9ff3b |
@ -1,3 +1,4 @@
|
|||||||
|
version: 2
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
# You may remove this if you don't use go modules.
|
# You may remove this if you don't use go modules.
|
||||||
@ -31,9 +32,9 @@ archives:
|
|||||||
checksum:
|
checksum:
|
||||||
name_template: 'checksums.txt'
|
name_template: 'checksums.txt'
|
||||||
snapshot:
|
snapshot:
|
||||||
name_template: "{{ incpatch .Version }}-next"
|
version_template: "{{ incpatch .Version }}-next"
|
||||||
changelog:
|
changelog:
|
||||||
skip: false
|
disable: false
|
||||||
|
|
||||||
gitea_urls:
|
gitea_urls:
|
||||||
api: https://git.andrewnw.xyz/api/v1
|
api: https://git.andrewnw.xyz/api/v1
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# This is an example .goreleaser.yml file with some sensible defaults.
|
# This is an example .goreleaser.yml file with some sensible defaults.
|
||||||
# Make sure to check the documentation at https://goreleaser.com
|
# Make sure to check the documentation at https://goreleaser.com
|
||||||
|
version: 2
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
# You may remove this if you don't use go modules.
|
# You may remove this if you don't use go modules.
|
||||||
@ -32,7 +33,7 @@ archives:
|
|||||||
checksum:
|
checksum:
|
||||||
name_template: 'checksums.txt'
|
name_template: 'checksums.txt'
|
||||||
snapshot:
|
snapshot:
|
||||||
name_template: "{{ incpatch .Version }}-next"
|
version_template: "{{ incpatch .Version }}-next"
|
||||||
changelog:
|
changelog:
|
||||||
sort: asc
|
sort: asc
|
||||||
filters:
|
filters:
|
||||||
|
@ -7,4 +7,8 @@ steps:
|
|||||||
release:
|
release:
|
||||||
image: golangci/golangci-lint:v1.53.3
|
image: golangci/golangci-lint:v1.53.3
|
||||||
commands:
|
commands:
|
||||||
- golangci-lint run -v --timeout 5m
|
- golangci-lint run -v --timeout 5m
|
||||||
|
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: develop
|
@ -5,6 +5,10 @@ steps:
|
|||||||
- git submodule foreach 'git fetch origin; git checkout $(git describe --tags `git rev-list --tags --max-count=1`);'
|
- git submodule foreach 'git fetch origin; git checkout $(git describe --tags `git rev-list --tags --max-count=1`);'
|
||||||
- cd docs
|
- cd docs
|
||||||
- hugo
|
- hugo
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: master
|
||||||
|
path: "docs/*"
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: codingkoopa/git-rsync-openssh
|
image: codingkoopa/git-rsync-openssh
|
||||||
@ -23,8 +27,7 @@ steps:
|
|||||||
- rsync -atv --delete --progress vangen/ backy@backy.cybershell.xyz:vangen-go
|
- rsync -atv --delete --progress vangen/ backy@backy.cybershell.xyz:vangen-go
|
||||||
secrets: [ ssh_host_key, ssh_deploy_key, ssh_passphrase ]
|
secrets: [ ssh_host_key, ssh_deploy_key, ssh_passphrase ]
|
||||||
|
|
||||||
|
when:
|
||||||
when:
|
- event: push
|
||||||
- event: push
|
branch: master
|
||||||
branch: master
|
path: "docs/*"
|
||||||
path: "docs/*"
|
|
24
CHANGELOG.md
24
CHANGELOG.md
@ -6,6 +6,30 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
|
|||||||
and is generated by [Changie](https://github.com/miniscruff/changie).
|
and is generated by [Changie](https://github.com/miniscruff/changie).
|
||||||
|
|
||||||
|
|
||||||
|
## v0.5.0 - 2024-11-19
|
||||||
|
### Added
|
||||||
|
* Lists can now go in a file. See docs for more information.
|
||||||
|
* commands.[name].type: script now opens `scriptEnvFile`.
|
||||||
|
* Hooks for Commands.[name]. Error, success, and final. [#12]
|
||||||
|
### Changed
|
||||||
|
* GetKnownHosts is now a method of Host
|
||||||
|
### Fixed
|
||||||
|
* make command logger be used for errors, not just when running the command
|
||||||
|
|
||||||
|
## v0.4.0 - 2023-09-08
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
* Added `scriptEnvFile` to command object that allows one to specify an environment file (or any file really) when a `scriptFile` is run. Inspired by the practice of keeping environment variables and scripts or commands seperate.
|
||||||
|
* Basis for listing commands
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* BREAKING: Notifications object now takes the form of service.id, where service can be "mail" or "matrix" and id is a unique id for the service.
|
||||||
|
* BREAKING: Since the change to the notifications object, cmd-lists' inner map key 'notifications' must be of the form service.id. id must be defined for that service. See notifications docs for aviliable services.
|
||||||
|
* Config parser is now the simpler Koanf - Keys are now case-sensitive
|
||||||
|
* Log size limited to 50 Mb
|
||||||
|
|
||||||
## v0.3.1 - 2023-07-20
|
## v0.3.1 - 2023-07-20
|
||||||
### Changed
|
### Changed
|
||||||
* If an SSH session failed to be created, the command would fail. This would be caused when restarting the SSH host. The SSH connection is attempted to be created again. If successful, the command is executed normally.
|
* If an SSH session failed to be created, the command would fail. This would be caused when restarting the SSH host. The SSH connection is attempted to be created again. If successful, the command is executed normally.
|
||||||
|
2
docs/.gitignore
vendored
Normal file
2
docs/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
public/
|
||||||
|
resources/_gen
|
@ -7,6 +7,8 @@ Backy is a tool for automating data backup and remote command execution. It can
|
|||||||
|
|
||||||
Why the name Backy? Because I wanted an app for backups.
|
Why the name Backy? Because I wanted an app for backups.
|
||||||
|
|
||||||
|
View the [changelog here](https://git.andrewnw.xyz/CyberShell/backy/src/branch/master/CHANGELOG.md).
|
||||||
|
|
||||||
{{% notice tip %}}
|
{{% notice tip %}}
|
||||||
Feel free to open a [PR](https://git.andrewnw.xyz/CyberShell/backy/pulls), raise an [issue](https://git.andrewnw.xyz/CyberShell/backy/issues "Open a Gitea Issue")(s), or request new feature(s).
|
Feel free to open a [PR](https://git.andrewnw.xyz/CyberShell/backy/pulls), raise an [issue](https://git.andrewnw.xyz/CyberShell/backy/issues "Open a Gitea Issue")(s), or request new feature(s).
|
||||||
{{% /notice %}}
|
{{% /notice %}}
|
||||||
|
@ -110,6 +110,7 @@ Usage:
|
|||||||
backy list [--list=list1,list2,... | -l list1, list2,...] [ -cmd cmd1 cmd2 cmd3...] [flags]
|
backy list [--list=list1,list2,... | -l list1, list2,...] [ -cmd cmd1 cmd2 cmd3...] [flags]
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
|
-c, --cmds strings Accepts comma-separated names of commands to list.
|
||||||
-h, --help help for list
|
-h, --help help for list
|
||||||
-l, --lists strings Accepts comma-separated names of command lists to list.
|
-l, --lists strings Accepts comma-separated names of command lists to list.
|
||||||
|
|
||||||
|
@ -12,10 +12,10 @@ To use a specific file:
|
|||||||
|
|
||||||
If you leave the config path blank, the following paths will be searched in order:
|
If you leave the config path blank, the following paths will be searched in order:
|
||||||
|
|
||||||
- `./backy.yml`
|
1. `./backy.yml`
|
||||||
- `./backy.yaml`
|
2. `./backy.yaml`
|
||||||
- `~/.config/backy.yml`
|
3. `~/.config/backy.yml`
|
||||||
- `~/.config/backy.yaml`
|
4. `~/.config/backy.yaml`
|
||||||
|
|
||||||
Create a file at `~/.config/backy.yml`.
|
Create a file at `~/.config/backy.yml`.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user