Backup?

all about Meteohub on the new Raspberry PI platform

Moderator: Mattk

Post Reply
gm4jjj
Expert Boarder
Expert Boarder
Posts: 108
Joined: Mon Jan 18, 2010 3:53 pm
Location: Dunfermline, Fife UK

Backup?

Post by gm4jjj »

I don't seem to be able to get backup to work on the RPi. In the logfile I see:

Sat Jul 19 10:45:40 BST 2014: backup already running.

No message in the log to say that the backup has started when I pressed backup application data.

No sign of any file created in /public.

Does the created backup file only appear once it is finished?
gm4jjj
Expert Boarder
Expert Boarder
Posts: 108
Joined: Mon Jan 18, 2010 3:53 pm
Location: Dunfermline, Fife UK

Re: Backup?

Post by gm4jjj »

Hello again, I tried running fullbackup from the command line via ssh and that appears to work, I then do get a message in the meteohub log that full backup has started. I see from the fullbackup script that the gzip file is hidden until it is completed.

I am not sure why running from the web interface did not start the full backup, instead I got a message that it was already running (which was not the case).

I hope that gives some clues to the problem.
joachimF
Junior Boarder
Junior Boarder
Posts: 34
Joined: Sun Jun 29, 2014 11:09 pm
Location: 83570 Carces France
Contact:

Re: Backup?

Post by joachimF »

There is a 'backup -problem'
Message of Meteohub:
Backup in Datei "/public/meteohub.backup" erfolgreich gestartet.
Wenn die Datei erstellt ist, erscheint ein entsprechender Eintrag in der Protokolldatei.

There is neither the directory 'public' nor the file 'meteohub.backup'

Terminal:
root@meteohub-rpi:~# mlocate public
/usr/share/man/man3/EVP_PKEY_print_public.3ssl.gz
/usr/share/man/man3/RSA_public_decrypt.3ssl.gz
/usr/share/man/man3/RSA_public_encrypt.3ssl.gz
/usr/share/python/runtime.d/public_modules.rtinstall
/usr/share/python/runtime.d/public_modules.rtremove

root@meteohub-rpi:~# mlocate meteohub.backup
Best Regards
Joachim

http://www.puttkammer.de
gm4jjj
Expert Boarder
Expert Boarder
Posts: 108
Joined: Mon Jan 18, 2010 3:53 pm
Location: Dunfermline, Fife UK

Re: Backup?

Post by gm4jjj »

Hello,

Could you try giving the command "fullbackup" from the terminal? This does work for me, but using the button in the web interface does not, as you are finding also.

If I do that then the backup does start and eventually the Meteohub.backup is created in the smb share "public". (The public share is /data directory in the terminal). It can take quite a long time for the backup file to be created, as it is hidden while it is being produced, but you should see an entry in the meteohub log that it has been started and that it has been completed.

I hope that helps.

Hopefully admin will correct me if I am wrong.

Best wishes

david
joachimF
Junior Boarder
Junior Boarder
Posts: 34
Joined: Sun Jun 29, 2014 11:09 pm
Location: 83570 Carces France
Contact:

Re: Backup? [terminal solution]

Post by joachimF »

Hallo David,
the teminal command './fullbackup' makes the file '/data/meteohub.backup' and
the message 'Mon Jul 21 13:52:02 CEST 2014: full backup done' is in the meteohub.log.

merci for helping
Best Regards
Joachim

http://www.puttkammer.de
ajwhall
Junior Boarder
Junior Boarder
Posts: 20
Joined: Mon Jun 09, 2014 1:10 pm
Location: Lossatal, Deutschland
Contact:

Re: Backup?

Post by ajwhall »

Hi to the Forum,

What folder are you running the "fullbackup" from?

Once I log in via SSH which folder do I need to change to?
Please can you write the full line for me as I always have trouble remembering the Linux file structure!

Best Regards,

Andrew.
http://www.andrewjwhall.com/
Meteohub/Raspberry Pi 3
gm4jjj
Expert Boarder
Expert Boarder
Posts: 108
Joined: Mon Jan 18, 2010 3:53 pm
Location: Dunfermline, Fife UK

Re: Backup?

Post by gm4jjj »

I think the command ./fullbackup will work from any directory, however the script is in /home/meteohub so you could cd to there first .

Code: Select all

cd /home/meteohub
./fullbackup
ajwhall
Junior Boarder
Junior Boarder
Posts: 20
Joined: Mon Jun 09, 2014 1:10 pm
Location: Lossatal, Deutschland
Contact:

Re: Backup?

Post by ajwhall »

Hi David,

Full backup started!

Many thanks.

Andrew.
http://www.andrewjwhall.com/
Meteohub/Raspberry Pi 3
Post Reply