Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Editing v-backup-user

General questions about VestaCP
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
ozgurerdogan
Posts: 27
Joined: Thu Aug 13, 2015 3:53 pm

Os: CentOS 5x
Web: apache
Editing v-backup-user
  • Quote

Post by ozgurerdogan » Mon Nov 16, 2020 8:13 pm

I want to exlude mail data (actual mails in webmail) when doing all user backup. Because it take much storage and also client using their mail with pop access so store their mail in their outlook. But want to backup mail account along with password for restore.

Can I edit v-backup-user and comment out:

Code: Select all

 # Backup emails
        cd $HOMEDIR/$user/mail/$domain_idn
        accounts=()
        for account in $(ls); do
            exclusion=$(echo "$MAIL" |tr ',' '\n' |grep "$domain:")
            exclusion=$(echo "$exclusion" |tr ':' '\n' |grep "^$account$")

            # Checking exlusions
            if [ -z "$exclusion" ] && [[ "$MAIL_SYSTEM" =~ exim ]]; then
                accounts+=($account)
            else
                echo "$(date "+%F %T") excluding mail account $account" |\
                    tee -a $BACKUP/$user.log
            fi
        done

        # Compress archive
        if [ ${#accounts[@]} -gt 0 ]; then
            tar -cpf- ${accounts[@]} |gzip -$BACKUP_GZIP - > $tmpdir/mail/$domain/accounts.tar.gz
        fi
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: Editing v-backup-user
  • Quote

Post by grayfolk » Mon Nov 16, 2020 10:40 pm

Yes, you can.
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password