mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2025-09-10 12:30:39 +00:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
a4b54f9f64 | |||
c2e88193cd | |||
a2ef69d96d | |||
|
d45949b028 | ||
77d47cc697 |
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.1.2] - 2021-07-11
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
Don't check all backend when running `forget` or `exec` commands.
|
||||||
|
|
||||||
## [1.1.1] - 2021-05-17
|
## [1.1.1] - 2021-05-17
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@@ -15,7 +15,7 @@ var execCmd = &cobra.Command{
|
|||||||
CheckErr(err)
|
CheckErr(err)
|
||||||
defer lock.Unlock()
|
defer lock.Unlock()
|
||||||
|
|
||||||
CheckErr(internal.CheckConfig())
|
internal.GetConfig()
|
||||||
|
|
||||||
selected, err := internal.GetAllOrSelected(cmd, true)
|
selected, err := internal.GetAllOrSelected(cmd, true)
|
||||||
CheckErr(err)
|
CheckErr(err)
|
||||||
|
@@ -14,7 +14,7 @@ var forgetCmd = &cobra.Command{
|
|||||||
CheckErr(err)
|
CheckErr(err)
|
||||||
defer lock.Unlock()
|
defer lock.Unlock()
|
||||||
|
|
||||||
CheckErr(internal.CheckConfig())
|
internal.GetConfig()
|
||||||
|
|
||||||
selected, err := internal.GetAllOrSelected(cmd, false)
|
selected, err := internal.GetAllOrSelected(cmd, false)
|
||||||
CheckErr(err)
|
CheckErr(err)
|
||||||
|
@@ -31,8 +31,9 @@ backends:
|
|||||||
remote:
|
remote:
|
||||||
type: b2
|
type: b2
|
||||||
path: 'myBucket:backup/home'
|
path: 'myBucket:backup/home'
|
||||||
B2_ACCOUNT_ID: account_id
|
env:
|
||||||
B2_ACCOUNT_KEY: account_key
|
B2_ACCOUNT_ID: account_id
|
||||||
|
B2_ACCOUNT_KEY: account_key
|
||||||
|
|
||||||
hdd:
|
hdd:
|
||||||
type: local
|
type: local
|
||||||
|
@@ -12,5 +12,6 @@ This amazing people helped the project!
|
|||||||
- @ChanceM - Typos
|
- @ChanceM - Typos
|
||||||
- @TheForcer - Typos
|
- @TheForcer - Typos
|
||||||
- @themorlan - Typos
|
- @themorlan - Typos
|
||||||
|
- @somebox - Typos
|
||||||
|
|
||||||
> :ToCPrevNext
|
> :ToCPrevNext
|
||||||
|
@@ -23,6 +23,8 @@ elif [[ $NATIVE_ARCH == *"arm64"* || $NATIVE_ARCH == *"aarch64"* ]]; then
|
|||||||
ARCH=arm64
|
ARCH=arm64
|
||||||
elif [[ $NATIVE_ARCH == *"x86"* ]]; then
|
elif [[ $NATIVE_ARCH == *"x86"* ]]; then
|
||||||
ARCH=386
|
ARCH=386
|
||||||
|
elif [[ $NATIVE_ARCH == *"armv7"* ]]; then
|
||||||
|
ARCH=arm
|
||||||
else
|
else
|
||||||
echo "Could not determine Architecure automatically, please check the release page manually: https://github.com/cupcakearmy/autorestic/releases"
|
echo "Could not determine Architecure automatically, please check the release page manually: https://github.com/cupcakearmy/autorestic/releases"
|
||||||
exit 1
|
exit 1
|
||||||
|
@@ -12,7 +12,7 @@ import (
|
|||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
||||||
const VERSION = "1.1.1"
|
const VERSION = "1.1.2"
|
||||||
|
|
||||||
var CI bool = false
|
var CI bool = false
|
||||||
var VERBOSE bool = false
|
var VERBOSE bool = false
|
||||||
@@ -140,7 +140,7 @@ func CheckConfig() error {
|
|||||||
}
|
}
|
||||||
for name, location := range c.Locations {
|
for name, location := range c.Locations {
|
||||||
location.name = name
|
location.name = name
|
||||||
if err := location.validate(c); err != nil {
|
if err := location.validate(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -47,7 +47,7 @@ func GetLocation(name string) (Location, bool) {
|
|||||||
return l, ok
|
return l, ok
|
||||||
}
|
}
|
||||||
|
|
||||||
func (l Location) validate(c *Config) error {
|
func (l Location) validate() error {
|
||||||
if l.From == "" {
|
if l.From == "" {
|
||||||
return fmt.Errorf(`Location "%s" is missing "from" key`, l.name)
|
return fmt.Errorf(`Location "%s" is missing "from" key`, l.name)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user