Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Have read over #898800: Allow restore of deleted site but it does not provide clear assistance on how to restore a previously deleted site from the backup tar ball.
Looking for help and guidance on how to accomplish this via the Aegir Instance or via drush.
Thank you.
Comments
Comment #1
snlnz CreditAttribution: snlnz commentedIf the site is already deleted, just use:
drush sa | grep platform
will get the platform aliases.
Then run this to set up the site in the platform
drush provision-save @SITENAME.COM --context_type=site --platform=@PLATFORM_ALIAS --uri=SITENAME.COM --db_server=@server_localhost --client_name=admin
and then restore archive file to that site:
drush @SITENAME provision-deploy /data/disk/o1/backups/tar-archive-backup-file.tar.gz
Comment #2
HyperGlide CreditAttribution: HyperGlide commented@snlnz
Thanks.
Was able to get the platform alias.
When I execute
drush provision-save @SITENAME.COM --context_type=site --platform=@PLATFORM_ALIAS --uri=SITENAME.COM --db_server=@server_localhost --client_name=admin
I get:
Could not find provision alias named: @server_localhost
How can i confirm the db_server's name?
Thank you.
Comment #3
HyperGlide CreditAttribution: HyperGlide commentedGot it resolved.
db_server @server_master
Comment #3.0
HyperGlide CreditAttribution: HyperGlide commentedProperly link issue.
Comment #4
wickwood CreditAttribution: wickwood commentedNone of what is listed above here is working for me and/or makes any sense.
I have a backup of the site in ~/backups and the platform still exists, but I don't know how to recover it.
Yes, I completely deleted the site. My client and I are going our separate ways, but I realized after downloading the backups and deleting the site, that I should have changed the User 1 email address and password.
I would appreciate it if someone can either point me to some place where the steps to recovering the site or provide them here.
Thanks for your help in advance!
Steve
P.S. Also, I'm reopening this issue because it seems like the best place to continue this conversation.
Comment #5
wickwood CreditAttribution: wickwood commentedI'm not entirely sure all of this is best practice or not, but I was able to restore my site by following some of the steps in: https://omega8.cc/import-your-sites-to-aegir-in-8-easy-steps-109
Here is what I did:
cp database-dump.sql o1.ftp:/path/to/platform/sites/www.mydomain.com/
drush sqlc < database-dump.sql from /path/to/platform/sites/www.mydomain.com/
drush dis captcha
so I could loginHope this helps someone else and if there is anything I could have done better I would appreciate learning about it.
All the Best,
Steve