MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: BigWeb.EU on 2017-08-05, 19:28:26

Title: Partial backup help
Post by: BigWeb.EU on 2017-08-05, 19:28:26
Hi Mustafa,

I have a server to move kloxo -> kloxo, however , theres ~50 sites and ~150GB in many many  files. All sites are under "admin" user.

Is there a way i can only backup client settings/domain names/Mysql etc , but not the actual files ? So that Koxo would recreate all the structure on new server and DB, and I would move the actual files (home/admin)  manually ?

Title: Re: Partial backup help
Post by: MRatWork on 2017-08-05, 19:37:30
Try using 'sh /script/backup'.
Title: Re: Partial backup help
Post by: BigWeb.EU on 2017-08-05, 20:14:23
I cant use nromal backup - it is GZIPING and theres too many files . Thats why i need only bakcup of everything except the files , i will move files over SSH directly manually . Possible ?
Title: Re: Partial backup help
Post by: MRatWork on 2017-08-06, 04:33:06
I cant use nromal backup - it is GZIPING and theres too many files . Thats why i need only bakcup of everything except the files , i will move files over SSH directly manually . Possible ?
Not possible at this moment.

But you can this simple trick:

1. Create new client with name 'dbclient' (or other name)
2. Change owner of database to this 'dbclient'
3. If want backup database, use 'sh /script/backup --class=client --name=dbclient'
4. If want backup other than database, use 'sh /script/backup --class=client --name=client1' (change client1 to real client except 'dbclient')
Title: Re: Partial backup help
Post by: BigWeb.EU on 2017-08-07, 20:08:04
Nice approach, will probably use for other tasks.

At the moment worked out this way :

1. copy whole mysql directory from old to new host (made sure all passwords are same for both old and new hosts)
2. ran upcp / cleanup - this broght all DBs/scheudled takss/etc in kloxo , and recreated direcotries
3. copied directories manually and extracted in /home.

All is working