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

Stop Deleting Backups in FTP

General questions about VestaCP
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
pipoy
Posts: 112
Joined: Mon Sep 11, 2017 8:02 am

Os: CentOS 6x
Web: apache
Stop Deleting Backups in FTP
  • Quote

Post by pipoy » Thu Mar 15, 2018 7:27 pm

Hi,

by default, vestacp backup 3 files locally and externally via FTP.
When the file exceeds, vestacp deletes the oldest one to give room for the new one.

I am subscribed to a shared hosting that provides more disk space.
The plan here is to retain significant amount of backups in that shared hosting and let my VPS with vestacp backup have a few.

However, with the condition of 31/31 backups, I just found out that even in FTP, the the oldest file also gets deleted.

I want to retain files in the shared hosting. And let the local ones get deleted. But that is not the case.

Is there a way to not let vestacp delete the files over ftp as well?



If not possible, is there a linux command where I can just FTP the backup files to that shared hosting via CRON?
And disable the ftp backup in vestacp
Top

rhyker2u
Posts: 86
Joined: Thu Jan 19, 2017 11:46 am
Contact:
Contact rhyker2u
Website

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: Stop Deleting Backups in FTP
  • Quote

Post by rhyker2u » Sat Mar 17, 2018 2:04 am

yes schedule a cronjob for a `mv` on your ftp server?
Top

pipoy
Posts: 112
Joined: Mon Sep 11, 2017 8:02 am

Os: CentOS 6x
Web: apache
Re: Stop Deleting Backups in FTP
  • Quote

Post by pipoy » Sat Mar 17, 2018 3:33 am

rhyker2u wrote: ↑
Sat Mar 17, 2018 2:04 am
yes schedule a cronjob for a `mv` on your ftp server?
Thanks
I actually did this already yesterday.

Anyway.

My next backup process that I want to happen is to backup ONLY the database every hour.
And backup the whole user daily.


I want to choose a specific backup at a given time.

How do I do this?

Hourly backup for database only
Daily backup for whole user

Dont know how to work this with exclusion if it exclude a backup forever
Top

rhyker2u
Posts: 86
Joined: Thu Jan 19, 2017 11:46 am
Contact:
Contact rhyker2u
Website

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: Stop Deleting Backups in FTP
  • Quote

Post by rhyker2u » Sun Mar 18, 2018 12:46 pm

You can change the VestaCP backup frequency in your control panel. Click your user ('admin' for example) and press "CRON" in the top menu (not the black but white bar). Then find "sudo /usr/local/vesta/bin/v-backup-users", hover with the mouse of that entry and press the grey "edit" entry. And you simply can change the schedule to anything yuo like.

For a particular database backup you can create a new script and a cronjob for it. Script suggestion:

Code: Select all

sudo mysqldump -uroot -pPASSWORD admin_dbname > /root/admin_dbname.sql
You can find PASSWORD in /root/.my.cnf
Top


Post Reply
  • Print view

4 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