Skip to content

Commit

Permalink
[backup core only] Explain to the user what's going on
Browse files Browse the repository at this point in the history
  • Loading branch information
lapineige authored and Salamandar committed Mar 9, 2024
1 parent 2aa0c15 commit 5421d05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/backup
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5421d05

Please sign in to comment.