dapurhosting.com Blog for Tech

August 22, 2017

Rsync with a non-standard ssh port

Filed under: Server — dh @ 9:45 am

Rsync file dari remote server ke lokal

rsync -azP -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/

Rsync file dari lokal ke remote server

rsync -azP -e "ssh -p $portNumber" /local/path/ user@remoteip:/path/to/files/

Rsync email cPanel

rsync -ahzP --exclude '*dovecot*' --exclude 'maildirsize' -e "ssh -p $SSHPORT" /home/USERCP/mail/ root@DESTINATIONSERVER:/home/USERCP/mail/

August 15, 2017

Backup Tar File Terbaru

Filed under: Server — dh @ 7:49 pm

Backup Tar file terbaru (2 hari lalu)

tar -cf file.tar /home/usercp/ --newer-mtime '2 days ago'

August 11, 2017

Hapus File Size 0

Filed under: Server — dh @ 2:52 am


find . -size 0c -delete

August 7, 2017

Bad Bot

Filed under: Server — dh @ 4:18 am

robots.txt

# Begin block Bad-Robots from robots.txt
User-agent: asterias
Disallow:/
User-agent: BackDoorBot/1.0
Disallow:/
User-agent: Black Hole
Disallow:/
User-agent: BlowFish/1.0
Disallow:/
User-agent: BotALot
Disallow:/
User-agent: BuiltBotTough
Disallow:/
User-agent: Bullseye/1.0
Disallow:/
User-agent: BunnySlippers
Disallow:/
User-agent: Cegbfeieh
Disallow:/
User-agent: CheeseBot
Disallow:/
User-agent: CherryPicker
Disallow:/
User-agent: CherryPickerElite/1.0
Disallow:/
User-agent: CherryPickerSE/1.0
Disallow:/
User-agent: CopyRightCheck
Disallow:/
User-agent: cosmos
Disallow:/
User-agent: Crescent
Disallow:/
User-agent: Crescent Internet ToolPak HTTP OLE Control v.1.0
Disallow:/
User-agent: DittoSpyder
Disallow:/
User-agent: EmailCollector
Disallow:/
User-agent: EmailSiphon
Disallow:/
User-agent: EmailWolf
Disallow:/
User-agent: EroCrawler
Disallow:/
User-agent: ExtractorPro
Disallow:/
User-agent: Foobot
Disallow:/
User-agent: Harvest/1.5
Disallow:/
User-agent: hloader
Disallow:/
User-agent: httplib
Disallow:/
User-agent: humanlinks
Disallow:/
User-agent: ia_archiver
Disallow:/
User-agent: InfoNaviRobot
Disallow:/
User-agent: JennyBot
Disallow:/
User-agent: Kenjin Spider
Disallow:/
User-agent: Keyword Density/0.9
Disallow:/
User-agent: LexiBot
Disallow:/
User-agent: libWeb/clsHTTP
Disallow:/
User-agent: LinkextractorPro
Disallow:/
User-agent: LinkScan/8.1a Unix
Disallow:/
User-agent: LinkWalker
Disallow:/
User-agent: LNSpiderguy
Disallow:/
User-agent: lwp-trivial
Disallow:/
User-agent: lwp-trivial/1.34
Disallow:/
User-agent: Mata Hari
Disallow:/
User-agent: Microsoft URL Control - 5.01.4511
Disallow:/
User-agent: Microsoft URL Control - 6.00.8169
Disallow:/
User-agent: MIIxpc
Disallow:/
User-agent: MIIxpc/4.2
Disallow:/
User-agent: Mister PiX
Disallow:/
User-agent: moget
Disallow:/
User-agent: moget/2.1
Disallow:/
User-agent: mozilla/4
Disallow:/
User-agent: Mozilla/4.0 (compatible; BullsEye; Windows 95)
Disallow:/
User-agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows 95)
Disallow:/
User-agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows 98)
Disallow:/
User-agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows NT)
Disallow:/
User-agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows XP)
Disallow:/
User-agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows 2000)
Disallow:/
User-agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows ME)
Disallow:/
User-agent: mozilla/5
Disallow:/
User-agent: NetAnts
Disallow:/
User-agent: NICErsPRO
Disallow:/
User-agent: Offline Explorer
Disallow:/
User-agent: Openfind
Disallow:/
User-agent: Openfind data gathere
Disallow:/
User-agent: ProPowerBot/2.14
Disallow:/
User-agent: ProWebWalker
Disallow:/
User-agent: QueryN Metasearch
Disallow:/
User-agent: RepoMonkey
Disallow:/
User-agent: RepoMonkey Bait & Tackle/v1.01
Disallow:/
User-agent: RMA
Disallow:/
User-agent: SiteSnagger
Disallow:/
User-agent: SpankBot
Disallow:/
User-agent: spanner
Disallow:/
User-agent: suzuran
Disallow:/
User-agent: Szukacz/1.4
Disallow:/
User-agent: Teleport
Disallow:/
User-agent: TeleportPro
Disallow:/
User-agent: Telesoft
Disallow:/
User-agent: The Intraformant
Disallow:/
User-agent: TheNomad
Disallow:/
User-agent: TightTwatBot
Disallow:/
User-agent: Titan
Disallow:/
User-agent: toCrawl/UrlDispatcher
Disallow:/
User-agent: True_Robot
Disallow:/
User-agent: True_Robot/1.0
Disallow:/
User-agent: turingos
Disallow:/
User-agent: URLy Warning
Disallow:/
User-agent: VCI
Disallow:/
User-agent: VCI WebViewer VCI WebViewer Win32
Disallow:/
User-agent: Web Image Collector
Disallow:/
User-agent: WebAuto
Disallow:/
User-agent: WebBandit
Disallow:/
User-agent: WebBandit/3.50
Disallow:/
User-agent: WebCopier
Disallow:/
User-agent: WebEnhancer
Disallow:/
User-agent: WebmasterWorldForumBot
Disallow:/
User-agent: WebSauger
Disallow:/
User-agent: Website Quester
Disallow:/
User-agent: Webster Pro
Disallow:/
User-agent: WebStripper
Disallow:/
User-agent: WebZip
Disallow:/
User-agent: WebZip/4.0
Disallow:/
User-agent: Wget
Disallow:/
User-agent: Wget/1.5.3
Disallow:/
User-agent: Wget/1.6
Disallow:/
User-agent: WWW-Collector-E
Disallow:/
User-agent: Xenu's
Disallow:/
User-agent: Xenu's Link Sleuth 1.1c
Disallow:/
User-agent: Zeus
Disallow:/
User-agent: Zeus 32297 Webster Pro V2.9 Win32
Disallow:/

