fix(gitea): Archive overwrite

This commit is contained in:
Tibo De Peuter 2024-10-20 15:05:34 +02:00
parent 3bca11c043
commit 55bbc043b2
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -107,8 +107,8 @@ ssh "${remote}" "docker exec --env-file '${env_file}' '${database_container}' pg
# Copy everything over to local machine.
echo 'Info: Copying to local machine.'
ssh "${remote}" "tar -czf '${remote_destination}/${backupfile}' --exclude=${backupfile} ${remote_destination}"
scp "${remote}:${remote_destination}/${backupfile}" "${local_destination}"
ssh "${remote}" "tar -czf '/tmp/${backupfile}' ${remote_destination}"
scp "${remote}:/tmp/${backupfile}" "${local_destination}"
# Remove temporary destination on remote host.
printf "Debug: Cleaning up '%s' on %s.\n" "${remote_destination}" "${remote}"