# Incremential Backup to S3 possible with XtraBackup?

**URL:** <https://forums.percona.com/t/incremential-backup-to-s3-possible-with-xtrabackup/8103>\
**Category:** Percona XtraBackup\
**Created:** [October 7, 2020, 6:53am UTC](https://forums.percona.com/t/incremential-backup-to-s3-possible-with-xtrabackup/8103 "2020-10-07T06:53:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrews2018](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@andrews2018](https://forums.percona.com/u/andrews2018)\
**Post date:** [October 7, 2020, 6:53am UTC](https://forums.percona.com/t/incremential-backup-to-s3-possible-with-xtrabackup/8103/1 "2020-10-07T06:53:05Z")

</div>

Hello,

we have been trying to get XtraBackup to Minio (S3) with incremential to run.

With xbcloud or --stream=xbstream we always get the same Error

error: backup named backupname already exists!

Is this possible with xtrabackup 2.4 or does it only work with Swift as

that is the example in the documentation?

Thanks for any help!

Andreas

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [October 12, 2020, 7:10pm UTC](https://forums.percona.com/t/incremential-backup-to-s3-possible-with-xtrabackup/8103/2 "2020-10-12T19:10:14Z")

</div>

@andrews2018 Make sure you are on at least xtrabackup 2.4.14. Also, the error seems very straightforward. Can you try picking a different name for the backup?

---

<div class="post-metadata">

**Author:** ![Marcelo\_Altmann](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/marcelo_altmann/32/11299_2.png) [@Marcelo\_Altmann](https://forums.percona.com/u/Marcelo_Altmann)\
**Post date:** [October 12, 2020, 7:17pm UTC](https://forums.percona.com/t/incremential-backup-to-s3-possible-with-xtrabackup/8103/3 "2020-10-12T19:17:04Z")

</div>

Hi,

At the documentation we show:

```auto
xtrabackup --backup --stream=xbstream --extra-lsndir=/tmp --target-dir=/tmp | \
xbcloud put --storage=s3 \
--s3-endpoint='s3.amazonaws.com' \
--s3-access-key='YOUR-ACCESSKEYID' \
--s3-secret-key='YOUR-SECRETACCESSKEY' \
--s3-bucket='mysql_backups'
--parallel=10 \
${date -I}-full_backup

```

here, ${date -I}-full\_backup is the backup name, which is treated as a PK for backups. Please choose a different name for each backup or append a timestamp to make it unique.
