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

Ftp backup all accounts

General questions about VestaCP
Post Reply
  • Print view
Advanced search
17 posts
  • 1
  • 2
  • Next
n1kko
Posts: 26
Joined: Mon Mar 31, 2014 9:43 am

Ftp backup all accounts
  • Quote

Post by n1kko » Wed Apr 02, 2014 11:14 am

Is it possible to have all domains backup to an ftp server everyday automatically?
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Ftp backup all accounts
  • Quote

Post by imperio » Wed Apr 02, 2014 11:25 am

Yes. this feature is implemented in the panel
Top

n1kko
Posts: 26
Joined: Mon Mar 31, 2014 9:43 am

Re: Ftp backup all accounts
  • Quote

Post by n1kko » Wed Apr 02, 2014 12:59 pm

Great thanks but is it possible to change the backup directory to another ftp server?
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Ftp backup all accounts
  • Quote

Post by imperio » Wed Apr 02, 2014 1:25 pm

You can create a new config file with name ftp.backup.conf
/usr/local/vesta/conf
file content

Code: Select all

HOST='ftphost_ip'
PORT='21'
USERNAME='backup-user'
PASSWORD='p4ssw0rd'
BPATH='/'
for example:
BPATH='/backup'

then you should change the vesta config file
/usr/local/vesta/conf/vesta.conf

Code: Select all

change BACKUP_SYSTEM='local'
for this BACKUP_SYSTEM='ftp'
or this if you want to create backups on local and ftp
BACKUP_SYSTEM='local,ftp'
Top

n1kko
Posts: 26
Joined: Mon Mar 31, 2014 9:43 am

Re: Ftp backup all accounts
  • Quote

Post by n1kko » Fri Apr 04, 2014 3:31 pm

Great thanks, how would I add a cron job for these backups to run each day?

Thanks for your help :D
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Ftp backup all accounts
  • Quote

Post by imperio » Fri Apr 04, 2014 3:52 pm

by default, backups are created 05:10 on server time
you can edit the cronjob command

Code: Select all

sudo /usr/local/vesta/bin/v-backup-users
Top

n1kko
Posts: 26
Joined: Mon Mar 31, 2014 9:43 am

Re: Ftp backup all accounts
  • Quote

Post by n1kko » Fri Apr 04, 2014 5:54 pm

Thanks, the problem I think I have is I have added a user then added the domain under that user, So on the main admin account it is only backing up the main admin account and not other domains under usernames.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Ftp backup all accounts
  • Quote

Post by imperio » Sat Apr 05, 2014 10:16 am

This command makes backups of all users
Top

n1kko
Posts: 26
Joined: Mon Mar 31, 2014 9:43 am

Re: Ftp backup all accounts
  • Quote

Post by n1kko » Sat Apr 05, 2014 10:26 am

I am using IP as ftp path so this worked for me by removing PORT='21'

Code: Select all

HOST='ftphost_ip'
USERNAME='backup-user'
PASSWORD='p4ssw0rd'
BPATH='/'
Top

lolbrol
Posts: 7
Joined: Wed Aug 06, 2014 9:01 pm

Re: Ftp backup all accounts
  • Quote

Post by lolbrol » Wed Aug 06, 2014 11:49 pm

imperio wrote:You can create a new config file with name ftp.backup.conf
/usr/local/vesta/conf
file content

Code: Select all

HOST='ftphost_ip'
PORT='21'
USERNAME='backup-user'
PASSWORD='p4ssw0rd'
BPATH='/'
for example:
BPATH='/backup'

then you should change the vesta config file
/usr/local/vesta/conf/vesta.conf

Code: Select all

change BACKUP_SYSTEM='local'
for this BACKUP_SYSTEM='ftp'
or this if you want to create backups on local and ftp
BACKUP_SYSTEM='local,ftp'
I did this, but the backup doesn't seem to work.
I also tried : v-add-backup-ftp-host ftp.adrive.com contact---domain.com pasword
The --- recplaces the @.
Or do I really need a IP instead of a domain?
Top


Post Reply
  • Print view

17 posts
  • 1
  • 2
  • Next

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