Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Plugins/Modules/Addons

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #121  
Old 25th May 2011, 19:51
go0ogl3 go0ogl3 is offline
Member
 
Join Date: Jul 2008
Posts: 69
Thanks: 4
Thanked 38 Times in 6 Posts
Smile Dots...

Quote:
Originally Posted by StefanoVanzo View Post
I think cyrus1997 is right. Can you please check.
For me in the script there is a dot (.) after /root and this prevents from backing up the /root directory.
If I am wrong, please tell me why.

working with IspConfig3 on Debian Squeeze 64bit
thank you for your work and you time
I've removed the space character after the "/root" in the download-able script so nobody will have any more issues with this.
It's seen as a dot by newer mc to show when you have free spaces after your last edited content.
If you wanna see just add one or more spaces after that "/root" entry, save the file then do a
Code:
cat back-res | grep "/lib /lib64 /root"
and see if there are dots...

Thank you for your time!
Reply With Quote
Sponsored Links
  #122  
Old 30th May 2011, 13:25
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 407
Thanks: 71
Thanked 10 Times in 9 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Is it a lot of work to change the script so it can also be used as remote backup script?
Reply With Quote
  #123  
Old 30th May 2011, 22:27
go0ogl3 go0ogl3 is offline
Member
 
Join Date: Jul 2008
Posts: 69
Thanks: 4
Thanked 38 Times in 6 Posts
Lightbulb Remote Backup

Quote:
Originally Posted by rudolfpietersma View Post
Is it a lot of work to change the script so it can also be used as remote backup script?
Hello, if you mount anything remote, before de use of the backup script, and the backup dir is the remote mounted one, then you can use it as a remote backup script.
You can use samba (cifs) for remote windows shares, ssh, or anything you can think of and can be mounted, even remote internet drives.

I'm in the process of testing with remote ftp, but I'm not sure if it'll be good to make a separate script for this or integrate it in the backup script.
For now I'm using 2 separate scripts, partially because the script which makes the ftp transfer compares the files first, then makes something like a sync, but that is not needed here... so for now I'm not sure.

The simplest way now is to use a remote mounted dir for backup. For more info you can see: Linux Userland Filesystem
__________________
__________________
go0ogl3
--
Keep your work safe. Better backup than sorry! Download the latest version of the backup and restore script. See more info here.
Reply With Quote
  #124  
Old 21st June 2011, 13:06
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Hi go0ogl3,

First of all thanks for your script. I have 3 production server boxes and one backup server.

I have installed ISPConfig in the Multiserver setup system. So I have different services for each server.

1. Server A
--->Web Server
--->SVN Server

2. Server B
---> Database Server

3. Server C
---> Mail Server

4. Server D
---> Backup Server

Is there a way to send the request to backup from the Backup SERVER to every other servers? I would like to load the script from the backup server and store all the backups files and directory in the Backup SERVER.

Thanks
Reply With Quote
  #125  
Old 21st June 2011, 13:20
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 478
Thanks: 78
Thanked 39 Times in 33 Posts
Default

Cron runs the backup on each of my servers and writes it to the nas I have mounted on each.

All you would need to do is mount your backup server instead

Quote:
Originally Posted by vaio1 View Post
Hi go0ogl3,

First of all thanks for your script. I have 3 production server boxes and one backup server.

I have installed ISPConfig in the Multiserver setup system. So I have different services for each server.

1. Server A
--->Web Server
--->SVN Server

2. Server B
---> Database Server

3. Server C
---> Mail Server

4. Server D
---> Backup Server

Is there a way to send the request to backup from the Backup SERVER to every other servers? I would like to load the script from the backup server and store all the backups files and directory in the Backup SERVER.

Thanks
Reply With Quote
  #126  
Old 21st June 2011, 13:22
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

So, each server has a copy of the script, right?

I don't understand how have I set this variable in each server:

Code:
BACKUPDIR="/bck/$COMPUTER"
Reply With Quote
  #127  
Old 21st June 2011, 15:15
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 478
Thanks: 78
Thanked 39 Times in 33 Posts
Default

Quote:
Originally Posted by vaio1 View Post
So, each server has a copy of the script, right?

