From 301346ee954bca4dac0eae8144fa38a2ea5a2b76 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 27 May 2021 13:51:28 +0200 Subject: [PATCH 1/2] remove rustup after build --- scripts/_common.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 8e7c92f..90c3b5d 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -64,5 +64,9 @@ install_sources() { set +$u_arg; deactivate set -$u_arg; + + # Remove Rust to reduce backup size + ynh_secure_remove --file=$final_path/.rustup + ynh_secure_remove --file=$final_path/.cargo fi } From e826d1a50d73b4f8d8efc60a576793110b8179ea Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 28 May 2021 02:02:58 +0200 Subject: [PATCH 2/2] Remove logs during upgrade backup --- scripts/backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup b/scripts/backup index 6af787c..832186f 100644 --- a/scripts/backup +++ b/scripts/backup @@ -114,7 +114,7 @@ ynh_backup --src_path="$data_path" --is_big=1 #================================================= ynh_print_info --message="Backing up synapse log..." -ynh_backup --src_path="/var/log/matrix-$app" +ynh_backup --src_path="/var/log/matrix-$app" --is_big=1 #================================================= # BACKUP HOOKS