Automatic rsync backup with zNetBackup
From OESF
Automatic rsync backup with zNetBackup
On the Zaurus: Download the rsync ipk from http://www.killefiz.de/zaurus/ Download http://www.dgdna.de/zaurus/znetbackup_0.2_arm.ipk and install it.
Edit the config file /root/Applications/zNetBackup/options . The file is pretty selfexplaining. %%% Finally tell the software what you want to backup. Just add your directories to the dirs.data file.
The software has support for an additional "full" backup. You may want to adjust the dirctories backed up via %%% full backup via dirs.full file. To start a full backup execute
/root/Applications/!zNetBackup/znetbackup -full
Two logfiles keep you informed whats happening when backing up: backups.log tells you when backups have occured. %%% last.log tells you in detail what has happend on the last backup.
On the Desktop...
...Windows: The is a port of rsync to win32 systems at http://winrsync.sunsite.dk/. It is nicely ported with the help of cygwin. http://www.cygwin.com %%% It comes with a nice installer so every Windows-Fan is almost happy ;-) %%% Follow these steps to total hapiness:
1. Install WINrsync to whereever you like, just remeber the path as it is now referred to as the "rsync-path".
2. Create C:\!ZaurusBackup as an empty directory. (If you choose another directory just remember you did %%%
when this path lurks up again)
3. Create two empty directories full and data in C:\!ZaurusBackup
4. In the rsync-path change to the support directory.
5. Create the following two files there:
rsyncd.conf (this is an example!):
gid = users
read only = false
use chroot = false
transfer logging = true
log format = %h %o %f %l %b
log file = rsyncd.log
hosts allow = 192.168.3.17 # your zaurus home ip here
hosts deny = 0.0.0.0/0
strict modes = false
[[zaurus]
path = /cygdrive/c/!ZaurusBackup/data
comment = Zaurus Data Backup Directory
auth users = zaurus
secrets file = rsyncd.secrets
[[zaurusfull]
path = /cygdrive/c/!ZaurusBackup/full
comment = Zaurus FULL Backup Directory
auth users = zaurus
secrets file = rsyncd.secrets
rsyncd.secrets (this is an example too!):
# user:passwd
zaurus:zaurus
6. Be sure to fill the example values with real values or leave it totally unchanged if you want to rebuilt my configuration. %%%
I have marked the differences of the windows rsyncd.conf file to the linux version. Those are mainly because of path names %%%
that are different and nonexisting file modes. Your milage may vary as on my system there is a fully %%%
installed cygwin environment. I heard the path names could also have the form of //c/!ZaurusBackup/data but that %%%
does not work for me. If the upper one doesn't work for you , try this one instead.
7. Your rsync server is now fully configured, start it from a command line where you changed to the %%%
support directory in your WINrsync directory with this command line:
# rsyncd --daemon --config=rsyncd.conf
8. Be happy ;-)
Additional info: you might want to have your rsync server startet every time your system boots up. %%% There's two ways: First one is to make a batch file that starts the rsync-server and put a link to that %%% batch file in the autostart folder. The other way is making rsync a service on your machine. There is %%% already enough information out there (http://rsync.samba.org/nt.html) how to do that. Just ignore their config-file-changes on rsyncd.conf - follow the rest.%%%
...Linux:
There is too much information I don't like to repeat. Go to the rsync http://rsync.samba.org/index.html website. There is a whole lot to read... Just in short:
1. Go and find a rsync-package for your distribution.
2. Install it! (what else? ;-)
3. Use these config files as a base:
rsyncd.conf (this is an example!):
gid = users
read only = false
use chroot = false
transfer logging = true
log format = %h %o %f %l %b
log file = rsyncd.log
hosts allow = 192.168.3.17 # your zaurus home ip here
hosts deny = 0.0.0.0/0
[[zaurus]
path = /home/lars/!ZaurusBackup/data>
comment = Zaurus Data Backup Directory
auth users = zaurus
secrets file = /etc/rsyncd.secrets
[[zaurusfull]
path = /home/lars/!ZaurusBackup/full
comment = Zaurus FULL Backup Directory
auth users = zaurus
secrets file = /etc/rsyncd.secrets
rsyncd.secrets (this is an example too!):
# user:passwd
zaurus:zaurus
4. Start your rsync server using whatever way your package uses to do so.
5. Enjoy your new life without remebering backups of your beloved Z.

