# Xtrabackup stream to remote server

**URL:** <https://forums.percona.com/t/xtrabackup-stream-to-remote-server/16168>\
**Category:** Percona XtraBackup\
**Tags:** mysql, percona\
**Created:** [June 16, 2022, 9:42am UTC](https://forums.percona.com/t/xtrabackup-stream-to-remote-server/16168 "2022-06-16T09:42:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravi\_Teja\_RVN](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ravi_teja_rvn/32/6099_2.png) [@Ravi\_Teja\_RVN](https://forums.percona.com/u/Ravi_Teja_RVN)\
**Post date:** [June 16, 2022, 9:42am UTC](https://forums.percona.com/t/xtrabackup-stream-to-remote-server/16168/1 "2022-06-16T09:42:16Z")

</div>

HI Team,

I have a server running with mysql with huge db of 1 TB.

Now, I want to take full backup and incremental backup through the xtrabackup.

But I follow the direct approach of full backup, server storage is getting consumed at huge.

So,I am using below commands to perform full backup compressed.

xtrabackup --backup --stream=xbstream --compress --target-dir=./ \> backup.xbstream

Now, xbstream file contains all the backup file and I can transfer this to different server and can take backup. This is fine.

Now, I need to take incremental backups after a full backup which needs to have access to base dir and the need to be reading data from main server where sql is running. How can I achieve this ?

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [June 16, 2022, 11:23am UTC](https://forums.percona.com/t/xtrabackup-stream-to-remote-server/16168/2 "2022-06-16T11:23:51Z")

</div>

Hello, have you considered mounting the remote volume via NFS?

---

<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:** [June 16, 2022, 11:55am UTC](https://forums.percona.com/t/xtrabackup-stream-to-remote-server/16168/3 "2022-06-16T11:55:44Z")

</div>

Hi @Ravi_Teja_RVN ,

You can either take a note of the LSN exported in the logs at the end of the backup:

```auto
2022-06-16T08:51:43.093458-03:00 0 [Note] [MY-011825] [Xtrabackup] The latest check point (for incremental): '2824937416'

```

And use that LSN on incremental at `--incremental-lsn=2824937416`

OR

Take your backup with `--extra-lsndir=/backup/lsn` this will create the two necessary files needed to take an incremental and use that dir as `--incremental-basedir=/backup/lsn`
