Langsung ke konten utama

Terminal Command For Move, Delete, Zip and Unzip, Download on VPS

Terminal Command For Move, Delete, Zip and Unzip, Download on VPS

terlebih dahulu instal unzip pada vps:

yum install zip

lalu Anda sudah bisa zip file dengan perintah:


zip -r wp-content.zip wp-content
(jika Anda ingin mengkompress folder wp-content

Terminal Command For Move, Delete, Zip and Unzip, Download on VPS

cara backup database mysql command:

Terlebih dahulu instal dulu mysql dengan perintah: yum install mysql 
Lalu Anda bisa backup database dengan Perintah di terminal:
$ mysqldump -u username -p databasename > backup.sql
Jika mysqldump diatas tidak bisa maka gunakan perintah dibawah ini:
 /usr/local/apps/mysql/bin/mysqldump --opt -u username -p databasename > backup.sql

Anda bisa kirim file tersebut ke server lain dengan perintah
scp wp-content1.zip IP:/home/runcloud/webapps/websitekita/
  • Log in to your server with SSH as root.
  • Navigate to the directory where there are the files to be transferred, using cd command:
cd /path/to/the/directory/
  • Type the following command (make sure you replace the IP address and the file name):
scp file.txt 10.10.10.10:/root/
In this example, 10.10.10.10 is the IP address of the destination server, and /root/ is the destination folder of file.txt.
  • You will be prompted to enter the root password of the remote server.

To copy a folder and its contents to another server, please use the following procedure:

If you need to copy a folder and its contents, you should use the -r (recursive) option with the command like this:
scp -r foldername 10.10.10.10:/root/
For more information on how to use the scp command, please consult this link:
-----------
hapus file folder wp-content dengan perintah: rm -rf wp-content
rm : delete a file
rm filename.txt : deletes filename.txt, will more than likely ask if you really want to delete it
rm -f filename.txt : deletes filename.txt, will not ask for confirmation before deleting.
rm -rf tmp/ : recursively deletes the directory tmp, and all files in it, including subdirectories. hati-hati dalam menghapus file.

Restore database dengan perintah:
$ mysql -u username -p databasename < backup.sql
jika diminta password db, maka masukkan passwordnya lalu enter


Jika terjadi masalah saat upload plugin atau theme yang berpesan seperti ini:
Connection Information To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. webuzo

maka Anda buatlah akun ftp di endpanel webuzo dengan direktori sesuai dengan lokasi domain anda.
lalu masukkan host dengan nama domain dan user name serta password.

Move a file from one location to another using SSH mv command

mv /path/to/file /new/path/to/file

Move several files into a directory with SSH mv

mv -t directory fileToMove1 fileToMove2

Renaming a file with the mv command

Moving a file in the same directory with a different name will simply rename it
mv oldFileName newFileName

Komentar

Postingan populer dari blog ini

Cara Backup Otomatis Google Sheet

Google Sheet sekarang sudah sangat populer karena layanan persis microsoft Excel dan bisa dikerjakan online, hebatnya lagi layanan ini gratis, meskipun gratis google sheet bisa menjadi sangat berguna bagi Anda yang bekerja tim online seperti toko online, akuntan, akademisi dan bahkan mahasiswa sehingga kehilangan data mungkin bisa terjadi karena salah pencet oleh salah satu tim Anda yang terhubung bersama didalam satu file spreatsheet. Untuk berjaga-jaga atas kemungkinan kehilangan data, ada baiknya kita backup file google sheet secara berkala sehingga jika terjadi kehilangan data kita bisa melihat kembali pada file yang sudah kita cadangkan. Ada 3 tahap mudah melakukan backup data file google sheet kita diantaranya adalah: 1. Persiapkan File Google Sheet yang mau di backup 2. Buka google drive lalu buat satu folder 3. Masukkan script backup di script editor pada file google sheet Berikut ini tahap demi tahap melakukan backup otomatis google sheet: 1. File Google Sheet Goo

3 Cara Migrasi dari Blogger ke Wordpress

Blogger merupakan layanan blog gratis yang bisa Anda gunakan untuk mempublikasikan artikel atau tulisan Anda, baik untuk sekedar hobi maupun tujuan komersial seperti internet marketing, begitu juga dengan wordpress namun wordpres tidak menyediakan layanan pemasangan iklan kecuali kita menggunakan hosting sendiri dan domain sendiri. Mengapa Migrasi dari Blogger ke Wordpress? Banyak alasan orang untuk migrasi ke wordpress, bisa jadi karena ingin fitur SEO yang lebih lengkap dan Template yang bermacam-macam, juga bisa karena hal lain. Namun bagaimana cara migrasi dari blogger ke wordpress tanpa hilang pengunjung blog yang sudah ada? Berikut saya ulas 3 cara mudah migrasi dari blogger ke wordpress. 1. Import Export Cara ini memang paling mudah digunakan yaitu dengan cara mengunduh file xml blogger yang ada pada dashboard blogger pada bagian setting. setelah dapat file blog xml tersebut Anda harus convert ke vile xml versi wordpress menggunakan tool online blogger2wordpress (htt

Cara Install Wordpress di RunCloud + Vultr Website jadi Lebih Cepat

Menggunakan hosting cpanel untuk install wordpress sudah biasa dan sering kali website lambat di akses oleh user sehingga perlu cara lain agar lebih cepat, salah satunya dengan menggunkan vps, kami sudah coba beberapa vps mulai dari Digital Ocean, Google Cloud, NameCheap, Ifashnet, namun tetap juga masih lambat, ternyata bukan hanya karena vps itu yg kurang cepat namun perlu enggine yang mendukung agar kinerja vps lebih cepat, dalam hal ini adalah RunCloud. Dapatkan Gratis 5 hari RunCloud melaui link ini:  https://runcloud.io/r/kjvYNmvBWNGm Kami menggunakan runcloud agar koneksi vps lebih cepat, karena enggine bekerja di cloud sementara vps hanya space file saja, sementara database diproses di runcloud, sebagai ilustrasi silahkan lihat gambar dibawah ini: Sekarang kita tinggal pilih VPS mana yang terbaik agar performa website kita lebih mantab, berdasarkan hasil review beberapa teman dan kami sendiri sudah mencoba bahwa vps Vultr lebih cepat dan lebih murah ketimbang vps ya