How To Mirror Local and Remote Directories on a VPS with lsyncd What is lsyncd? When managing a web server or an application, there are many situations that require synchronization between directories. While a number of tools can help you accomplish this, lsyncd is a strong candidate. This article will discuss how to configure lsyncd to mirror changes between directories on a single machine and how to mirror […]

Linux: Continuously synchronize files, one way Description Lsyncd watches a local directory trees event monitor interface (inotify or fsevents). It aggregates and combines events for a few seconds and then spawns one (or more) process(es) to synchronize the changes. By default this is rsync. Lsyncd is thus a light-weight live mirror solution that is comparatively easy to install not […]

Backup with duplicity What is it? Duplicity backs directories by producing encrypted tar-format volumes and uploading them to a remote or local file server. Because duplicity uses librsync, the incremental archives are space efficient and only record the parts of files that have changed since the last backup. Because duplicity uses GnuPG to encrypt and/or sign these archives, they will […]

Robocopy backup/archive data

Robocopy backup/archive data – User can run. We could copy below code to a runRoboCopy.cmd @echo off setlocal @Rem –>***CHANGME set dataSource=D: set backupDestination=D:\BACKUP @Rem <–CHANGME*** set scriptPath=c:\roboCopy set logPath=c:\roboCopy\log set dateStamp=%DATE:~-4%-%DATE:~4,2%-%DATE:~7,2% if NOT EXIST C:\roboCopy\NUL goto CREATEDIR goto STARTBATCHNOW :CREATEDIR mkdir C:\roboCopy mkdir C:\roboCopy\log mkdir %dataSource%\TESTME mkdir %backupDestination% mkdir %backupDestination%\Archiver :STARTBATCHNOW @REM *** START: […]

Configure Exim4 to provide SMTP Relay service with SMTP Authentication and TLS enabled Prerequisites Box running Debian Squeeze or Debian variants Exim4 Package (apt-get install exim4) Internet Routable Public IP Address ( with reverse DNS Reconfiguring Exim4 Run the command as root, # dpkg-reconfigure exim4-config There are two useful scenarios while delivering mails. Smarthosts is safer option if your privoder has a SMTP server you can […]

How to enable manage sieve plugin on Roundcube VestaCP

asumsikan kita sudah menginstall VestaCP dengan baik di Centos. Konfig Sieve Install paket dovecot-pigeonhole: yum install dovecot-pigeonhole tambahkan protokol: # vim /etc/dovecot/dovecot.conf protocols = imap pop3 lmtp sieve listen = * base_dir = /var/run/dovecot/ !include conf.d/*.conf tambahkan auth-master ke dalam auth (file 10-master.conf): service auth { unix_listener auth-client { group = mail mode = 0660 […]

Roundcube Quota Dipslay – VestaCP To add quota display in RoundCube edit line: v-add-mail-account (57) & v-change-mail-account-quota (48) str=”$account:$md5:$user:mail::$HOMEDIR/$user::userdb_quota_rule=*:storage=${quota}M” This is to override quota_rule in Dovecot see: link in /etc/dovecot/dovecot.conf add: mail_plugins = $mail_plugins quota plugin { quota = maildir:User quota # makes it possible for user to clean INBOX after quota reached quota_rule2 = Trash:storage=+100M } In file: /etc/dovecot/conf.d/20-imap.conf uncomment and add: […]

Exim 4 and Policyd-weight This article describes the basic steps which are necessary to use the well known policyd-weightdaemon (originally written for Postfix) with Exim 4. I tested this setup with Exim 4.66 but it should work with any Exim version higher than 4.62. Warning/Disclaimer: This setup works for me[tm]. If it doesn’t work for you, you’re on your own. You should be […]

How To Convert Vmware VMDK Disk to Hyper-V VHD Step-1: Install Microsoft Virtual Machine Converter tool( Step-2: Open PowerShell command prompt with Open as administrator mode. Step-3: Run the following command to import necessary powershell commands Import-Module ‘c:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1’ Step-4:Run the following command to convert vmware vmdk to hyper-v vhd ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath ‘E:\vmware.vmdk’ -VhdType DynamicHardDisk -VhdFormat vhdx -destination c:\vm-vhd  

Email Domain Aliases with Exim 4 As I’ve noted before, I recently moved several of my sites to a server running VestaCP. One of the convenient features of Vesta is the ability to specify any number of domain aliases when setting up a new site. I’ve now learned, however, that Vesta only aliases these domains for web access, not for […]