# SEO-related bots
User-agent: rogerbot
Disallow:/
User-agent: mj12bot
Disallow:/
User-agent: dotbot
Disallow:/
User-agent: ahrefsbot
Disallow:/

#country wise
User-agent: Yandex
Disallow:/
User-agent: Baidu
Disallow:/

Backup Zimbra

Filed under: Email — dh @ 3:15 am

Beberapa metode backup zimbra

  • backup image (VPS)
  • backup folder /opt (scripting, rsync -avP /opt destination)
  • backup mailbox per user (scripting)
  • otomatis backup (network edition / third party zextras)

Item yang harus dibackup di Zimbra:

  • account dan password
  • alias
  • resource
  • distribution list
  • domain
  • preferance
  • data mailbox

Cara backup restore Zimbra dengan Zextras

  1. di zimbra lama, export dengan zextras migration tool (gratis)
  2. di zimbra baru, import dengan zextras suite (trial 30 hari)

Note: pastikan export sudah selesai, baru install zextras suite (faktor trial) . Proses export memakan waktu sangat lama data 1TB membutuhkan 15 hari.  Setelah diimport, setiap akun email dapat export email dari tanggal migrasi (yang tertinggal di server lama) dan diimport ke server zimbra baru.

Supaya Bisa Terima Email dari Internet

Filed under: Email — dh @ 3:13 am
  1. Domain yang digunakan harus ada/aktif/asli
  2. IP publik statik
  3. DNS management (konfigurasi MX record dan A record)
  4. port 25 incoming

Alasan Menggunakan Remote SMTP

Filed under: Email — dh @ 3:12 am
  1. IP terblacklist
  2. email masuk junk/spam folder
  3. IP publik dinamik/tidak punya IP

Langkah Troubleshooting Mail Server

Filed under: Email — dh @ 3:11 am
  1. ping IP 8.8.8.8
  2. ping nama domain (google.com)
  3. open port 25 out, teset dengan telnet mx record gmail (gmail-smtp-in.l.google.com(
  4. open port 25 out (cek firewall server dan router)
  5. request open port 25 di ISP

Powered by WordPress