website quotas (borg backup) and backups of migrated sites

Discussion in 'General' started by nhybgtvfr, Dec 2, 2024.

  1. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    in my main config, i have enabled 'Include backup files into web quota'

    is this supposed to include only files stored in /var/www/<fqdn>/backup, or is it also supposed to include files stored in /var/backup/<web##>

    asking, because i have the servers set to use borg backup, and although the folder /var/backup/<web##> is owned by the correct user/group, web##:client##, the subfolders and files, borg_web, borg_mysql_<dbname> and everything below these are all owned by root:root, and do not appear to be included in the website used quota results.

    just wondering if that's right or not..
    ubuntu 24.04 ispconfig 3.2.12p1


    also, i'll ask another question here rather than create yet another thread, since it's also related to backups..
    i'm manually migrating multiple sites between webservers.. the site migration itself it fine.. the migrated sites work without any issue, but getting errors for the backups in the ispconfig logs
    Code:
    Backup of web files for domain encaustic.com using path /var/backup/web82/borg_web failed. Unable to prepare repository for borg
    
    and
    Code:
    Failed to initialize repository for database c35encaustic_db, folder /var/backup/web82/borg_mysql_c35encaustic_db, backup mode borg.
    
    before migrating the site, i updated the server_id in web_backups in the master database, and resynced everything on the target server.
    then rysnced the /var/backup/web## folder from the old server to the new one.
    backups do work on the new server, if i delete all old backups, and disable backups prior to migration, then re-enable backups afterwards, new backups work.. so it's something about migrating existing backups... have i missed updating something? i didn't see anything else relating to the backups in the database tables.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess this feature will not work for Borg backups, it likely only works for backups that result in a archive file like tar.gz which then gets chown'ed to the web user.

    Regarding your second question, I do not use Borg backups and have not implemented them, so I can't answer that question.
     
    ahrasis likes this.

Share This Page