Joined: Mar 2008 Gender: Male Posts: 78 Location: Ratingen - Germany Karma: 1
Help needed for rsync/rsnapshot « Thread Started on Apr 6, 2008, 9:00pm »
Hello to all of you,
I am struggeling with rsnapshot.
I habe installed perl, rsync and rsnapshot on one N5200B and perl and rsync on a second N5200B, which should be the backup machine.
I have edited rsnapshot.conf and have put the ip of the backup n5200 in and have made a backup folder on the machine on which the backups should be saved.
but there ist no backup startet.
as my english is just school english (and school is quite long time ago) I must admit, not to understand, how to configure rsnapshot /rsync. As I have understood rsync hasnŽt even to bestarted, it just has to be insatlled. I have trid to activate the module as well, but nothing happens.
Can anybody help me and explain me, what I have made wrong?
Joined: Mar 2008 Gender: Male Posts: 21 Location: Gloucester, UK or Bangkok, TH Karma: 0
Re: Help needed for rsync/rsnapshot « Reply #2 on Apr 8, 2008, 3:23am »
Hello George,
I use rsync over ssh to backup my N5200B Pro to some disks in a Linux box.
Is there a version of rsync available to install on Windows?
rsync on it's own will do similar to a robocopy on Windows and will only copy changed files so that it doesn't waste bandwidth and it will maintain a "mirror" copy of what you tell it to copy.
I've not used rsnapshot, so I can't comment on that
Joined: Mar 2008 Gender: Male Posts: 78 Location: Ratingen - Germany Karma: 1
Re: Help needed for rsync/rsnapshot « Reply #3 on Apr 8, 2008, 7:45pm »
Hi,
what I would like to be done:
On one Thecus N5200Bpro is my RAID with all my data. On this N5200B I have installed Perl, Rsync, Rsnapshot and habe modified the last line of rsnapshot.conf with the internal IP of the second N5200.
On the second N5200 (Backup-Server)I have installed Perl, Rsync but no rsnapshot as this N5200 should only receive data from the first N5200 and shouild be used as a backup system only.
Both N5200 are connected to the same external gigabit switch and both are powered on.
On the RAID perl, rsync and rsnapshot are running. With "crontab -l" I can see three lines added to the crontab.
On the Backup-Server I have added a folder u01 (it coud have any other name, but I left it like it was in the rsnadshop.conf file) so all backup files should be written to that folder.
I have rebooted both N5200 and nothing is happening, no files are being transferred. I must have forgotten something ....
Joined: Mar 2008 Gender: Male Posts: 78 Location: Ratingen - Germany Karma: 1
Re: Help needed for rsync/rsnapshot « Reply #4 on Apr 8, 2008, 7:58pm »
Hi,
I have found something strange:
Afetr rebooting the Raid Server, which should do the automatic backup, in "crontab -l" the three lines for starting the cronjob rsnspshot are GONE ....
Joined: Mar 2008 Gender: Male Posts: 78 Location: Ratingen - Germany Karma: 1
Re: Help needed for rsync/rsnapshot « Reply #8 on Apr 15, 2008, 8:12pm »
Hi, if I log on my N5200Bpro via putty, I use crontab -l to list all the cronjobs running.
I have added the three lines from rsnspshot module to the file var/spool/cron/crontabs/root
After rebooting the lines from rsnapshot are gone.
Actually I have added a script, which i being started by meta module, which replaces the var/spool/cron/crontabs/root with a cronjobs file, which is placed in the rsnapshot folder and after rebooting the cronjob file is being replaced and the crond is starting cron again.
But I must admit, that rsnapshot still does not work at all and I dont get any feedback / information / logfiles what is going wrong.
Joined: Dec 2006 Gender: Male Posts: 872 Karma: 60
Re: Help needed for rsync/rsnapshot « Reply #9 on Apr 15, 2008, 8:38pm »
Why are you adding the crontab lines manually? The RSNAPSHOT module does this for you automatically (as with version 1.01.00 dated 2008-04-13)?
Basically, I think you didn't understand the way rsnapshot works (I never worked with it, so this is just my interpretation from reading its description for some minutes):
1) You need to install RSNAPSHOT on your backup server: rsnapshot creates backups by copying the data using rsync from a remote machine (your RAID NAS as you call it).
2) On your source NAS you just need to install RSYNC (and probably SSH if you use it for rsync).
For further help, you should post the relevant parts of your config....
Re: Help needed for rsync/rsnapshot « Reply #10 on Apr 15, 2008, 8:53pm »
If you edit the file "/app/cfg/crond.conf" instead of "var/spool/cron/crontabs/root" and then execute "crontab /app/cfg/crond.conf -u root" to update crontab, your lines won't disappear when rebooting. I don't know if this solves your problem, but it's worth a try.
Joined: Mar 2008 Gender: Male Posts: 78 Location: Ratingen - Germany Karma: 1
Re: Help needed for rsync/rsnapshot « Reply #11 on Apr 16, 2008, 8:18pm »
Hello Omega, hello WeiselNo1,
THANKS A LOT for your hints.
YES, I have done one big mistake: I am runnung rsnapshot on the machine which I want to backup on the second system and am running RSYNC only on the backup system. SO I have done it completely wrong because of completely misunderstanding
I will change the installation and try and tell you, whether this was the reason.
Thanks to WieselNo1 for the hints of changing the cronjobs. I will try and tell you.
Joined: Mar 2008 Gender: Male Posts: 78 Location: Ratingen - Germany Karma: 1
Re: Help needed for rsync/rsnapshot « Reply #12 on Apr 20, 2008, 6:51pm »
Hi,
I have in between installed the new rsnapshot module an the N5200Bpro, which is meant to be the Back-Up-Server I have configurated rsnapshot.conf with the IP-Adress of my RAID and have started rsnapshot.
it still does not work.
which files would anybody need to have a look at, to find ouit, what I am still doing wrong?
If you edit the file "/app/cfg/crond.conf" instead of "var/spool/cron/crontabs/root" and then execute "crontab /app/cfg/crond.conf -u root" to update crontab, your lines won't disappear when rebooting. I don't know if this solves your problem, but it's worth a try.