Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ikifar2012 committed Sep 3, 2022
1 parent b133058 commit 3eb51c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions remote-backup/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function rclone-backups {
fi
if bashio::config.true "rclone_sync"; then
bashio::log.info "Syncing backups using rclone"
if ! rclone sync . "${rclone_remote_host}:${remote_directory}"; then
if ! rclone sync "/backup" "${rclone_remote_host}:${remote_directory}"; then
bashio::log.error "Error syncing backups by rclone!"
return "${__BASHIO_EXIT_NOK}"
fi
Expand All @@ -233,7 +233,7 @@ function rclone-backups {
local restore_name="restore-$(date +%F)"
mkdir -p "${restore_name}"
bashio::log.info "Restoring backups to ${restore_name} using rclone"
if ! rclone copyto "${rclone_remote_host}:${remote_directory} ${restore_name}/"; then
if ! rclone copyto "${rclone_remote_host}:${remote_directory} /backup/${restore_name}/"; then
bashio::log.error "Error restoring backups from ${rclone_remote_host}:${remote_directory}!"
return "${__BASHIO_EXIT_NOK}"
fi
Expand Down

0 comments on commit 3eb51c2

Please sign in to comment.