Compare commits
3 Commits
bbd0983e63
...
0.0.4
| Author | SHA1 | Date | |
|---|---|---|---|
| a7c85ea3c6 | |||
| ea6948dbe2 | |||
| da2ad068b4 |
@@ -21,6 +21,8 @@ e.g.:
|
||||
test:$2y$10$uULsuyROe3LVdTzFoBH7HO0zhvyKp6CX2FDNl7quXMFYqzitU0kc.
|
||||
```
|
||||
|
||||
To generate bcrypt password, I recommand [hash_utils](https://git.thelilfrog.com/thelilfrog/hash_utils), which is offline and secure
|
||||
|
||||
The default path to this directory is `/var/lib/cloudsave`, this can be changed with the `-document-root` argument
|
||||
|
||||
### Client
|
||||
@@ -45,7 +47,7 @@ Run this command to start the scan, if needed, the tool will create a new archiv
|
||||
```bash
|
||||
cloudsave scan
|
||||
```
|
||||
#### Send everythings on the server
|
||||
#### Send everything on the server
|
||||
|
||||
This will pull and push data to the server.
|
||||
|
||||
|
||||
2
build.sh
2
build.sh
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
MAKE_PACKAGE=false
|
||||
VERSION=0.0.3
|
||||
VERSION=0.0.4
|
||||
|
||||
usage() {
|
||||
echo "Usage: $0 [OPTIONS]"
|
||||
|
||||
@@ -11,24 +11,24 @@ import (
|
||||
)
|
||||
|
||||
type (
|
||||
ListCmd struct {
|
||||
ApplyCmd struct {
|
||||
Service *data.Service
|
||||
}
|
||||
)
|
||||
|
||||
func (*ListCmd) Name() string { return "apply" }
|
||||
func (*ListCmd) Synopsis() string { return "apply a backup" }
|
||||
func (*ListCmd) Usage() string {
|
||||
func (*ApplyCmd) Name() string { return "apply" }
|
||||
func (*ApplyCmd) Synopsis() string { return "apply a backup" }
|
||||
func (*ApplyCmd) Usage() string {
|
||||
return `Usage: cloudsave apply <GAME_ID> [BACKUP_ID]
|
||||
|
||||
Apply a backup
|
||||
`
|
||||
}
|
||||
|
||||
func (p *ListCmd) SetFlags(f *flag.FlagSet) {
|
||||
func (p *ApplyCmd) SetFlags(f *flag.FlagSet) {
|
||||
}
|
||||
|
||||
func (p *ListCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus {
|
||||
func (p *ApplyCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus {
|
||||
if f.NArg() < 1 {
|
||||
fmt.Fprintln(os.Stderr, "error: missing game ID and/or backup uuid")
|
||||
return subcommands.ExitUsageError
|
||||
|
||||
@@ -51,7 +51,7 @@ func main() {
|
||||
subcommands.Register(&remove.RemoveCmd{Service: s}, "management")
|
||||
subcommands.Register(&show.ShowCmd{Service: s}, "management")
|
||||
|
||||
subcommands.Register(&apply.ListCmd{Service: s}, "restore")
|
||||
subcommands.Register(&apply.ApplyCmd{Service: s}, "restore")
|
||||
|
||||
subcommands.Register(&remote.RemoteCmd{Service: s}, "remote")
|
||||
subcommands.Register(&sync.SyncCmd{Service: s}, "remote")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package constants
|
||||
|
||||
const Version = "0.0.5"
|
||||
const Version = "0.0.4"
|
||||
|
||||
const ApiVersion = 1
|
||||
|
||||
Reference in New Issue
Block a user