web restore writes into web folder and don't replaces it
Version 3.2.10
I don't know if that's the intention or a bug that the restore write into the web folder and don't replaces it.
(with borg but think it happens with tar.gz and others too).
A restore don't delete the old content of web folder first
It copies the files into the directories - replaces the files but don't delete other files there.
That's lead into multiple problems (over quota/files chaos) if the backup is older/other CMS/contains hacked files/..
borg uses
safe_exec cmd: cd '/var/www/clients/client1/web2' && borg extract --nobsdflags '/var/backup/web2/borg_web::web2_2023-06-11_13-18'
and tar.gz uses
tar xf xxx.tar.gz --directory /var/www/domain.xxx
both write into folder i think and there is no rm -R web folder first
I don't checked how rar, zip, 7z, bzp2... handles this