Recent Posts

Pages: [1] 2 3 ... 10
1
CentOS-WebPanel Bugs / Re: CPU 100% clamd
« Last post by venty on Today at 03:18:59 PM »
???
2
E-Mail / Re: SpamAssassin High CPU Usage
« Last post by venty on Today at 03:10:05 PM »
That definitely should be enough.
Usually clam has a problem with a single CPU and 1-2GB of RAM

High productivity has not disappeared for me?
3
Installation / Preview websites without DNS
« Last post by Namaste on Today at 03:03:26 PM »
FYI

You can view your websites before changing dns.

ipx.x.x.x/~username/domaindirectory

Works really well and lets you get the new site up before changing dns.
4
E-Mail / Re: Cant create new email address
« Last post by Namaste on Today at 12:03:20 PM »
Fixed in .1014
5
Backup / Re: Custom Backup
« Last post by cynique on Today at 10:55:00 AM »
Note:
Code: [Select]
rsync -a --linksAFAIK, -a (archive) implies -l (links). I'd be extremely careful when messing about with symlinks, though and just be content with -a. Generally speaking, don't use the --links, -l or -L options.
 
6
Backup / Re: Custom Backup
« Last post by cynique on Today at 09:02:25 AM »
@Teo
Good point. The advantage of sharing the script. :)
I've also made some recent tweaks but want to go a bit further with them.
7
Backup / Re: Custom Backup
« Last post by Teo on Today at 08:26:10 AM »
Thanks for sharing this script.
What about moving the “if backup_exclude.conf” before to speedup the process and limiting the disk usage?
(the backup_exclude.conf lines have to be relative to user home, so if I need to exclude the folder /home/myuser/public_html/var/cache, I’ll write public_html/var/cache/)
Code: [Select]
#!/usr/bin/bash
tmp_dir=/home/tmp_bak/
backup_dir=/backup/custom/
retention=2
# -------------------
mysql root_cwp -B -N -s -e "SELECT username,domain FROM user WHERE backup='on'" | while read -r username domain
do

echo Custom backup task starting for $username at $domain
mkdir -p ${tmp_dir}${username}/home_dir
echo Copying home directory
if [ -f /home/${username}/backup_exclude.conf ]; then
ionice -c 3 nice -n +19 rsync -a --links --exclude-from=/home/${username}/backup_exclude.conf /home/${username}/ ${tmp_dir}${username}/home_dir
else
ionice -c 3 nice -n +19 rsync -a --links /home/${username}/ ${tmp_dir}${username}/home_dir
fi
echo Backing up databases
mkdir -p ${tmp_dir}${username}/mysql/
mysql --defaults-extra-file=/root/.my.cnf -e "show databases LIKE '${username}%';" | grep -v Database | while read databasename
 do
     echo Dumping $databasename
     mysqldump --defaults-extra-file=/root/.my.cnf "$databasename" > ${tmp_dir}${username}/mysql/"$databasename.sql" \
               2> ${tmp_dir}${username}/mysql/errors.txt

 done
if [ -d /var/vmail/${domain} ]; then
 mkdir -p ${tmp_dir}${username}/vmail/
 echo Copying email
 ionice -c 3 nice -n +19 cp -fR /var/vmail/${domain} ${tmp_dir}${username}/vmail/
fi
echo Consolidating files
ionice -c 3 nice -n +19 tar -cjf ${tmp_dir}${username}.tar.bz2 ${tmp_dir}${username}
mv ${tmp_dir}${username}.tar.bz2 ${backup_dir}${username}-$(date -d "today" +"%Y%m%d%H%M").tar.bz2
echo Cleaning up
/usr/bin/find ${backup_dir} -name "*.bz2" -mtime +${retention} -delete > /dev/null 2>&1
rm -Rf ${tmp_dir}${username}

done
echo Custom Backup Job Finished
8
Backup / Re: [Backup and NEW backup] what about ignoring symbolic links?
« Last post by Teo on Today at 08:17:43 AM »
Look at "Custom Backup" thread.
Thank you cynique, I’ve just seen your feedback  :)
9
Encountered this error when updating dovecot package

BELOW ARE THE ERRORS:
"dovecot.x86_64

error: %pre(dovecot-1:2.2.36-6.el7_8.1.x86_64) scriptlet failed, exit status 5
  Verifying  : 1:dovecot-2.2.36-6.el7_8.1.x86_64                            1/2
  Verifying  : 1:dovecot-2.2.36-6.el7.x86_64                                2/2

Failed:
  dovecot.x86_64 1:2.2.36-6.el7        dovecot.x86_64 1:2.2.36-6.el7_8.1       

Complete!"

10
Postfix / Re: Securing POSTFIX
« Last post by Namaste on September 30, 2020, 10:36:24 PM »
Hello Everyone,
Is the out of the box POSTFIX Configuration secure or are they any tweaks that can be made to secure it even further without breaking it? Does anyone have any secure example configurations they can share?

Thanks

Bossmanuk

Google it.  There are lots of tweaks to make.
Pages: [1] 2 3 ... 10