# Xtrabackup rsync question

**URL:** <https://forums.percona.com/t/xtrabackup-rsync-question/21715>\
**Category:** Percona XtraBackup\
**Created:** [April 27, 2023, 7:00pm UTC](https://forums.percona.com/t/xtrabackup-rsync-question/21715 "2023-04-27T19:00:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![themactech](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@themactech](https://forums.percona.com/u/themactech)\
**Post date:** [April 27, 2023, 7:00pm UTC](https://forums.percona.com/t/xtrabackup-rsync-question/21715/1 "2023-04-27T19:00:36Z")

</div>

Quick question:

The XtraBackup documentation warns to mount NFS mount points in SYNC mode.

Just want to make sure that if I backup to local storage and THEN rsync to a remote NFS storage solution, that requirement is no longer an issue.

---

<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:** [April 27, 2023, 7:12pm UTC](https://forums.percona.com/t/xtrabackup-rsync-question/21715/2 "2023-04-27T19:12:05Z")

</div>

The problem still persists in case you run --prepare on a different machine, some data might still remain on the source server OS file cache.

---

<div class="post-metadata">

**Author:** ![themactech](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@themactech](https://forums.percona.com/u/themactech)\
**Post date:** [April 27, 2023, 7:16pm UTC](https://forums.percona.com/t/xtrabackup-rsync-question/21715/3 "2023-04-27T19:16:26Z")

</div>

The remote NFS share would only copy the completed backups via rsync. Any --prepare would be done on a Recovery VM after the backups would have been copied back over from the NFS share (probably with rsync again).

In that scenario, would I be ok with NOT mounting the NFS shares in SYNC mode?

---

<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:** [April 27, 2023, 7:19pm UTC](https://forums.percona.com/t/xtrabackup-rsync-question/21715/4 "2023-04-27T19:19:37Z")

</div>

The issue is with --backup and --prepare being done in different machines, which seems to be the case here.

---

<div class="post-metadata">

**Author:** ![themactech](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@themactech](https://forums.percona.com/u/themactech)\
**Post date:** [April 27, 2023, 8:50pm UTC](https://forums.percona.com/t/xtrabackup-rsync-question/21715/5 "2023-04-27T20:50:44Z")

</div>

But I tested that successfully… I have a cron job on my Backup server that fires off a script, and that script launches remotely (via ssh) the xtrabackup job on the MySQL server, streaming the backup to the Backup server.

The Backup server also have a MySQL server, and I did the --prepare and --move-back on it and was successful at starting/accessing my database.

I was under the impression that you did NOT have to do the --prepare on the same machine as the --backup, and my testing seemed to indicate that it was indeed the case.

Also, can XtraBackup 8 do --prepare on backups streamed from a XtraBackup 2.4?

If I have a mix of XtraBackup 8 and XtraBackup, can they all stream to the same Backup server? Can a single machine be used to --prepare both, or do I need two different recovery VMs (one in 2.4 and one in 8)?
