5.0i rsync daemon abgeschaltet ?

all about Meteohub on the new Raspberry PI platform

Moderator: Mattk

Post Reply
User avatar
Manhart
Senior Boarder
Senior Boarder
Posts: 63
Joined: Wed Sep 03, 2008 11:41 am
Location: 8312 Winterberg - Switzerland
Contact:

5.0i rsync daemon abgeschaltet ?

Post by Manhart »

Hallo,

warum ist in 5.0i der rsync daemon abgeschaltet ? In der Datei /etc/default/rsync ist der Eintrag RSYNC_ENABLE=false und ich kann von aussen nicht auf den rsync-Dienst zugreifen.

Hardware: Raspberry Pi 2 mit aktuellem Image 5.0f, aktualisiert auf 5.0i

Gruss

Matthias
User avatar
ON1DQD
Expert Boarder
Expert Boarder
Posts: 101
Joined: Fri Dec 05, 2008 8:46 pm
Location: Belgium (Genk)

Re: 5.0i rsync daemon abgeschaltet ?

Post by ON1DQD »

Haben Sie dieses rsync daemon am laufen?
Regards / Grüß,
Geert - ON1DQD
User avatar
Manhart
Senior Boarder
Senior Boarder
Posts: 63
Joined: Wed Sep 03, 2008 11:41 am
Location: 8312 Winterberg - Switzerland
Contact:

Re: 5.0i rsync daemon abgeschaltet ?

Post by Manhart »

Bis heute läuft der rsync daemon auf meinem Meteohub (5.0k) nicht. Gruss Matthias
User avatar
ON1DQD
Expert Boarder
Expert Boarder
Posts: 101
Joined: Fri Dec 05, 2008 8:46 pm
Location: Belgium (Genk)

Re: 5.0i rsync daemon abgeschaltet ?

Post by ON1DQD »

Wie kan man einen automatischer Backup machen zu einer FTP-Server?
Regards / Grüß,
Geert - ON1DQD
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: 5.0i rsync daemon abgeschaltet ?

Post by YJB »

ON1DQD wrote:Wie kan man einen automatischer Backup machen zu einer FTP-Server?
Hi,

You can use /usr/bin/ncftpput and schedule it from cron.

Ysbrand
User avatar
ON1DQD
Expert Boarder
Expert Boarder
Posts: 101
Joined: Fri Dec 05, 2008 8:46 pm
Location: Belgium (Genk)

Re: 5.0i rsync daemon abgeschaltet ?

Post by ON1DQD »

YJB wrote:
ON1DQD wrote:Wie kan man einen automatischer Backup machen zu einer FTP-Server?
Hi,

You can use /usr/bin/ncftpput and schedule it from cron.

Ysbrand
I'm not so familiar with cron, can you give an example how it schould look like?
Regards / Grüß,
Geert - ON1DQD
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: 5.0i rsync daemon abgeschaltet ?

Post by YJB »

Hi,

In the most basic from you will be looking at:

Code: Select all

55 11,23 * * * /root/backup.sh 
This will run a script called /root/backup.sh on every day of the week at 11:55 (morning and midnight).

There are five --space separated-- fields that will tell cron when to run a script/command followed by the actual command:

Code: Select all

 # ┌───────────── min (0 - 59)
 # │ ┌────────────── hour (0 - 23)
 # │ │ ┌─────────────── day of month (1 - 31)
 # │ │ │ ┌──────────────── month (1 - 12)
 # │ │ │ │ ┌───────────────── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names; 7 is Sunday, the same as 0)
 # │ │ │ │ │
 # │ │ │ │ │
   * * * * *  <command>
The script itself will contain the ncftpput commands (and other stuff) that you want to run.

While you can run the script at any time, it would make sense to schedule it in such a way that it doesn't conflict with the aggregates that meteohub is running on a regular basis.

HTH
Ysbrand
sts
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Sun Oct 11, 2015 4:00 am

Re: 5.0i rsync daemon abgeschaltet ?

Post by sts »

To get rsync to run do this:
1. vi /etc/default/rsync
2. change "RSYNC_ENABLE=false" to "RSYNC_ENABLE=true"
Post Reply