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
  #21  
Old 2nd October 2009, 09:30
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

Yes, add user to sudoers file with NOPASSWD option, and all comands start with
Code:
sudo command
__________________
my PAGE
VoIP
my IT help blog
Reply With Quote
Sponsored Links
  #22  
Old 3rd October 2009, 16:33
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 14 Times in 12 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

How to make a backup from / ? (so the whole system).
I only have
Quote:
total /
in the lista.txt file but it doesn't seem to work. Last night it only backupped the databases.
Reply With Quote
  #23  
Old 5th October 2009, 10:32
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 14 Times in 12 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Another question. What if I want this script to backup to a local folder? Is this a possibility?
Reply With Quote
  #24  
Old 14th October 2009, 09:12
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 14 Times in 12 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Quote:
Originally Posted by rudolfpietersma View Post
Another question. What if I want this script to backup to a local folder? Is this a possibility?

I guess just changing the
Quote:
path=/backupfolderlocal
in Franz his script will do it to backup locally.

My idea was to colocate 2 servers in the datacenter, but for the beginning this is to expensive for me. So I will start with colocate 1 server in the datacenter, create the backups in a local folder and copy them to the computer at home.

Any other suggestions are welcome :-)

Rudolf.
Reply With Quote
  #25  
Old 14th October 2009, 09:17
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 14 Times in 12 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Backups are finished, just checked, all files have been written to the local folder. But at the end the script gives me this error:

Quote:
Cannot parse address `2009-10-14 09:14:47 - Starting daily backup' (while expanding `2009-10-14 09:14:47 - Starting daily backup'): Format of RFC822 object is bad
What does it mean?
Reply With Quote
  #26  
Old 5th November 2009, 15:01
jcombs_31 jcombs_31 is offline
Member
 
Join Date: Jan 2009
Location: South Florida
Posts: 83
Thanks: 2
Thanked 2 Times in 1 Post
Default

The script is works well, but you should fix these lines on your blog

# $SSH $MYSQLDUMP
log "Dump OK. Starting SCP"
# $SCP/mysql-$i-$datum_x.sql.bz2 $dirname/

you have them commented out.

Some syntax indentation would make it more readable.
Reply With Quote
  #27  
Old 16th December 2009, 10:53
jonedan jonedan is offline
Junior Member
 
Join Date: Dec 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey,
That was the ticket Tibor, thanks! Ensuring that both boxes use the same account/password for the SQL Server service did the trick. Backups are now running properly between the servers. Again, many, many thanks!
__________________
r4 dsi
Reply With Quote
  #28  
Old 16th December 2009, 15:45
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 jcombs_31 View Post

Some syntax indentation would make it more readable.
world press remove TABS
__________________
my PAGE
VoIP
my IT help blog
Reply With Quote
  #29  
Old 11th February 2010, 11:39
Castrichella Castrichella is offline
Junior Member
 
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default cheapest remote server hosting service

I want to get a service that allow me to control a remote server and do things like surfing the internet plus installing Windows program.

I think it called dedicated server but I want something cheap per month and surf web using it.
__________________
Magic Backup
Reply With Quote
  #30  
Old 14th April 2010, 20:09
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 14 Times in 12 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
 
Default

Quote:
ssh key authentication
Filed under: Linux tips — admin @ 00:55
How to generate SSH keys and implement for key authentication.

login to local machine with user you will be using for connect to remote.

1. generate keys:
ssh-keygen -t dsa

2. copy id_dsa.pub to remote machine to /tmp directory
scp ~/.ssh/id_dsa.pub remote_machine:/tmp

3. login to remote machine and append new key to authorized_keys2 file in home folder
cat /tmp/id_dsa.pub >> ~/.ssh/authorized_keys2

4. log out and that it is.

You can try with:
ssh remoteuser@remoteserver
and you will be connected to remote server without password.
Hi Franz,
When I want to do step 3 on the remote server
cat /tmp/id_dsa.pub >> ~/.ssh/authorized_keys2

I get this error:
“bash: /.ssh/authorized_keys2: No such file or directory”.

What should I do?

Rudolf.

Last edited by skoena; 15th April 2010 at 08:43.
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 19:33.


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