DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-07-19 23:15:38

dll2002dll
Member
Registered: 2009-07-10
Posts: 10

Rsync backup of DNS-323 to NSLU2 Unslung

Hey Guys,

I am using DNS-323 as my network share for my couple of home windows xp machines, it store my documents and other data that changes everyday. DNS 323 is running RAID-1. I want backup certain folders on my DNS-323 to my NSLU2 Unslung. I have followed the instructions to configure NSLU2 here:

hxxp://www.nslu2-linux.org/wiki/HowTo/BackupYourLinuxBox

Code:

Set up rsync in daemon mode (on the slug)

I set rsync running in daemon mode on the slug. My configuration file, /opt/etc/rsyncd.conf is given here:

 # rsyncd.conf
 #
 # configure according to your needs

 #uid = nobody
 uid = root
 #gid = everyone
 gid = root
 use chroot = yes
 max connections = 5
 syslog facility = local3
 pid file = /var/run/rsyncd.pid
 secrets file = /opt/etc/rsyncd.secrets

 [backup-phoenix]
 path = /share/hdd/data/backup/phoenix
 comment = nslu2 rsync backup
 read only = no
 hosts allow = 192.168.1.1
 hosts deny = *
 dont compress = *.tgz *.gz *.bz2 *.iso *.jpg *.jpeg *.tif *.tiff *.

Note that the user and group are set to root, though I have used chroot. I found this was necessary to maintain user and group id's when backing up. Don't compress files that do not compress well.
Set rsyncd to run at startup

Enable the Rsync daemon

vi opt/etc/default/rsync

Change RSYNC_ENABLE=false to RSYNC_ENABLE=true

now I want to configure DNS-323 to backup following folders:

/mnt/HD_a2/My Documents/
/mnt/HD_a2/MP3/
/mnt/HD_a2/Movies/   

To NSLU2, I am following script located here:

hxxp://www.horto.ca/?p=20

I have couple of questions:

1. How can I specify NSLU2 IP address in the destination:

DESTINATION=/mnt/HD_b2/backups/HD_a2

2. Can some one gives me an example of how the rest of the editcront looks like, the webpage only states one line, is this enough?

Code:

 /bin/echo "0 1 * * * /ffp/var/scripts/rbackup.sh >> /mnt/HD_a2/logs/rbackup.log 2>&1" >> $CRONTXT

3. Any other suggestions or comments?

Thanks.

Offline

 

#2 2009-07-21 03:57:12

dll2002dll
Member
Registered: 2009-07-10
Posts: 10

Re: Rsync backup of DNS-323 to NSLU2 Unslung

Hey guys,

Any help? I know it might be a very basic question, but hey we all are here to learn and share smile

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB