How can domain owner to restore backups made by root?

11 posts / 0 new
Last post
#1 Sat, 01/12/2013 - 11:53
jackbit

How can domain owner to restore backups made by root?

Hi to all,

I cannot find a way to permit the domain owners to restore backups made by root.

I have scheduled backup with root to use an remote server through SSH but connecting with domain owner I cannot browse "Backup Logs".

Thanks a lot for any suggestions.

Sun, 01/13/2013 - 10:17
andreychek

Howdy,

I'm not aware of a way to do that... I believe a Virtual Server owner would only have the ability to restore a domain they have permission to access (ie, they'd need to have read access to the file)... which normally isn't the case for backups performed by the root user.

At one point Jamie had talked about implementing such a feature, but I don't see it in there yet.

-Eric

Mon, 01/14/2013 - 16:57
jackbit

Hi Eric, thanks for your response.

I asked this because I read a post from Joe that said: "A new option on the Virtualmin Configuration page allows domain owners to restore backups made by root for their own domains.

Because root backups are considered secure, the domain owner can restore all settings, including the Apache and DNS configuration." (http://www.virtualmin.com/node/21136)

Anyway, if this feature isn't still available, is it possible automatically create a backup schedule using API scripting after the domain creation (avoiding manual backup scheduling creation from gui)?

Thanks a lot.

Tue, 01/15/2013 - 22:47
tpnsolutions
tpnsolutions's picture

Hi,

You're right, the feature does appear to have been made available a few versions ago.

If you'd like, I'd be happy to offer a "FREE" screen sharing session to make sure all the settings are setup correctly as there may be some extra steps to make this available.

Drop me an email to: pknowles@tpnsolutions.com if you'd like to setup a few moments to have me look over this for you.

-Peter

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Wed, 01/16/2013 - 08:31
andreychek

Maybe you should give me a screensharing session too in order to show me how to use that :-)

Where does a Virtual Server owner go in order to restore a domain that was backed up as part of a Scheduled Backup?

Is that part of Backup and Restore -> Restore backup?

-Eric

Wed, 01/16/2013 - 12:11 (Reply to #5)
tpnsolutions
tpnsolutions's picture

Eric,

Sure, I'd be happy to show you how this works :-)

We don't currently use the feature in our infrastructure, but it's not difficult to give you a demo even with my system design.

Fire me an email to pknowles@tpnsolutions.com to setup a demo time.

*** It is technically part of the "Backup and Restore" feature, but isn't necessarily obvious how to do, especially if as root user you store backups in a custom directory (as we do). ***

-Peter

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Wed, 01/16/2013 - 13:55
jackbit

Peter, Eric, thanks a lot for your help.

I'm thinking isn't so easy to organize an online "learning session" due to the different working hours.

My necessity is to create two scheduled backup jobs (one for a full backup and another for the incremental one) of all virtual servers giving the possibility to the virtual owner to launch restore without my intervention.

For this reason I thought that this feature could fit perfectly.

Please, could you just write down few words to explaining to me and to the other guys on forum how to use this great feature?

Thanks a lot!

Wed, 01/16/2013 - 14:39 (Reply to #7)
tpnsolutions
tpnsolutions's picture

Hi,

The reason why I would rather not explain in the forums directly is it highly depends on how you created, and where you stored the backups.

Restoring as a user only works if the backups are stored in the /home/user/virtualmin-backup folder.

There are workarounds, however it'd be easier to show you then try to explain here.

My schedule is pretty flexible, and given enough notice I'm available virtually 24/7 as I'm often up past my bedtime anyways working on my own infrastructure :-)

Just give me at least a couple hours notice, and I'll generally be able to make time available for a quick screen sharing session.

*** same goes for you Eric ***

-Peter

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Fri, 01/25/2013 - 13:37
jackbit

Hi, sorry for the long delay.

In the meanwhile I played a bit with the backups but the root backups aren't feasible for what I need.

I can copy the user's part of a root backup on /home/vhost/virtualmin-backup but the user cannot restore them using "Backup and Restore"->"Backup Logs" so I need to instruct them every time they need a restore.

Perhaps I'll create a full and incremental user backup every time I'll create a new vhost but this is an extra effort for me.

Would be really good if I could create a scheduled backup for server owner without using web gui but launching a script during the creation of website but I have to study another bit for this...

Thanks a lot for your suggestions.

Wed, 02/06/2013 - 10:10 (Reply to #9)
tpnsolutions
tpnsolutions's picture

Hi,

I'd be happy to setup a screen sharing session to assist you with setting up backups to accomplish what you're after. Just email me with you available time.

Best Regards,
Peter Knowles
TPN Solutions

E: pknowles@tpnsolutions.com
P: 604-782-9342
W: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Tue, 02/05/2013 - 09:37
cgdhosting

Sorry commented on wrong issue.

Topic locked