Article 59S5H BackupPC Backing Up FreeNAS (BSD)

BackupPC Backing Up FreeNAS (BSD)

by
nooobeee
from LinuxQuestions.org on (#59S5H)
I am having a tough time setting up BackupPC to backup FreeNAS to a debian box hosting BackupPC. I've been picking away at individual challenges for a couple days now and am just hoping someone here can help expedite some of this.

I have backuppc setup on a debian vm. I have setup a BSD user and enabled key login so rsync can be remotely invoked (unsure why BackupPC remotely invokes rsync rather than just running rsync itself but that seems to be how it is by default). I can successfully perform the following commands from debian without issues:

Code:rsync -v username@FreeNASIP:/mnt/zfs01/foldername/ /mnt/backupsI suspect the problem is with backuppc's syntax differing from what BSD expects. Does anyone have something like this setup and working that I could script kiddy off of as a framework?

More info:
Default config:
Code:$sshPath -q -x -l root $host $rsyncPath $argList+Resulting command:
Code:/usr/bin/ssh -q -x -l root 10.10.10.10 /usr/bin/rsync --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --ignore-times . /mnt/zfs01/foldername/Resulting error:
Code:Xfer PIDs are now 16643
Read EOF: Connection reset by peer
Tried again: got 0 bytes
Done: 0 files, 0 bytes
Got fatal error during xfer (Unable to read 4 bytes)
Backup aborted (Unable to read 4 bytes)Modified config:
Code:$sshPath -q -x -l username@$host /usr/local/bin/rsync $argList+Resulting command:
Code:/usr/bin/ssh -q -x -l username@172.23.1.12 /usr/local/bin/rsync --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --ignore-times . /mnt/zfs01/foldername/Resulting error
Code:Xfer PIDs are now 16596
Got remote protocol 1852534389
Fatal error (bad version): unknown option -- -
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
[-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
[-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
[-i identity_file] [-J [user@]host[:port]] [-L address]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-Q query_option] [-R address] [-S ctl_path] [-W host:port]
[-w local_tun[:remote_tun]] destination [command]

Can't write 4 bytes to socket
fileListReceive() failed
Done: 0 files, 0 bytesI've replaced several variables with explicit syntax to work my way through issues. The problem may be just my inability to wrap my head around what's going on here. I think it's something to the effect of:

1. Debian initiates ssh
2. Debian connects to FreeNAS
3. rsync is invoked on FreeNAS

It seems to me this is an issue with the $argList+ option. Obviously these are modified and can be overridden in the machine config using the Arguements override. But I don't know what the + is at the end and I also don't know how or why there is a
Code: .in there.

Any tips, suggestions, or clarifications would be appreciated.latest?d=yIl2AUoC8zA latest?i=Y0KtP1pDztA:wpoecetUcPU:F7zBnMy latest?i=Y0KtP1pDztA:wpoecetUcPU:V_sGLiP latest?d=qj6IDK7rITs latest?i=Y0KtP1pDztA:wpoecetUcPU:gIN9vFwY0KtP1pDztA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments