Skip to content

backup domains not owned by a client #4

@ch604

Description

@ch604

currently, domains not owned by a client are not backed up in client-level migrations, because the admin user doesnt back up nicely. implement this if this issue persists across additional tests:

admindomains=`mysql psa -u admin -p$(cat /etc/psa/.psa.shadow) -Ns -e 'SELECT c.login, d.name FROM clients AS c JOIN domains AS d ON d.cl_id = c.id;' | grep ^admin\s* | awk '{print $2}'`;  /usr/local/psa/bin/pleskbackup domains-name $admindomains -c --skip-logs --output-file=/var/migrationtemp/backup.admin.tar

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions