Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backup domains not owned by a client #4

Open
ch604 opened this issue Oct 25, 2013 · 3 comments
Open

backup domains not owned by a client #4

ch604 opened this issue Oct 25, 2013 · 3 comments
Assignees
Labels

Comments

@ch604
Copy link
Owner

ch604 commented Oct 25, 2013

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
@ghost ghost assigned ch604 Oct 25, 2013
@ch604
Copy link
Owner Author

ch604 commented Oct 29, 2013

should write a syncunowneddomains() command to match the syncclients() function, but for unowned domains only. see sysres wiki for the command needed. for the client list, ensure that 'admin' is not parsed.

@ch604
Copy link
Owner Author

ch604 commented Oct 29, 2013

added syncadmin() and an option for it to be called in subcheck. this depends on domain-level sync functions.

@ch604 ch604 closed this as completed Oct 29, 2013
@ch604 ch604 reopened this Nov 19, 2013
@ch604
Copy link
Owner Author

ch604 commented Nov 19, 2013

need to test this more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant