This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Best way to do a VPS Backup (Ubuntu)
#11
RE: Best way to do a VPS Backup (Ubuntu)
DNS resolution is different!

You will need to update dns records manually or hack the DB to update all the fields.

Your question was over apache binding and I replied apache is OK.

My advice as you want to change ip's, that means if your sentora as dns server, DNS server own ip will change and that will bring a lot of issues. Better you use cloudfare or registrar DNS.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#12
RE: Best way to do a VPS Backup (Ubuntu)
For reference here is what I'm backing up currently.

First I do a tar.gz of some folders to a backup folder located inside the /home/bkpusr/ user directory:
Code:
tar -czPf /home/bkpusr/backups/etc_apache2.tar.gz /etc/apache2
tar -czPf /home/bkpusr/backups/etc_bind.tar.gz /etc/bind
tar -czPf /home/bkpusr/backups/etc_dovecot.tar.gz /etc/dovecot
tar -czPf /home/bkpusr/backups/etc_mysql.tar.gz /etc/mysql
tar -czPf /home/bkpusr/backups/etc_postfix.tar.gz /etc/postfix
tar -czPf /home/bkpusr/backups/etc_sentora.tar.gz /etc/sentora
tar -czPf /home/bkpusr/backups/etc_ssh.tar.gz /etc/ssh

tar -czPf /home/bkpusr/backups/lib_ufw.tar.gz /lib/ufw

tar -czPf /home/bkpusr/backups/root.tar.gz /home/bkpusr --exclude='/home/bkpusr/backups'
tar -czPf /home/bkpusr/backups/var_sentora.tar.gz /var/sentora

After this I rsync the /home/bkpusr/ directory to another server, keeping the version control on that server.
This is using SSH and a Task Scheduler (yes archaic I know, but works).


Do you have any tips to improve this?
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#13
RE: Best way to do a VPS Backup (Ubuntu)
you need to add /var/spool/cron

Take care for email backups would be complicated & /etc/php.ini there is some files in /etc always ;-).

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by: apinto
#14
RE: Best way to do a VPS Backup (Ubuntu)
Thank you for the /var/spool/cron & /etc/php.ini tips!
What you mean with "there is some files in /etc always? (sorry for not understanding it).

About the emails, I just want to backup them because in a critical failure were no recovery is possible I would still have the emails that might be important to clients. Is this still a bad idea?

Thank you Smile
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#15
RE: Best way to do a VPS Backup (Ubuntu)
some conf files are in /etc like php.ini like my.cnf (mysql too)
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#16
RE: Best way to do a VPS Backup (Ubuntu)
I'll look into it!
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#17
RE: Best way to do a VPS Backup (Ubuntu)
apinto, would you consider releasing your scripts as a 'backup' module towards the project?
I would not mind testing it, and adding any modifications back into the codebase.
Reply
Thanks given by:
#18
RE: Best way to do a VPS Backup (Ubuntu)
I can certainly add that to my side project list.
Let me get my head around how to develop a Sentora module.
Thanks.
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#19
RE: Best way to do a VPS Backup (Ubuntu)
(03-31-2015, 11:24 AM)apinto Wrote: I can certainly add that to my side project list.
Let me get my head around how to develop a Sentora module.
Thanks.

I would also be up for testing this on my server if you want some testers. 

Am not a massive linux user but i am happy to help out as much as possible.

Looking for a backup solutions for sentora as i only have 1 vds with it running at the moment and if that was to go down i would be in trouble with a few clients,.

Thanks
mason
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
OS - Ubuntu 18.04 or Centos 8 Qrash 1 5 ,333 01-18-2021, 07:48 PM
Last Post: Jettaman
Old issue on Daily Backup iraqiboy90 24 120 ,496 12-26-2020, 12:48 PM
Last Post: conglynina
Ubuntu 18.04 vaxition 1 4 ,797 08-06-2020, 11:03 AM
Last Post: Jettaman

Forum Jump:


Users browsing this thread: 4 Guest(s)