mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
Improxing backup explanation
This commit is contained in:
parent
0463668181
commit
796248311a
2 changed files with 5 additions and 4 deletions
|
@ -13,7 +13,7 @@ Here's the command which should be tested and included in a /etc/cron.daily/dotc
|
||||||
|
|
||||||
yunohost backup create --hooks dotclear2
|
yunohost backup create --hooks dotclear2
|
||||||
|
|
||||||
There might be two bugs preventing this command to work. First one
|
There might be two bugs preventing this command to work. First one that you may fix asap.
|
||||||
|
|
||||||
root@debian-jessie:~# yunohost backup create
|
root@debian-jessie:~# yunohost backup create
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
|
@ -31,11 +31,11 @@ There might be two bugs preventing this command to work. First one
|
||||||
logging.info("unable to iterate over local archives: %s", str(e))
|
logging.info("unable to iterate over local archives: %s", str(e))
|
||||||
NameError: global name 'logging' is not defined
|
NameError: global name 'logging' is not defined
|
||||||
|
|
||||||
Here is the fix
|
The correction to be applied
|
||||||
|
|
||||||
sed -i -e "302s/logging/logger/" /usr/lib/moulinette/yunohost/backup.py
|
sed -i -e "302s/logging/logger/" /usr/lib/moulinette/yunohost/backup.py
|
||||||
|
|
||||||
Second one
|
The second bug, that may only be fixed after a first failed backup attempt as this will create the 50-dotclear2 file
|
||||||
|
|
||||||
root@debian-jessie:~/dotclear2_ynh# yunohost backup create --hooks dotclear2
|
root@debian-jessie:~/dotclear2_ynh# yunohost backup create --hooks dotclear2
|
||||||
Exécution des scripts de sauvegarde...
|
Exécution des scripts de sauvegarde...
|
||||||
|
@ -44,7 +44,7 @@ Second one
|
||||||
Création de l'archive de sauvegarde...
|
Création de l'archive de sauvegarde...
|
||||||
Succès ! Sauvegarde terminée
|
Succès ! Sauvegarde terminée
|
||||||
|
|
||||||
Here is the fix
|
Then you can fix it
|
||||||
|
|
||||||
chown admin /etc/yunohost/hooks.d/backup/50-dotclear2
|
chown admin /etc/yunohost/hooks.d/backup/50-dotclear2
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ app=dotclear2
|
||||||
# which will be compressed afterward
|
# which will be compressed afterward
|
||||||
backup_dir=$1/apps/$app
|
backup_dir=$1/apps/$app
|
||||||
sudo mkdir -p $backup_dir
|
sudo mkdir -p $backup_dir
|
||||||
|
sudo chown admin $backup_dir
|
||||||
|
|
||||||
# Backup sources
|
# Backup sources
|
||||||
sudo cp -a /var/www/$app/. $backup_dir/sources
|
sudo cp -a /var/www/$app/. $backup_dir/sources
|
||||||
|
|
Loading…
Reference in a new issue