Good Day
Im trying to get backuppc running on raspbian with a raid so i can backup a couple of laptops on the home network.
Unfortunately having made the install and from the browser interface when i run a backup it pings sucessfully however soon fails with "Got fatal error during xfer (Unable to read 4 bytes)"
Im thinking i have not understood something and have a configuration wrong.
here is the process i went through to install.
Get raspbian going
Write img to sdisk
touch ssh on boot
Create Raid
Code:
Sudo apt-get install mdadm
Sudo blkid
sudo mdadm --create --verbose /dev/md0 --level=mirror --raid-devices=2 /dev/sda /dev/sdb
cat /proc/mdstat
sudo -i
mdadm --detail --scan >> /etc/mdadm/mdadm.conf
exit
sudo mkfs.ext4 -v -m .1 -b 4096 -E stride=32,stripe-width=64 /dev/md0
sudo mount /dev/md0 /mnt
sudo blkid
copy the UUID
Code:
sudo cp /etc/fstab /etc/fstab.bak
sudo nano /etc/fstab
edit and add - UUID=[your_uuid] /mnt ext4 defaults 0 0
Install rsync-bpc
Code:
sudo apt-get install libacl1-dev
wget https://github.com/backuppc/rsync-bpc/releases/download/3.1.2.1/rsync-bpc-3.1.2.1.tar.gz
tar xvzf rsync-bpc-3.1.2.1.tar.gz
cd rsync-bpc-3.1.2.1
./configure
make
sudo make install
Install BackupPC-XS
Code:
wget https://github.com/backuppc/backuppc-xs/releases/download/0.59/BackupPC-XS-0.59.tar.gz
tar xvzf BackupPC-XS-0.59.tar.gz
cd BackupPC-XS-0.59/
perl Makefile.PL
make
make test
make install
Install backuppc
Code:
Sudo apt-get install backuppc
Set up SSH certs
Code:
sudo su - backuppc
ssh-keygen
ssh-copy-id julie@192.168.1.103
ssh julie@192.168.1.103
Wrangle Rsync on MAC book
Code:
/Library/LaunchDaemons/org.samba.rsync.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>Label</key>
<string>org.samba.rsync</string>
<key>Program</key>
<string>/usr/bin/rsync</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/rsync</string>
<string>--daemon</string>
<string>--config=/etc/rsync/rsyncd.conf</string>
</array>
<key>inetdCompatibility</key>
<dict>
<key>Wait</key>
<false/>
</dict>
<key>Sockets</key>
<dict>
<key>Listeners</key>
<dict>
<key>SockServiceName</key>
<string>rsync</string>
<key>SockType</key>
<string>stream</string>
</dict>
</dict>
</dict>
</plist>
Code:
/etc/rsync/rsyncd.conf as specified in the previous XML configuration file:
pid file = /var/run/rsyncd.pid
*
motd=/etc/rsync/rsyncd.motd
uid = nobody
gid = nobody
use chroot = yes
max connections = 5
syslog facility = local5
*
[julie]
path = /Users/julie
comment = julies's Home
uid = julie
gid = admin
list = yes
read only = yes
auth users = backuppc
secrets file = /etc/rsync/rsyncd.secrets
hosts allow = 192.168.1.0/24 1000:10:10::/64
Do you see a blinding error?
is it a permissions issue.
Thank in advance