LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » Kloxo Community Support » Knowledge Base » Restoring Backups via commandline.
Restoring Backups via commandline. [message #9915] Sat, 04 August 2007 10:02 Go to next message
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 #10027 is a reply to message #9915] Sun, 05 August 2007 20:39 Go to previous messageGo to next message
rpereyra is currently offline rpereyra  Argentina
Messages: 27
Registered: April 2007
Member
Please can you add how we can backup all domains via commandline ?

roberto
Re: Restoring Backups via commandline. [message #10028 is a reply to message #10027] Sun, 05 August 2007 20:46 Go to previous messageGo to next message
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 #18290 is a reply to message #10028] Tue, 25 December 2007 23:20 Go to previous messageGo to next message
sukhdeepsingh is currently offline sukhdeepsingh  India
Messages: 419
Registered: May 2007
Master
Can you please make this sticky Smile
Re: Restoring Backups via commandline. [message #19194 is a reply to message #18290] Sun, 20 January 2008 02:08 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Made Sticky.

Thanks.


On Wed, Dec 26, 2007 at 04:20:54AM -0000, Sukhdeep wrote:
>
>
> Can you please make this sticky :)
Re: Restoring Backups via commandline. [message #27003 is a reply to message #9915] Sun, 23 March 2008 13:32 Go to previous messageGo to next message
Alcedema is currently offline Alcedema  United Kingdom
Messages: 79
Registered: March 2008
Valuable Member
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 #27004 is a reply to message #27003] Sun, 23 March 2008 13:42 Go to previous messageGo to next message
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 #27006 is a reply to message #9915] Sun, 23 March 2008 13:46 Go to previous messageGo to next message
Alcedema is currently offline Alcedema  United Kingdom
Messages: 79
Registered: March 2008
Valuable Member
Whoops, sorry. I meant restored, not backed up.

If you have a complete backup, is there any way to specify what gets restored?

I'm guessing your answer is going to be the same though.
Re: Restoring Backups via commandline. [message #27007 is a reply to message #27006] Sun, 23 March 2008 13:50 Go to previous messageGo to next message
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 #44286 is a reply to message #27007] Sun, 02 November 2008 16:15 Go to previous messageGo to next message
proviz is currently offline proviz  Canada
Messages: 25
Registered: October 2008
Member
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 #44287 is a reply to message #44286] Sun, 02 November 2008 16:17 Go to previous messageGo to next message
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 #44314 is a reply to message #44286] Sun, 02 November 2008 19:37 Go to previous messageGo to next message
proviz is currently offline proviz  Canada
Messages: 25
Registered: October 2008
Member
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.

All looks fine except when I try to retrieve the backup, either by direct download, upload to FTP, or viewing contents via the file manager.

There is a large amount of data that is to be backed up, I'm wondering if it might be server memory resources limiting the backup going to completion. I'm on a 256MB vps with vpslink... i'll check with them on any similar problems thx.
Re: Restoring Backups via commandline. [message #44315 is a reply to message #44314] Sun, 02 November 2008 20:07 Go to previous messageGo to next message
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 Go to previous messageGo to next message
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 #46408 is a reply to message #44316] Mon, 17 November 2008 04:28 Go to previous messageGo to next message
rtacconi is currently offline rtacconi  United Kingdom
Messages: 15
Registered: November 2008
Member
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 #46409 is a reply to message #46408] Mon, 17 November 2008 04:30 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Run:
 
 /script/fixweb
 


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 Go to previous messageGo to next message
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?

 
 ps ax | grep lighttpd
 


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 #46434 is a reply to message #46410] Mon, 17 November 2008 09:08 Go to previous messageGo to next message
rtacconi is currently offline rtacconi  United Kingdom
Messages: 15
Registered: November 2008
Member
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# 
Re: Restoring Backups via commandline. [message #46436 is a reply to message #46434] Mon, 17 November 2008 09:20 Go to previous message
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#
>
>


Previous Topic:Postfix driver
Next Topic:InstallApp for Multiple Domains
Goto Forum:
  


Current Time: Sat May 25 13:19:17 EDT 2013

Total time taken to generate the page: 0.02480 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software