diff --git a/templates/mariadb_backup/listusers.erb.sh b/templates/mariadb_backup/listusers.erb.sh index 6cd5993..5ed70df 100644 --- a/templates/mariadb_backup/listusers.erb.sh +++ b/templates/mariadb_backup/listusers.erb.sh @@ -34,7 +34,7 @@ if ! jq . "${customer_dir}/users.json" &>/dev/null; then fi if [[ ${status} -eq 0 ]]; then # something is wrong if we cant copy the file in 30 seconds, so we should note that - if ! timeout 30s rclone copy --use-cookies "${customer_dir}/users.json" "${base_dir}/${location}/"; then + if ! timeout 30s rclone copy --webdav-headers "Host=sunet.drive.sunet.se" --use-cookies "${customer_dir}/users.json" "${base_dir}/${location}/"; then status=1 fi fi diff --git a/templates/mariadb_backup/rclone.conf.erb b/templates/mariadb_backup/rclone.conf.erb index 97d75df..3f995c9 100644 --- a/templates/mariadb_backup/rclone.conf.erb +++ b/templates/mariadb_backup/rclone.conf.erb @@ -1,6 +1,6 @@ [statistics] type = webdav -url = https://sunet.drive.sunet.se/remote.php/dav/files/_script/ +url = https://37.156.196.13/remote.php/dav/files/_script/ vendor = nextcloud user = _script pass = <%= @statistics_secret %>