# Xtrabackup: File '/var/log/mysql/bin.00001' not found (OS errno 2 - No such file or directory) with remote xtrabackup

**URL:** <https://forums.percona.com/t/xtrabackup-file-var-log-mysql-bin-00001-not-found-os-errno-2-no-such-file-or-directory-with-remote-xtrabackup/32644>\
**Category:** Percona XtraBackup\
**Tags:** percona\
**Created:** [August 28, 2024, 7:27am UTC](https://forums.percona.com/t/xtrabackup-file-var-log-mysql-bin-00001-not-found-os-errno-2-no-such-file-or-directory-with-remote-xtrabackup/32644 "2024-08-28T07:27:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjaneyarajus](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/anjaneyarajus/32/15125_2.png) [@anjaneyarajus](https://forums.percona.com/u/anjaneyarajus)\
**Post date:** [August 28, 2024, 7:27am UTC](https://forums.percona.com/t/xtrabackup-file-var-log-mysql-bin-00001-not-found-os-errno-2-no-such-file-or-directory-with-remote-xtrabackup/32644/1 "2024-08-28T07:27:22Z")

</div>

we are facing below error while performing xtrabackup remotely

2024-08-26T13:15:58.844738+05:30 0 [Note] [MY-011825] [Xtrabackup] Executing FLUSH NO\_WRITE\_TO\_BINLOG BINARY LOGS  
2024-08-26T13:15:58.846857+05:30 0 [Note] [MY-011825] [Xtrabackup] Selecting LSN and binary log position from p\_s.log\_status  
xtrabackup: File ‘/var/log/mysql/bin.00001’ not found (OS errno 2 - No such file or directory)  
2024-08-26T13:15:58.853544+05:30 0 [ERROR] [MY-011825] [Xtrabackup] copy\_file() failed.

The file was existed on the prd-perconatest011.pp.pp1, still facing same error  
command executed, it was executed from a remote backup server  
xtrabackup --backup --datadir=/var/lib/mysql/ --target-dir=/percona\_backup --host prd-perconatest011.pp.pp1 -u -p

Please let us know if you have to pass another options

---

<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:** [August 28, 2024, 6:58pm UTC](https://forums.percona.com/t/xtrabackup-file-var-log-mysql-bin-00001-not-found-os-errno-2-no-such-file-or-directory-with-remote-xtrabackup/32644/2 "2024-08-28T18:58:41Z")

</div>

You cannot use PXB remotely. PXB requires local disk access.
