| Restoring Backups via commandline. [message #9915] |
Sat, 04 August 2007 10:02  |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Lxadmin provides very comprehensive backup/restore options. If you are a client, then the web interface is the best way to do it, but if you are the admin, then restoration via the web-interface might not be feasible. Restoration can be done via the command line with the following command:
cd /usr/local/lxlabs/lxadmin/httpdocs/
lphp.exe ../bin/common/restore.php --restore --accounts=all <backup-file-name>
You can even specify specific accounts to be restored.
Thanks.
[Updated on: Sat, 09 February 2008 20:10] by Moderator Report message to a moderator
|
|
|
|
| Re: Restoring Backups via commandline. [message #10028 is a reply to message #10027] |
Sun, 05 August 2007 20:46   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
cd /usr/local/lxlabs/lxadmin/httpdocs/
lphp.exe ../bin/common/backup.php --class=client --name=admin --v-backup_file_name=newone
It will take the backup for your entire hosting and you can find the file in /home/lxadmin/client/admin/__backup/newone....tar.gz
Thanks.
|
|
|
|
|
|
| Re: Restoring Backups via commandline. [message #27004 is a reply to message #27003] |
Sun, 23 March 2008 13:42   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
You can take individual database backup if you go to database home . Other than that, no. Complete backup takes everything.
thanks.
On Sun, Mar 23, 2008 at 05:33:05PM -0000, T Ballantine wrote:
>
>
> Is there any way to select exactly what gets backed up under a user account, i.e. mail, DB etc?
|
|
|
|
| Re: Restoring Backups via commandline. [message #27007 is a reply to message #27006] |
Sun, 23 March 2008 13:50   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
For restoration, it can be added, at least when restoring via the command line.
thanks.
On Sun, Mar 23, 2008 at 05:46:38PM -0000, T Ballantine wrote:
>
>
> Whoops, sorry. I meant restored, not backed up.
|
|
|
|
| Re: Restoring Backups via commandline. [message #44287 is a reply to message #44286] |
Sun, 02 November 2008 16:17   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Did you set no local copy ?
Otherwise, you should have got some messages if the backup failed.
On Sun, Nov 02, 2008 at 09:15:56PM -0000, Scott wrote:
>
>
> I'm noticing on my lxadmin .tar backups that the size is 0 bytes with no data. Has anyone else seen this before?
>
>
>
|
|
|
|
| Re: Restoring Backups via commandline. [message #44315 is a reply to message #44314] |
Sun, 02 November 2008 20:07   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
You should check vps home -> QoS or the equivalent.
On Mon, Nov 03, 2008 at 12:37:04AM -0000, Scott wrote:
>
>
> Hi, thanks for the reply.
>
> The local copy option was selected, and the copies are created. I receive email notifications that the backups are created successfully.
>
|
|
|
| Re: Restoring Backups via commandline. [message #44316 is a reply to message #44314] |
Sun, 02 November 2008 20:07   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
also, run from the command line and see what's actually happening.
/script/backup --class=client --name=admin
On Mon, Nov 03, 2008 at 12:37:04AM -0000, Scott wrote:
>
>
> Hi, thanks for the reply.
>
|
|
|
|
| Re: Restoring Backups via commandline. [message #46409 is a reply to message #46408] |
Mon, 17 November 2008 04:30   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Run:
If you have changed the IP of the vps.
On Mon, Nov 17, 2008 at 09:28:23AM -0000, Riccardo Tacconi wrote:
>
>
> I have made the backup and restored, the file are still there but when I try to connect to the web site I get coonection failed. I can ping the VPS using the FQDN, so the DNS reconrd is fine. It seems to me that the virtual hosting settings are not configured. Is there a way to fix this via lxadmin or in which file I should have a look?
>
|
|
|
| Re: Restoring Backups via commandline. [message #46410 is a reply to message #46408] |
Mon, 17 November 2008 04:31   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Login to the vps, and just check if the webserver is running. Is this lighty or apache?
thanks.
On Mon, Nov 17, 2008 at 09:28:23AM -0000, Riccardo Tacconi wrote:
>
>
> I have made the backup and restored, the file are still there but when I try to connect to the web site I get coonection failed. I can ping the VPS using the FQDN, so the DNS reconrd is fine. It seems to me that the virtual hosting settings are not configured. Is there a way to fix this via lxadmin or in which file I should have a look?
>
|
|
|
|
| Re: Restoring Backups via commandline. [message #46436 is a reply to message #46434] |
Mon, 17 November 2008 09:20  |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Are you running lighty or apache?
Just run:
/script/fixweb
service lighttpd restart
thanks.
On Mon, Nov 17, 2008 at 02:08:11PM -0000, Riccardo Tacconi wrote:
>
>
> The output
>
> -bash-3.1# ps ax | grep lighttpd
> 22195 ? S 0:00 /usr/local/lxlabs/ext/lxlighttpd/sbin/lxadmin.httpd -f /usr/local/lxlabs/lxadmin/file/lighttpd.conf
> 23551 pts/0 S+ 0:00 grep lighttpd
> -bash-3.1#
>
>
|
|
|