Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 17th September 2009, 00:18
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 13 Times in 11 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Franz,
How's the best way to restore the files (if needed)?
Reply With Quote
Sponsored Links
  #12  
Old 17th September 2009, 20:53
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 13 Times in 11 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

I think this doesn't work on ubuntu.

I get this error:
Quote:
mail: command not found
Quote:
mail -s"Daily ISPConfig3 backup `date +'%F'`" "$email" < $zamail
This means the script will start at 2.02am every day right?
Quote:
2 2 * * * /scripts/backupscript.sh
Cheers,
Rudolf.

Last edited by skoena; 17th September 2009 at 21:11.
Reply With Quote
  #13  
Old 17th September 2009, 22:07
Franz Franz is offline
Senior Member
 
Join Date: Jul 2009
Location: Cakovec
Posts: 117
Thanks: 7
Thanked 24 Times in 18 Posts
Send a message via Skype™ to Franz
Default

Quote:
Originally Posted by rudolfpietersma View Post
I think this doesn't work on ubuntu.

I get this error:



This means the script will start at 2.02am every day right?


Cheers,
Rudolf.
Code:
apt-get install mailutils
yes script will be run at 2:02
__________________
my PAGE
VoIP
my IT help blog
Reply With Quote
  #14  
Old 17th September 2009, 22:23
Franz Franz is offline
Senior Member
 
Join Date: Jul 2009
Location: Cakovec
Posts: 117
Thanks: 7
Thanked 24 Times in 18 Posts
Send a message via Skype™ to Franz
Default

Quote:
Originally Posted by rudolfpietersma View Post
Franz,
How's the best way to restore the files (if needed)?
depend what you need.

if you need database restore then copy mysqldump files to server and execute:

Code:
bzip2 -d name_of_mysql_dump.bz2

mysql -uusername -ppassword < mysq_database_dump.sql

note: this will replace database on server
for files restore:

copy all *.tar.bz to server, starting with Monday (because Monday is full backup, and rest days are only incremental of day before till sunday which is last day of week)

best way is to extract to temp directory and then move to right location, you can chose which files you need to restore.

to extract file to /ispconfig_restore:
copy all files to /ispconfig_restore folder
and extract one file a time starting with FULLbackup:
Code:
tar -xvif name_of_archive_FULL.tar.bz2 -C /ispconfig_restore
and then for Tuesday
Code:
tar -xvif name_of_archive_Increment_2.tar.bz2 -C /ispconfig_restore
for wensday:
Code:
tar -xvif name_of_archive_Increment_3.tar.bz2 -C /ispconfig_restore
and all files are restored into /ispconfig_restore directory.
and you can move files to original location.

If you need files from (monday) just extract FULL archive.

I hope you will manage to restore
__________________
my PAGE
VoIP
my IT help blog
Reply With Quote
The Following User Says Thank You to Franz For This Useful Post:
rudolfpietersma (19th September 2009)
  #15  
Old 24th September 2009, 13:18
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 13 Times in 11 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Hello,
How can I change Monday as a Full backup day, can I change it?

And how is the best way to move the files to the correct dirs after I unpacked the files in a temp dir?

Tnx,
Rudolf.
Reply With Quote
  #16  
Old 24th September 2009, 14:03
Franz Franz is offline
Senior Member
 
Join Date: Jul 2009
Location: Cakovec
Posts: 117
Thanks: 7
Thanked 24 Times in 18 Posts
Send a message via Skype™ to Franz
Default

Quote:
Originally Posted by rudolfpietersma View Post
Hello,
How can I change Monday as a Full backup day, can I change it?
I don't understand? Monday is first day of week on linux system.
Quote:
And how is the best way to move the files to the correct dirs after I unpacked the files in a temp dir?

Tnx,
Rudolf.
if you want to restore whole directory, just move whole directory do system / directory

or just copy/move one file which you need to restore.
__________________
my PAGE
VoIP
my IT help blog
Reply With Quote
  #17  
Old 24th September 2009, 14:09
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 13 Times in 11 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

I'm having some issues with my server and want to begin from scratch. I learned a lot and want to prevent this by reinstallation.

So I wanted to reinstall my server today and thought maybe it's a good idea and easier to make a full backup today before my reinstallation of the server.

But no problem I will wait untill next week to reinstall the server. Or do it later and use the incremental backups.

Tnx,
Rudolf.
(A linux Noob :-)
Reply With Quote
  #18  
Old 24th September 2009, 14:13
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 13 Times in 11 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

One other thing/question:
When I do this reinstallation of my server what's the correct procedure to get back my settings of ispconfig (like sites, email settings, clients etc)? Can you give me some tips?

Rudolf.
Reply With Quote
  #19  
Old 24th September 2009, 14:36
Franz Franz is offline
Senior Member
 
Join Date: Jul 2009
Location: Cakovec
Posts: 117
Thanks: 7
Thanked 24 Times in 18 Posts
Send a message via Skype™ to Franz
Default

Quote:
Originally Posted by rudolfpietersma View Post
I'm having some issues with my server and want to begin from scratch. I learned a lot and want to prevent this by reinstallation.

So I wanted to reinstall my server today and thought maybe it's a good idea and easier to make a full backup today before my reinstallation of the server.

But no problem I will wait untill next week to reinstall the server. Or do it later and use the incremental backups.

Tnx,
Rudolf.
(A linux Noob :-)
in script replace

Code:
DF_X=`date +'%u'`
with
Code:
DF_X=1
so it will be always 1. day of week
__________________
my PAGE
VoIP
my IT help blog
Reply With Quote
  #20  
Old 2nd October 2009, 01:14
autogun autogun is offline
Member
 
Join Date: Sep 2009
Posts: 69
Thanks: 9
Thanked 5 Times in 5 Posts
 
Default

Dear Franz,

Thank you so much for this wonderful script, doing exactly what I've been looking for..

One tweak is needed tho,
Since my remote server is set to "PermitRootLogin no", im unable to log-in as root and running the script under different user output lots of "Premission denied"..

Can this script somehow be tweaked to use sudoer in order to gain root access?

Thanks a bunch in advance!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php Apps email not going through palkat General 8 21st September 2011 05:35
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 112 23rd August 2011 10:49
Can't start apache Musty Server Operation 12 9th March 2008 13:58
Problem with keeping Apache alive bobeq Server Operation 3 29th November 2007 16:11
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 10:01


All times are GMT +2. The time now is 07:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.