Only include multimedia system folder in system backup/restore

This commit is contained in:
Augustin Trancart 2022-02-09 19:43:18 +01:00
parent 1d3bd602eb
commit 15ec0ef0a7
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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