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 2011-01-27 16:18:26

vschlenk
Member
Registered: 2011-01-27
Posts: 25

rsnapshot on dns 323 [newbee to ffp]

Hi,

thanks to wolf-u.li I got the fun_plug installed on USB on my DNS-323. Login works fine, telnet is disabled. I understood that the main directories are only in RAM and that any changes have to made elsewhere. How and where?

What I installed the ffp 0.5 for was to use this DNS-323 as Backupserver for a second DNS-323 and possibily additional clients and make use of rsnapshot for this task which seems an adequate tool to me.

Does anyone know how to go forward? [As of today I only know how to do apt-get on my Ubuntu/Linux Server and how to configure some base conf.files :-)].

1] install rsnapshot on the usb-stick [how?]

2] configure rsnapshot.conf
    - preexec-script: do a mount of the share of the second dns-323 [how?]
      or do a login via script and ssh
    - postexec-script: do a umount of share of second dns-323 [answer should be obvious after last step]
      or logoff ssh

question: same user ["backup"] on both DNS-323 required?
question: how to do a single-file restore? [access rights settings?] 

3] configure cron [do not see no cron.d in /etc ]

Thanks a lot for your help.

Volker

Last edited by vschlenk (2011-01-27 17:35:33)

Offline

 

#2 2011-01-27 17:36:19

bound4h
Member
Registered: 2010-04-12
Posts: 209

Re: rsnapshot on dns 323 [newbee to ffp]

Have you thought about using rsync?  Much easier and much quiker, IMO.  Check the wiki for a how-to called "backup"

Offline

 

#3 2011-01-27 17:39:51

vschlenk
Member
Registered: 2011-01-27
Posts: 25

Re: rsnapshot on dns 323 [newbee to ffp]

well ... the advantage of rsnapshot is ... that out-of-the box you get rotating backup, deletion of old backups and these things.

nevertheless thx for your answer,
Volker

Offline

 

#4 2011-01-27 19:06:11

karlrado
Member
Registered: 2009-12-07
Posts: 229

Re: rsnapshot on dns 323 [newbee to ffp]

bound4h: rsnapshot is really a wrapper around rsync that implements a semi-"time machine" backup procedure.  I use it on my DNS-323 to make snapshots of my A disk onto the B disk.  It is somewhat similar to the snapshot scripts that people are writing here in this forum that do the same sort of thing.

vschlenk: lots of questions.

rsnapshot is not a ffp package, last time I looked.  I ended up going with optware-based add-ons partly since rsnapshot is an optware package.  So, you could consider installing optware just to get rsnapshot.  Or try to port/install rsnapshot onto your ffp install.  It is just perl scripts, so should not be too hard.

You can config rsnapshot to use ssh for the transport to another machine, so there is no need to do a pre-exec or post-exec.  For example, I use rsnapshot to backup a remote machine to my DNS as *part* of what rsnapshot is doing.  In the conf file, I have:

backup kws@remotemachine.com:/u/kws    remotemachineBackup/

Assuming that I have the ssh keys in place that would let me ssh-login to remotemachine.com as user kws, it just works.

I think you could then do something like:

backup me@theOtherDNS323/mnt/HD_a2/ theBackup/

in the same sort of manner, if you wanted to "pull" the data from theOtherDNS323 to the machine running rsnapshot.  I think that this makes the most sense.

So, for your questions:

1) Not sure how to install rsnapshot on an ffp install (USB or not).  I would start by getting perl and then getting the sources for rsnapshot off the internet and just seeing if it works.  The version of perl may be a problem.

2) Not needed if ssh is set up with keys.

3) See other threads in this forum about modifying the crontab so that the changes "stick".  It is easy and encouraged to run rsnapshot from cron.

Last edited by karlrado (2011-01-27 19:39:26)


DNS-323 FW 1.07 : 2 1TB WD Caviar Green SATA : fun_plug: utelnet + optware (no ffp)

Offline

 

#5 2011-01-27 19:39:20

vschlenk
Member
Registered: 2011-01-27
Posts: 25

Re: rsnapshot on dns 323 [newbee to ffp]

Karlrado,

thanks a lot for your answers. They are straight to the point and very helpful [especially with setting up the keys for ssh].

As I only did go to ffp to have access to rsnapshot ....

questions concerning optware ...

can I easily use and install optware  on the USB-key [to be able to do defrag and fschk on the dns-HD'S]?

Is the community as good as for ffp? [meaning at least the initial install description from uli wolf was really good] 

I only need SSH, FTP-Server or SSH [SFTP behind Firewall is quite tricky] and rsync/rsnapshot - thus my needs shouldn't be exagerated. Perhaps I'll upgrade my samba server later and try to get Open LDAP-access, but that's for a much later state.

cheers,
Volker

Offline

 

#6 2011-01-27 20:12:44

karlrado
Member
Registered: 2009-12-07
Posts: 229

Re: rsnapshot on dns 323 [newbee to ffp]

I don't have a USB key on my DNS-323.  But my fun_plug sets up optware with:

mkdir -p /opt
mount --bind /mnt/HD_a2/ipkg/opt /opt

so I don't see any reason why ipkg/opt cannot be on the USB key and then change the above mount command to mount it from there.

As far as support goes, you'd have to compare and make your own decision.  FFP (fonz fun plug) obviously has a following here and a lot of the things promoted here are sort of targeted towards ffp.  Optware has a much more global audience since those packages are meant to run on a larger set of machines.  So you'll find less discussion about how optware runs specifically on a DNS-323.

Optware packages seem to get updated more frequently and the catalog is larger.

Some people install both.  I did for awhile, but ended up thinking it would be simpler to just go with one.  I think I also wanted to avoid having 2 libc's floating around in there.

I suppose that you could ask Fonz to create a rsnapshot package for ffp, or see if you or someone else could.  I still think that you could hand-install rsnapshot on ffp pretty easily.  But then again, I have not actually tried it.


DNS-323 FW 1.07 : 2 1TB WD Caviar Green SATA : fun_plug: utelnet + optware (no ffp)

Offline

 

#7 2011-01-27 21:52:09

vschlenk
Member
Registered: 2011-01-27
Posts: 25

Re: rsnapshot on dns 323 [newbee to ffp]

Hi karlrado,

as these are my first steps and I am rather focused on having fast results [get rsnapshot up and running] I tend to go for the "use both" approach as of today, install rsnapshot [what I did ... just have to finalize the config and the keys] and then go for getting ssh  over ddns fixed [there is a ROOT account on the dns-323,
this kind of hurts me]. And then go back to do my real work and let the hardware work smoothly in the background again.

Thanks again and have a nice day,
Volker

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB