3 Commits

Author SHA1 Message Date
a7c85ea3c6 fix name 2025-08-17 01:12:31 +02:00
ea6948dbe2 Actualiser README.md 2025-08-17 00:50:56 +02:00
da2ad068b4 update version number 2025-08-17 00:43:58 +02:00
5 changed files with 12 additions and 10 deletions

View File

@@ -21,6 +21,8 @@ e.g.:
test:$2y$10$uULsuyROe3LVdTzFoBH7HO0zhvyKp6CX2FDNl7quXMFYqzitU0kc. 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 The default path to this directory is `/var/lib/cloudsave`, this can be changed with the `-document-root` argument
### Client ### Client
@@ -45,7 +47,7 @@ Run this command to start the scan, if needed, the tool will create a new archiv
```bash ```bash
cloudsave scan cloudsave scan
``` ```
#### Send everythings on the server #### Send everything on the server
This will pull and push data to the server. This will pull and push data to the server.

View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
MAKE_PACKAGE=false MAKE_PACKAGE=false
VERSION=0.0.3 VERSION=0.0.4
usage() { usage() {
echo "Usage: $0 [OPTIONS]" echo "Usage: $0 [OPTIONS]"

View File

@@ -11,24 +11,24 @@ import (
) )
type ( type (
ListCmd struct { ApplyCmd struct {
Service *data.Service Service *data.Service
} }
) )
func (*ListCmd) Name() string { return "apply" } func (*ApplyCmd) Name() string { return "apply" }
func (*ListCmd) Synopsis() string { return "apply a backup" } func (*ApplyCmd) Synopsis() string { return "apply a backup" }
func (*ListCmd) Usage() string { func (*ApplyCmd) Usage() string {
return `Usage: cloudsave apply <GAME_ID> [BACKUP_ID] return `Usage: cloudsave apply <GAME_ID> [BACKUP_ID]
Apply a backup 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 { if f.NArg() < 1 {
fmt.Fprintln(os.Stderr, "error: missing game ID and/or backup uuid") fmt.Fprintln(os.Stderr, "error: missing game ID and/or backup uuid")
return subcommands.ExitUsageError return subcommands.ExitUsageError

View File

@@ -51,7 +51,7 @@ func main() {
subcommands.Register(&remove.RemoveCmd{Service: s}, "management") subcommands.Register(&remove.RemoveCmd{Service: s}, "management")
subcommands.Register(&show.ShowCmd{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(&remote.RemoteCmd{Service: s}, "remote")
subcommands.Register(&sync.SyncCmd{Service: s}, "remote") subcommands.Register(&sync.SyncCmd{Service: s}, "remote")

View File

@@ -1,5 +1,5 @@
package constants package constants
const Version = "0.0.5" const Version = "0.0.4"
const ApiVersion = 1 const ApiVersion = 1