I don't understand how have I set this variable in each server:

Code:
BACKUPDIR="/bck/$COMPUTER"
Yes, the same script runs on each of the servers at different times

The variable backupdir dictates where the backup us saved to.

On my server I have a directory that mounts to the nas elsewhere on the network.

So my backupdir = /mnt/backup/$computer

$computer vRiable holds the name of the computer backing up.
Reply With Quote
  #128  
Old 29th June 2011, 13:38
go0ogl3 go0ogl3 is offline
Member
 
Join Date: Jul 2008
Posts: 69
Thanks: 4
Thanked 38 Times in 6 Posts
Lightbulb MUltiple servers backup to special backup server

Quote:
Originally Posted by vaio1 View Post
Hi go0ogl3,

First of all thanks for your script. I have 3 production server boxes and one backup server.

I have installed ISPConfig in the Multiserver setup system. So I have different services for each server.

1. Server A
--->Web Server
--->SVN Server

2. Server B
---> Database Server

3. Server C
---> Mail Server

4. Server D
---> Backup Server

Is there a way to send the request to backup from the Backup SERVER to every other servers? I would like to load the script from the backup server and store all the backups files and directory in the Backup SERVER.

Thanks
Hello,

The way I do it is to have a copy of the script on each of the servers and create on the backup server a dir for every server. For example:
1. on Server D I can make /backup/Server_A, /backup/Server_B, /backup/Server_C
2. mount the dir /backup/Server_A/ on Server A to dir /backup
3. mount the dir /backup/Server_B/ on Server B to dir /backup
4. mount the dir /backup/Server_C/ on Server C to dir /backup
5. define the BACKUPDIR="/backup/$COMPUTER" on servers A,B,C (you can have BACKUPDIR="/backup", but it's usefull to have a good name to your backups)
6. set up the cron jobs on the servers

Good luck!
__________________
__________________
go0ogl3
--
Keep your work safe. Better backup than sorry! Download the latest version of the backup and restore script. See more info here.
Reply With Quote
  #129  
Old 17th July 2011, 06:42
fordwrench fordwrench is offline
Member
 
Join Date: Apr 2007
Posts: 57
Thanks: 6
Thanked 4 Times in 2 Posts
Default

I have a server that has debian lenny and ispconfig via the perfect server howto.

I am trying to migrate to a new server I have created with debian squeeze viat the perfect server howto.

I make my backup and when I try to restore I get the following:



oot@srv1:~/scripts# sh /root/scripts/backres.sh db all 2011-07-16
date: invalid date `07/'
/root/scripts/backres.sh: line 448: [: : integer expression expected

You want to restore db all to date 2011-07-16.

Please input "yes" if the above is ok with you and press [ENTER]: yes

Restoring all mysql databases from date 2011-07-16 to local server:
touch: cannot touch `/tmp/tmpbck/datestart': No such file or directory
touch: cannot touch `/tmp/tmpbck/dateend': No such file or directory
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
mysql: unknown option '-x'
All restore jobs done!
Database all restored to date 2011-07-16!
/root/scripts/backres.sh: line 573: /tmp/tmpbck/maildata: No such file or directory


Can you please give me some insight as to what the problem might be.
Reply With Quote
  #130  
Old 16th August 2011, 23:53
Toucan Toucan is offline
Senior Member
 
Join Date: Dec 2009
Posts: 478
Thanks: 78
Thanked 39 Times in 33 Posts
 
Default

Hi google,

Been using the script for a long time on one server and now also have it running on a remote vm server.

I'm not that great with bash. Is there a simple line I could add to scp whatever files have just been written to my remote server?

Like:
Code:
 scp full_var-2011-08-16.tar.bz2 root@myip:/tmp
but obviously a bit more dynamic!



This script has saved my skin before!
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
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 16:54
how to restore Ispconfig from backup db na0lb Installation/Configuration 4 24th September 2008 08:51
Restore backup ISPConfig leeeonardo General 4 18th April 2007 20:21
Restore ispconfig complete backup statiic General 1 15th January 2007 10:32
Backup restore on ispconfig misterm Installation/Configuration 0 18th December 2005 23:32


All times are GMT +2. The time now is 22:48.


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