We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
v-backup-user: Not enough space on device Topic is solved
Re: v-backup-user: Not enough space on device
Well, the backups still reside in /backup, but while they're being generated, they are in /tmp. Probably to make it faster by putting it in memory assuming it is a tmpfs.alexcy wrote:It used to be /backup, why change that? Many people mount their /tmp as tmpfs as well.
Re: v-backup-user: Not enough space on device
That's a good thought; however I have a website which is 90 GB!
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: v-backup-user: Not enough space on device
/tmp is tmpfs residing on RAM... which can be a bit of problem for bigger sites. Previously, /backup was used to generate tmp files.
If the /tmp runs out, it may mean out of memory issues on smaller VPS.
@Imperio, @Dpecca, can you clarify a bit on this issue ?
If the /tmp runs out, it may mean out of memory issues on smaller VPS.
@Imperio, @Dpecca, can you clarify a bit on this issue ?
Re: v-backup-user: Not enough space on device
Maybe it would be a good idea to just test if there's room in tmpfs and then choose a file system based on that?mehargags wrote:/tmp is tmpfs residing on RAM... which can be a bit of problem for bigger sites. Previously, /backup was used to generate tmp files.
If the /tmp runs out, it may mean out of memory issues on smaller VPS.
@Imperio, @Dpecca, can you clarify a bit on this issue ?
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: v-backup-user: Not enough space on device
Good Idea, I second that!!steens wrote:Maybe it would be a good idea to just test if there's room in tmpfs and then choose a file system based on that?mehargags wrote:/tmp is tmpfs residing on RAM... which can be a bit of problem for bigger sites. Previously, /backup was used to generate tmp files.
If the /tmp runs out, it may mean out of memory issues on smaller VPS.
@Imperio, @Dpecca, can you clarify a bit on this issue ?
Re: v-backup-user: Not enough space on device
Is there any way to push for this change or similar? It's pretty urgent, as we have around 50 different sites which are currently not being backed up properly because of this.mehargags wrote: ↑Thu Jan 25, 2018 3:38 pmGood Idea, I second that!!steens wrote:Maybe it would be a good idea to just test if there's room in tmpfs and then choose a file system based on that?mehargags wrote:/tmp is tmpfs residing on RAM... which can be a bit of problem for bigger sites. Previously, /backup was used to generate tmp files.
If the /tmp runs out, it may mean out of memory issues on smaller VPS.
@Imperio, @Dpecca, can you clarify a bit on this issue ?
I imagine that the following would be a reasonable approximation to check if there's room:
Code: Select all
TMPAVAIL=$(df /tmp --output=avail | tail -n1)
BACKUPSIZE=$(du -s /home/$user | cut -n1)
if [ "$TMPAVAIL" -gt "$BACKUPSIZE" ]; then
tmpdir=$(mktemp -p /tmp -d)
else
tmpdir=$(mktemp -p /backup -d)
fi
Re: v-backup-user: Not enough space on device
Any news here? Or a possible workaround? I also am not able to make a backup because my websites are simply too big.
Regards,
Detlev
Regards,
Detlev
Re: v-backup-user: Not enough space on device
I created an issue on GitHub in the hopes that someone will do something.
https://github.com/serghey-rodin/vesta/issues/1494
Re: v-backup-user: Not enough space on device
First make Backup TMP location
Then
edit line tmpdir=$(mktemp -p /tmp -d)
-with-
tmpdir=$(mktemp -p /tmpHD -d)
save the file
run the backup process again from UI or
This will also fix scheduled backup cron processes
Code: Select all
cd /
sudo mkdir tmpHD
Code: Select all
sudo vi /usr/local/vesta/bin/v-backup-user
-with-
tmpdir=$(mktemp -p /tmpHD -d)
save the file
run the backup process again from UI or
Code: Select all
sudo /usr/local/vesta/bin/v-backup-users
This will also fix scheduled backup cron processes