borg icon indicating copy to clipboard operation
borg copied to clipboard

Cannot pull backup to server with different architecture

Open jbrepogmailcom opened this issue 3 years ago • 1 comments

Have you checked borgbackup docs, FAQ, and open Github issues?

Yes

Is this a BUG / ISSUE report or a QUESTION?

Question

System information. For client/server mode post info for both machines.

Your borg version (borg -V).

any

Operating system (distribution) and version.

Raspbian / Ubuntu

Hardware / network configuration, and filesystems used.

How much data is handled by borg?

Full borg commandline that lead to the problem (leave away excludes and passwords)

Describe the problem you're observing.

Hello. I tried to configure pulling the backup from remote client to local backup server. The problem is that local backup server have ARM architecture, while remote client is AMD64. When I follow the documentation I get in troubles when I map remote folders dev proc sys to local and try chroot, I get ‘/bin/bash’: Exec format error, most likely because remapped folders are for different architecture.

This part of documentation won't work. Is there any workaround for pulling backup from different architecture? I can create ssh tunnel from local to remote, but not vice versa.

# Mount important system directories and enter chroot.
cd /tmp/sshfs
for i in dev proc sys; do mount --bind /$i $i; done
chroot /tmp/sshfs

Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.

Include any warning/errors/backtraces from the system logs

jbrepogmailcom avatar Jul 18 '22 19:07 jbrepogmailcom

IIRC there was a different approach with socat/netcat or so, check docs / issue tracker.

ThomasWaldmann avatar Jul 18 '22 21:07 ThomasWaldmann

@jbrepogmailcom would #7488 solve this?

ThomasWaldmann avatar Apr 08 '23 15:04 ThomasWaldmann