Hi there, i've setup the backup of websites, but it stops working. Only the db will be correctly backup. I've tried the backup script in debug mode and check log, but no error are shown... What may i check?
Is mapped through s3fs, i've tried to to enable/disable option "Backup directory is a mount?", same result. I've tried to change attribute of files with chown, chmod without anyissue...
Do you have selected to create backups as web user or as root user (server config -> tab server -> backup mode)?
Ok i've found the problem... after some fix, backup won't start because they where flagged as weekly instead of daily... What is the differences between "backups as web user or as root user"? In any case the backups are put in /var/backups, only with different users instead of root?
And when a backup is run as user, then it will contain only the files of the website that are readable for the web user while the backup as root contains all files in the web dir, no matter which user owns them.
I fear it' not so easy Because this is also a security question which yu as admin should be aware of when choosing the backup method. Your clients can download the backup, so let's say you put a file with a secret password into one of his folders, let's say /var/www/clientdomain.tld/private/secret.txt. Now you think, hey, that's secure as he can not read files owned by root with root read only chmod. BUT, when you use root backup method, then the file will be stored in the backup, the client can download the backup archive and get's the secret file. So this is probably not something that would happen in real as you won't put any secret root only files into a private website folder or the users web dir. I just wanted to make you aware of the risks of using the root backup method, while it is great that it contains all files, the negative side as well is that it contains all files
Sure i've understand! That's not my problem because normaly i don't put this kind of files in user space, but only in root directory not accessibile by ispconfig users. So, for me, not a problem. Thanky for the advise!