# Bugfix for innobackupex Perl utility for remote backups

**URL:** <https://forums.percona.com/t/bugfix-for-innobackupex-perl-utility-for-remote-backups/2126>\
**Category:** Percona XtraBackup\
**Created:** [March 3, 2011, 11:01am UTC](https://forums.percona.com/t/bugfix-for-innobackupex-perl-utility-for-remote-backups/2126 "2011-03-03T11:01:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaptTofu](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/capttofu/32/9842_2.png) [@CaptTofu](https://forums.percona.com/u/CaptTofu)\
**Post date:** [March 3, 2011, 11:01am UTC](https://forums.percona.com/t/bugfix-for-innobackupex-perl-utility-for-remote-backups/2126/1 "2011-03-03T11:01:22Z")

</div>

Hi there, I will attach a modified innobackupex script that includes a fix that I made when having an error backing up to a server on a non-standard ssh port.

The crux of the problem is that this script uses both ssh and scp for remote backups, however, one annoyance about scp and ssh is that the flag for port (-p for ssh, -P for scp) are different. So, when I would attempt to back up to a server on a port running on 2022, it would fail because the ssh command will not specify the port.

Please feel free to use this. I already once added the --slave-info feature to this script once upon a time for InnoBase, now I add this for you 🙂

---

<div class="post-metadata">

**Author:** ![xaprb](https://avatars.discourse-cdn.com/v4/letter/x/49beb7/32.png) [@xaprb](https://forums.percona.com/u/xaprb)\
**Post date:** [March 11, 2011, 9:36pm UTC](https://forums.percona.com/t/bugfix-for-innobackupex-perl-utility-for-remote-backups/2126/2 "2011-03-11T21:36:57Z")

</div>

Thanks, I will file a bug against xtrabackup and link to this.

---

<div class="post-metadata">

**Author:** ![xaprb](https://avatars.discourse-cdn.com/v4/letter/x/49beb7/32.png) [@xaprb](https://forums.percona.com/u/xaprb)\
**Post date:** [March 11, 2011, 9:39pm UTC](https://forums.percona.com/t/bugfix-for-innobackupex-perl-utility-for-remote-backups/2126/3 "2011-03-11T21:39:25Z")

</div>

The bug report is [URL][https://bugs.launchpad.net/percona-xtrabackup/+bug/733658[/URL]](https://bugs.launchpad.net/percona-xtrabackup/+bug/733658%5B/URL%5D)
