diff --git a/hooks/backup/18-data_multimedia b/hooks/backup/18-data_multimedia index f80cff0b3..4e8eff11c 100644 --- a/hooks/backup/18-data_multimedia +++ b/hooks/backup/18-data_multimedia @@ -14,4 +14,7 @@ if [ -e "/home/yunohost.multimedia/.nobackup" ]; then fi # Backup multimedia directory -ynh_backup --src_path="/home/yunohost.multimedia" --dest_path="${backup_dir}" --is_big --not_mandatory +ynh_backup --src_path="/home/yunohost.multimedia/Music" --dest_path="${backup_dir}/Music" --is_big --not_mandatory +ynh_backup --src_path="/home/yunohost.multimedia/Picture" --dest_path="${backup_dir}/Picture" --is_big --not_mandatory +ynh_backup --src_path="/home/yunohost.multimedia/Video" --dest_path="${backup_dir}/Video" --is_big --not_mandatory +ynh_backup --src_path="/home/yunohost.multimedia/eBook" --dest_path="${backup_dir}/eBook" --is_big --not_mandatory diff --git a/hooks/restore/18-data_multimedia b/hooks/restore/18-data_multimedia index c3c349e7d..50259b991 100644 --- a/hooks/restore/18-data_multimedia +++ b/hooks/restore/18-data_multimedia @@ -8,4 +8,7 @@ source /usr/share/yunohost/helpers backup_dir="data/multimedia" -ynh_restore_file --origin_path="${backup_dir}" --dest_path="/home/yunohost.multimedia" --not_mandatory +ynh_restore_file --origin_path="${backup_dir}/Music" --dest_path="/home/yunohost.multimedia/Music" --not_mandatory +ynh_restore_file --origin_path="${backup_dir}/Picture" --dest_path="/home/yunohost.multimedia/Picture" --not_mandatory +ynh_restore_file --origin_path="${backup_dir}/Video" --dest_path="/home/yunohost.multimedia/Video" --not_mandatory +ynh_restore_file --origin_path="${backup_dir}/eBook" --dest_path="/home/yunohost.multimedia/eBook" --not_mandatory