MRatWork Forum by Mustafa Ramadhan

General Discussions => GNU/Linux Helps => Topic started by: henry on 2014-02-13, 11:58:51

Title: Backup And Restore KloxoMr Through SSH
Post by: henry on 2014-02-13, 11:58:51
1.Backup.
I have tried the "backup home", I felt like it didn't fully backup all my files in the old VPS server.

2.Restore.
Unable to upload big file that is bigger than 1GB through KloxoMr menu.
My trial new VPS spec for this is 2GB Ram / 4 CPU.

Every time, in order to be able to login KloxoMr panel. I have to login into SSH and execute:

Code: [Select]
sh /script/cleanup
sh /script/fix-all
sh /script/restart-all

Through Googling,
To take full backup vis SSH,
Code: [Select]
/script/backup --class=client --name=admin

To restore:
Code: [Select]
/script/restore --restore --accounts=all <backup-file-path>
To list the contents of a backup file.
Code: [Select]
/script/restore --list <backup-file-path>
To restore only certain domains/clients
Code: [Select]
cd /usr/local/lxlabs/kloxo/httpdocs/ lphp.exe ../bin/common/restore.php --restore --accounts=domain:domain.com,client:clientname <backup-file-path>
Source: old thread at Lx-Center.
Quote
http://forum.lxcenter.org/index.php?t=msg&th=11723&start=0&

Questions:
1. How do I download the backup file into hard drive?
2. How to upload into new server?
3. What commands to be executed?

Update: In the old VPS server.
Backup has been saved in /home/kloxo/client/admin/__backup/kloxo-scheduled

Please advice.
Thank you
Title: Re: Backup And Restore KloxoMr Through SSH
Post by: henry on 2014-02-14, 03:58:14
The file is in my old VPS server.
Code: [Select]
[root@hostname ~]# cd /home/kloxo/client/admin/__backup/
[root@hostname __backup]# dir
kloxo-scheduled-6.5-admin-2014-Feb-13-1392313369.tgz

So, how do I download/upload this file to new VPS server?
Title: Re: Backup And Restore KloxoMr Through SSH
Post by: henry on 2014-02-19, 04:54:59
Update info:

Useful ref:
download file via putty
http://www.youtube.com/watch?v=rQBnxuKXeEk (http://www.youtube.com/watch?v=rQBnxuKXeEk)

Feedback:
Unable to use sftp
(http://unmanagedvps.freeserver.me/images/backuphome/SFTP.png)