diff --git a/templates/script/backupdb.erb.sh b/templates/script/backupdb.erb.sh index 48691cb..6f8c036 100644 --- a/templates/script/backupdb.erb.sh +++ b/templates/script/backupdb.erb.sh @@ -30,6 +30,6 @@ echo "Copying backups here" scp script@${backup}:/opt/mariadb_backup/backups/$(date +%Y/%m/%d)/*.gz ${backup_dir} echo "Copying backups to remote bucket" rclone mkdir ${mirror}:${bucket} -duplicity --full-if-older-than 1M --tempdir /mnt --archive-dir /mnt --no-encryption ${backup_dir} rclone://${mirror}:/${bucket} +duplicity --allow-source-mismatch --full-if-older-than 1M --tempdir /mnt --archive-dir /mnt --no-encryption ${backup_dir} rclone://${mirror}:/${bucket} duplicity remove-all-but-n-full ${number_of_full_to_keep} --tempdir /mnt --archive-dir /mnt --force rclone://${mirror}:/${bucket} rm -rf "${backup_dir}" diff --git a/templates/script/backupmultinodedb.erb.sh b/templates/script/backupmultinodedb.erb.sh index a53e753..65e60d9 100644 --- a/templates/script/backupmultinodedb.erb.sh +++ b/templates/script/backupmultinodedb.erb.sh @@ -16,7 +16,7 @@ mkdir -p ${backup_dir} scp "script@${backup}:${remote_backup_dir}/mariadb-dump*.sql.gz" "${backup_dir}" echo "Copying backups to remote bucket" rclone mkdir "${mirror}:${bucket}" -duplicity --full-if-older-than 1M --tempdir /mnt --archive-dir /mnt --no-encryption "${backup_dir}" "rclone://${mirror}:/${bucket}" +duplicity --allow-source-mismatch --full-if-older-than 1M --tempdir /mnt --archive-dir /mnt --no-encryption "${backup_dir}" "rclone://${mirror}:/${bucket}" duplicity remove-all-but-n-full "${number_of_full_to_keep}" --tempdir /mnt --archive-dir /mnt --force "rclone://${mirror}:/${bucket}" echo "cleaning up" rm -r "${backup_dir}"