diff --git a/scripts/backup b/scripts/backup index d2af648..ba085b6 100644 --- a/scripts/backup +++ b/scripts/backup @@ -32,7 +32,9 @@ fi # Clean cache files before backup (saved some disk space) ynh_secure_remove --file=$install_dir/var/cache/prod + if [ "$BACKUP_CORE_ONLY" ] ; then + ynh_print_warn --message="Backing up only the core... If you downloaded article images, they will not be saved." mv "$install_dir/web/assets/images" "/tmp/$app/web/assets/images" ynh_backup --src_path="$install_dir" mv "/tmp/$app/web/assets/images" "$install_dir/web/assets/images"