Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 23:58:29

Author Topic: Membackup hanya 1 klien  (Read 3634 times)

0 Members and 1 Guest are viewing this topic.

Offline noob

  • Valuable Member
  • *
  • Posts: 98
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • KombatHost
Membackup hanya 1 klien
« on: 2015-10-24, 08:47:59 »
Halo semua

biasanya jika saya membackup lewat ssh, saya melakukan backup all dengan fungsi:
sh /script/backup --class=client --name=admin

nah, memang bisa merestore 1 klien di bawah dengan fungsi:
sh /script/restore

yang saya ingin tanyakan:
bisakah saya hanya membackup 1 klien saja?
sudah dicoba:
sh /script/backup --class=client --name=<namaclient>

memang bisa dibackup, cuma permasalahannya saat restore bagaimana ya?

sudah dicoba script: sh /script/restore selalu gagal, pesannya:
Restore Failed. Reason: objectclassname_does_not_match: : client-<namaclient> - client-admin

apakah memang ada fungsi khusus untuk merestore jika backup hanya client?
saya sudah gugling, cuma mentok.

terima kasih
http://kombathost.com | Your ultimate webhosting

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: Membackup hanya 1 klien
« Reply #1 on: 2015-10-24, 14:21:36 »
kalo lewat panel kloxo-mr bagaimana ?
easy, secure and speed up web panel ===> Kloxo-MR

Offline noob

  • Valuable Member
  • *
  • Posts: 98
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • KombatHost
Re: Membackup hanya 1 klien
« Reply #2 on: 2015-10-24, 15:52:31 »
kalo lewat panel kloxo-mr bagaimana ?

kalo restore lewat panel klien terbaca, cuma pas diklik ada pesannya: "program_interrupted" :-(

btw, ini dengan tujuan mau mindahin klien ya, jadi dari 1 VPS ke VPS lainnya.
http://kombathost.com | Your ultimate webhosting

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Membackup hanya 1 klien
« Reply #3 on: 2015-10-25, 10:55:00 »
Warning 'program_interrupted' tidak berarti terjadi error pada proses restore. Memang proses restore memerlukan waktu yang lama (tergantung besarnya data yang diproses).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline noob

  • Valuable Member
  • *
  • Posts: 98
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • KombatHost
Re: Membackup hanya 1 klien
« Reply #4 on: 2015-11-09, 18:18:31 »
akhirnya bisa pake SSH.

edit dulu file di: /usr/local/lxlabs/kloxo/httpdocs/lib/php/lxclass.php

cari tulisan:
Code: [Select]
if ($ob->getClName() !== $this->getClName()) {
throw new lxException($login->getThrow('objectclassname_does_not_match'), '', "{$ob->getClName()} - {$this->getClName()}");
}

ubah jadi:
Code: [Select]
if ($ob->getClName() !== $this->getClName()) {
//throw new lxException($login->getThrow('objectclassname_does_not_match'), '', "{$ob->getClName()} - {$this->getClName()}");
}

jika sudah, baru jalankan script restore:
Code: [Select]
sh /script/restore --restore --accounts=all <backup-file-path>

bisa restore cuma 1 client saja ;)
http://kombathost.com | Your ultimate webhosting

Offline nadiesabenada

  • Junior Member
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
    • videos beeg
Re: Membackup hanya 1 klien
« Reply #5 on: 2015-11-19, 18:10:39 »
Humm great responses they helped me a lot :)
me gusta el azucar

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.042 seconds with 18 queries.

web stats analysis