Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta CLI
  • Search

v-backup-user: Not enough space on device Topic is solved

Questions regarding the Command Line Interface
CLI
Post Reply
  • Print view
Advanced search
22 posts
  • Previous
  • 1
  • 2
  • 3
  • Next
steens
Posts: 8
Joined: Thu Jan 18, 2018 8:28 am

Os: Debian 8x
Web: apache + nginx
Re: v-backup-user: Not enough space on device
  • Quote

Post by steens » Tue Jan 23, 2018 4:42 pm

alexcy wrote:It used to be /backup, why change that? Many people mount their /tmp as tmpfs as well.
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.
Top

alexcy
Posts: 256
Joined: Sun Jun 01, 2014 11:24 pm
Contact:
Contact alexcy
Website

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: v-backup-user: Not enough space on device
  • Quote

Post by alexcy » Tue Jan 23, 2018 5:09 pm

That's a good thought; however I have a website which is 90 GB!
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: v-backup-user: Not enough space on device
  • Quote

Post by mehargags » Wed Jan 24, 2018 6:55 am

/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 ?
Top

steens
Posts: 8
Joined: Thu Jan 18, 2018 8:28 am

Os: Debian 8x
Web: apache + nginx
Re: v-backup-user: Not enough space on device
  • Quote

Post by steens » Thu Jan 25, 2018 3:23 pm

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 ?
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?
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: v-backup-user: Not enough space on device
  • Quote

Post by mehargags » Thu Jan 25, 2018 3:38 pm

steens wrote:
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 ?
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?
Good Idea, I second that!!
Top

steens
Posts: 8
Joined: Thu Jan 18, 2018 8:28 am

Os: Debian 8x
Web: apache + nginx
Re: v-backup-user: Not enough space on device
  • Quote

Post by steens » Tue Feb 13, 2018 7:45 pm

mehargags wrote: ↑
Thu Jan 25, 2018 3:38 pm
steens wrote:
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 ?
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?
Good Idea, I second that!!
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.

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
Top

dfrye
Posts: 1
Joined: Wed Feb 14, 2018 12:09 am

Os: Debian 7x
Web: apache + nginx
Re: v-backup-user: Not enough space on device
  • Quote

Post by dfrye » Wed Feb 14, 2018 12:12 am

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
Top

steens
Posts: 8
Joined: Thu Jan 18, 2018 8:28 am

Os: Debian 8x
Web: apache + nginx
Re: v-backup-user: Not enough space on device
  • Quote

Post by steens » Thu Feb 22, 2018 12:16 pm

dfrye wrote: ↑
Wed Feb 14, 2018 12:12 am
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
I created an issue on GitHub in the hopes that someone will do something.
https://github.com/serghey-rodin/vesta/issues/1494
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: v-backup-user: Not enough space on device
  • Quote

Post by skurudo » Wed Feb 28, 2018 12:18 pm

steens wrote: ↑
Thu Feb 22, 2018 12:16 pm
I created an issue on GitHub in the hopes that someone will do something.
In the next release this problem will be fixed.
Top

bestamit
Posts: 1
Joined: Fri Mar 02, 2018 2:48 am

Os: CentOS 6x
Web: apache + nginx
Re: v-backup-user: Not enough space on device
  • Quote

Post by bestamit » Fri Mar 02, 2018 2:52 am

First make Backup TMP location

Code: Select all

cd /
sudo mkdir tmpHD
Then

Code: Select all

sudo vi /usr/local/vesta/bin/v-backup-user 
edit line tmpdir=$(mktemp -p /tmp -d)
-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
Top


Post Reply
  • Print view

22 posts
  • Previous
  • 1
  • 2
  • 3
  • Next

Return to “CLI”



  • 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