Howto do SSH / rsync backup to a Maxtor OpenMSS
You have a Maxtor Maxtor Shared Storage and want to use it as an energy
efficient backup server. You do not want to use SAMBA. Rsync (or eg
faubackup is much better).
The problem
open MSS has SSH (dropbear) and rsync installed.
But you want to have automatically remote SSH login. And the rootfs is
readonly (cramfs), so where to put you keys?
The solution
- Of cource first install OpenMMS on
you Maxtor storage.
- Log on to your Maxtor as root
- create a new user, eg "bu"
adduser bu
- Edit
/etc/passwd
to change the userid for bu to 0
and the home director to something writable, like /opt/home/bu
- Create the home dir for bu:
mkdir -p /opt/home/bu
- Now log in to the server, you want to make the backup from, and copy
your key to the MSS:
ssh-copy-id -i .ssh/id_dsa.pub
bu@mssBackupServewr
- You are done and can now rsync:
rsync -av --rsh=ssh
--rsync-path=/opt/bin/rsync /home bu@mssBackupServer
This work is licensed under a Creative Commons License.
This
work is licensed under a Creative Commons
Attribution 2.5 License.
Back to Elgaard procjets