We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Changing backup location
Changing backup location
Hi,
I tried to change backup location of vestacp, to my external hard drive,
I followed this topic : viewtopic.php?t=3842
but now I get this error: Can't create tmp dir
please advise me to fix the problem
thanks
I tried to change backup location of vestacp, to my external hard drive,
I followed this topic : viewtopic.php?t=3842
but now I get this error: Can't create tmp dir
please advise me to fix the problem
thanks
Re: Changing backup location
btw I really think there should be a configuration option for backup, either visually implemented in VestaCP panel, or something that we could manually configure with shell access.
I think the following options would be great:
backup location,
number of backups (currently I see that there only three backups is stored in my server)
different backup scenarios (one database only backup each day, one backup for whole system each week, etc)
I think the following options would be great:
backup location,
number of backups (currently I see that there only three backups is stored in my server)
different backup scenarios (one database only backup each day, one backup for whole system each week, etc)
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Changing backup location
why not create a cron job that "moves" backup set to your desired location. Much easier approach.!
Re: Changing backup location
I prefer to use a more kind of direct approach.
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Changing backup location
unless you really know all the bash scripting and system control, I'd not try to be invasive and "direct" when I have a safer, faster, better way out. Plus the changes you do in VestaCP Scripts may not survive an upgrade asking for the whole exercise again.Hnaseri wrote:I prefer to use a more kind of direct approach.
The best way would be to "move" your backup sets via cron job... Will not take more than 2 mins to setup
Re: Changing backup location
why did you raise such an old topic ...Hnaseri wrote:Hi,
I tried to change backup location of vestacp, to my external hard drive,
I followed this topic :
but now I get this error: Can't create tmp dir
please advise me to fix the problem
thanks
now everything is simple
only bug is not removed in Version: 0.9.8 sometimes the script is looking in /backup
With the release of a new version will fix it...
Code: Select all
ln -s /hdd/backup/drive /backup
Re: Changing backup location
thank you very much. indeed it is simple. However, what about different scenarios for backup?Mr.Erbutw wrote: now everything is simple
for example , I want a daily backup for databases , and a weekly backup for entire system.
Re: Changing backup location
Yes, you can add in exceptions.Hnaseri wrote:thank you very much. indeed it is simple. However, what about different scenarios for backup?Mr.Erbutw wrote: now everything is simple
for example , I want a daily backup for databases , and a weekly backup for entire system.
if you do not want to do this backup
Re: Changing backup location
I was aware of this. the problem is, there is only one backup cron.Mr.Erbutw wrote: Yes, you can add in exceptions.
I want something like two cronjobs, one for database that runs daily, and the other for the entire server that runs weekly.
Re: Changing backup location
You can create another cron value, and put it in /usr/local/vesta/bin/
That's the main value
can like this to create the same value, for example v-backup-users_1 and put it in to the main. and add in cron to run at specified time. Just remember that it needs fixing the parameter section "exclusions".
That's the main value
Code: Select all
sudo /usr/local/vesta/bin/v-backup-users