I want to backup the mails and baikal. How to do it using command-line interface ?
And suppose the hard disk crashed, how to restore the backed up files to new server ?
The backup system is not implemented yet (as of october, 20th), but it is the most important point of our roadmap
Hello. I saw that some applications have âbackupâ and ârestoreâ scripts. Do you know how to use them please?
Thanks
Those scripts are the first version of the backup system. It enables you to fully backup a YunoHost instance in a tarball and restore it on another instance.
For now it is not really usable, but @jerome is working on it
Hi,
I had several difficulties with my YunoHost installation⊠I tried to copy (dd) the sdcard where the system is installed in order to be able to restore it, but when I try, I have to make an fsck at reboot and then I canât restart mySQLd. I tried several times and failed each time.
Now, Iâd like to backup my system in another way.
While the «backup» app is not ready, could someone tell me how to backup YunoHost? What are the files/directory to save? How to save the database? How to restore it ?
Thanks @jerome, for the work you are doing, that we are waiting forâŠ
You can use mysqldump to backup every databases you have.
The command look like:
sudo mysqldump -uroot -p"$(sudo cat /etc/yunohost/mysql)" mysql > mydump.sql
I do encourage you to read a tutorial about it though. The MySQL parameters of YunoHost are standard.
thanks, Iâd try this :
mysqldump -uroot "$(sudo cat /etc/yunohost/mysql)" --single-transaction --default-character-set=utf8 --events --ignore-table=mysql.event --all-databases > /tmp/all_databases_backup.sql
Iâm not sure but I read it was important to backup on utf-8 if youâre datas are in this format, and it seem to be
I want to backup the server and restore it on the freshly installed yunohost server.
Most important application which are to backed and restored are:
- All the accounts
- Emails
- Baikal
- Jappix(including saved chat history and profiles)
- Zerobin
How can I backup and restore them?
For emails and accounts you can use sudo yunohost backup create
For the apps I donât know, but if someone knows Iâm interested.
I am getting the error with the command sudo yunohost backup create
Traceback (most recent call last):
File â/usr/bin/yunohostâ, line 160, in
print_json=PRINT_JSON, use_cache=USE_CACHE)
File â/usr/lib/python2.7/dist-packages/moulinette/init.pyâ, line 117, in cli
moulinette.run(args, print_json)
File â/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.pyâ, line 202, in run
ret = self.actionsmap.process(args, timeout=5)
File â/usr/lib/python2.7/dist-packages/moulinette/actionsmap.pyâ, line 462, in process
return func(**arguments)
File â/usr/lib/moulinette/yunohost/backup.pyâ, line 68, in backup_create
if name in backup_list()[âarchivesâ]:
File â/usr/lib/moulinette/yunohost/backup.pyâ, line 302, in backup_list
logging.info(âunable to iterate over local archives: %sâ, str(e))
NameError: global name âloggingâ is not defined