What rights to give reseller accounts to be able to make backups

Hi,

One of our customers, who is working with a reseller account, wants to be able to backup all of his virtual servers. I therefore checked the box "Can backup virtual servers?". After that, the reseller can make a backup, but when executing it, it gives the following error (backup to FTP):

Error log: Creating backup for virtual server kostuum-verhuur.nl .. .. failed to create temporary backup directory /home/kostuum-verhuur/.backup : mkdir: cannot create directory /home/kostuum-verhuur/.backup': Permission denied Uploading archive to FTP server .. .. done Creating backup for virtual server goedemorgenontbijtservice.nl .. .. failed to create temporary backup directory /home/goedemorgenontbijtservice/.backup : mkdir: cannot create directory/home/goedemorgenontbijtservice/.backup': Permission denied Uploading archive to FTP server .. .. done Creating backup for virtual server champagne-ontbijt.com .. .. failed to create temporary backup directory /home/champagne-ontbijt/.backup : mkdir: cannot create directory /home/champagne-ontbijt/.backup': Permission denied Uploading archive to FTP server .. .. done Creating backup for virtual server rolfvanderhorst.nl .. .. failed to create temporary backup directory /home/rolfvanderhorst/.backup : mkdir: cannot create directory/home/rolfvanderhorst/.backup': Permission denied Uploading archive to FTP server .. .. done Creating backup for virtual server abrahamontbijt.nl .. .. failed to create temporary backup directory /home/abrahamontbijt/.backup : mkdir: cannot create directory

This with all the updates available applied?

Thanks!

Status: 
Closed (fixed)

Comments

Re-posting :

That sounds like a bug actually..

Does the directory /home/kostuum-verhuur/.backup already exist, and if so what is its ownership and permissions?

Hi,

The " .backup" dir doesn't exist?

Ok, in that case what is the ownership and permissions of the /home/kostuum-verhuur directory, as shown by :

ls -ld /home/kostuum-verhuur

[root@cvdhoene1 /]# \ls -lhd /home/kostuum-verhuur/ drwxr-x--- 11 kostuum-verhuur kostuum-verhuur 4.0K Jan 6 2010 /home/kostuum-verhuur/

Ok, I see the cause of this now .. it is actually a Virtualmin bug, which I will fix in version 3.80.

Let me know if you'd like a patch to get the fix sooner.

Hi Jamie,

When is the update due? I rather not update the code myself :)

Thanks,

Justin.

It will be 1-2 weeks. If you need a fix sooner, just edit the file /usr/libexec/webmin/virtual-server/backup.cgi and on line 172 change :

$cbmode >= 2

to :

$cbmode == 2

Hi Jamie,

Thanks, de fix worked :)

Automatically closed -- issue fixed for 2 weeks with no activity.