ikifar2012 / remote-backup-addon

Automatically create and backup HA snapshots using SCP
30 stars 4 forks source link

rclone restore not working #89

Closed fdb-git closed 1 year ago

fdb-git commented 1 year ago

I got this error restoring files from rclone:

[19:48:03] INFO: Restoring backups to restore-2023-02-05 using rclone
Usage:
  rclone copyto source:path dest:path [flags]
Flags:
  -h, --help   help for copyto
Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command copyto needs 2 arguments minimum: you provided 1 non flag arguments: ["remote:dir /backup/restore-2023-02-05/"]
[19:48:03] ERROR: Error restoring backups from remote:dir!

To solve, in file remote-backup-addon/remote-backup/run.sh, the row 269 should be:

rclone ${DEBUG_FLAG:-} copyto "${rclone_remote_host}:${remote_directory}" "/backup/${restore_name}/"

ikifar2012 commented 1 year ago

Should be addressed in 2023.3.0, thanks for letting me know!!!