Page 1 of 1
5.0i rsync daemon abgeschaltet ?
Posted: Sun Apr 19, 2015 3:31 pm
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
Re: 5.0i rsync daemon abgeschaltet ?
Posted: Mon Oct 12, 2015 2:20 am
by ON1DQD
Haben Sie dieses rsync daemon am laufen?
Re: 5.0i rsync daemon abgeschaltet ?
Posted: Mon Oct 12, 2015 6:20 am
by Manhart
Bis heute läuft der rsync daemon auf meinem Meteohub (5.0k) nicht. Gruss Matthias
Re: 5.0i rsync daemon abgeschaltet ?
Posted: Mon Oct 19, 2015 7:14 pm
by ON1DQD
Wie kan man einen automatischer Backup machen zu einer FTP-Server?
Re: 5.0i rsync daemon abgeschaltet ?
Posted: Tue Oct 20, 2015 12:16 pm
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
Re: 5.0i rsync daemon abgeschaltet ?
Posted: Wed Oct 21, 2015 8:53 pm
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?
Re: 5.0i rsync daemon abgeschaltet ?
Posted: Sun Oct 25, 2015 9:38 pm
by YJB
Hi,
In the most basic from you will be looking at:
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
Re: 5.0i rsync daemon abgeschaltet ?
Posted: Thu Oct 29, 2015 5:38 am
by sts
To get rsync to run do this:
1. vi /etc/default/rsync
2. change "RSYNC_ENABLE=false" to "RSYNC_ENABLE=true"