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
  #181  
Old 4th April 2013, 15:24
Ripeed Ripeed is offline
Member
 
Join Date: Oct 2011
Posts: 85
Thanks: 11
Thanked 1 Time in 1 Post
Default

Hi, I using this script for backup. Then I copy backup folder by rsync to another computer.

Can any one give me advice how to set the script to backup to another computer directly. I dont need two same backup on two PCs.

I think I will do that by scp?
Reply With Quote
Sponsored Links
  #182  
Old 26th April 2013, 16:55
Ripeed Ripeed is offline
Member
 
Join Date: Oct 2011
Posts: 85
Thanks: 11
Thanked 1 Time in 1 Post
Default

I am trying to restorade dir by:
./back-res.sh dir /var/vmail/domain.tld 2013-04-06 /tmp

and I get:
./back-res.sh: line 575: /tmp/tmpbck/maildata: No such file or directory

So I whant restore backup to /tmp not in that folfer above.

Abyway if I create folde /tmp/tmpbck/maildata I get:
Null message body; hope that's ok

Reply With Quote
  #183  
Old 3rd June 2013, 17:48
go0ogl3 go0ogl3 is offline
Member
 
Join Date: Jul 2008
Posts: 73
Thanks: 5
Thanked 39 Times in 6 Posts
Default

Quote:
Originally Posted by Ripeed View Post
I am trying to restorade dir by:
./back-res.sh dir /var/vmail/domain.tld 2013-04-06 /tmp

and I get:
./back-res.sh: line 575: /tmp/tmpbck/maildata: No such file or directory

So I whant restore backup to /tmp not in that folfer above.

Abyway if I create folde /tmp/tmpbck/maildata I get:
Null message body; hope that's ok

From the script:

# To restore dirs make sure you have the full backup from that month and use:
# `back-res dir /etc 2009-11-23 /`
# to restore the "/etc" dir from date 2009-11-23 to root
# `back-res dir /etc 2009-11-23 /tmp` is used to restore the "/etc" dir to /tmp
#
# `back-res dir all 2009-11-23 /`
# to restore all directories from date 2009-11-23 to root

Note: You try to restore /var/vmail/domain.tld this dir was backed-up? or it was /var/vmail or just /var ?

Try:
./back-res.sh dir /var 2013-04-06 /tmp

but this depends on your settings.

P.S.: You can safely ignore the /tmp/tmpbck/maildata error - it's a file used to send mail to you...
__________________
__________________
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
The Following User Says Thank You to go0ogl3 For This Useful Post:
AbannyvabVask (29th November 2013)
  #184  
Old 4th June 2013, 10:02
Ripeed Ripeed is offline
Member
 
Join Date: Oct 2011
Posts: 85
Thanks: 11
Thanked 1 Time in 1 Post
Default

Quote:
go0ogl3
THX go0ogl3 but I found where was problem. Before I dont understant that.

If I backing up /var/www folder and in that folder have another folder lilke:

var/www/web1
var/www/web2
var/www/web3
var/www/web4

Than I canīt restore folder var/www/web3 but I must restore folder var/www, what I have set in config part of script.

am I right?
Reply With Quote
  #185  
Old 31st August 2013, 12:32
teratoon teratoon is offline
Junior Member
 
Join Date: Jan 2013
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Question

To restore complete /var folder is little bit risky and time consumed if i only wanna restore one mailbox /var/vmail/domain/user.There's only way then change script backup directories and add /var/vmail ? but then are double backups /var and /var/vmail.

Any ideas how to develop script to more comfortable ?
Reply With Quote
  #186  
Old 9th September 2013, 17:44
sjswarts sjswarts is offline
Senior Member
 
Join Date: May 2011
Location: Australia
Posts: 135
Thanks: 17
Thanked 5 Times in 5 Posts
Default

Couldn't you just stipulate exactly what you wanted in /var to be backed up to prevent double backups?

For example instead of backing up /var try to backup the following:

/var/vmail
/var/www
/var/*whatever*else*

I haven't tried it but tonight I had issues with not being able to restore just my /var/www folder, so now I sit and wait for the whole /var folder to be restored...

Nice script, but a bit clunky.

P.S. I haven't tried this myself, no warranty given
__________________
Regards,
Steven Swarts
Reply With Quote
  #187  
Old 9th September 2013, 18:27
sjswarts sjswarts is offline
Senior Member
 
Join Date: May 2011
Location: Australia
Posts: 135
Thanks: 17
Thanked 5 Times in 5 Posts
Default

Anyone able to provide me with help in restoring data?

Little background:

I use the backup script on my main server running on a VDS debian. I have a mounted folder /backup that uses ssh to securely mount a remote directory on my home server at /backup as well. It works fine. I can see everything is there, log is updated, etc.

Now the issue is that my internet between home and the VDS sucks, so uploads are maximum 70kb/s more like 50kb/s ... yes I know Australia's internet sucks

My question is if I use the script on the hosted server like its meant to be:

./backup.sh dir /var 2013-09-01 /tmp

then it tries to extract the backup to my hosted server. Also if I try this:

./backup.sh dir /var 2013-09-01 /backup/tmp

trying to utilize the backup to be stored on the same server as what holds the incremental backups, it goes slow as well.

So is there a way to irrespective of where the backup came from, working on the home server run some form of backup script restore locally?

Hopefully someone can wade through my dilemma...

I will definitely be changing my script to use sub-directories because all I want is a fraction of /var and currently its 4GB of data I need to extract...

thanks in advance
__________________
Regards,
Steven Swarts
Reply With Quote
  #188  
Old 8th November 2013, 12:29
ilgio ilgio is offline
Junior Member
 
Join Date: Mar 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi
but this script works also for transfer ispconfig from PC A to PC B ?

and the account and password who create ispconfig?
Reply With Quote
  #189  
Old 25th November 2013, 23:24
griven griven is offline
Junior Member
 
Join Date: Nov 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I try to run this Script on a Debian based server but get the following Errors:
Quote:
back-res.sh: 240: function: not found
back-res.sh: 241: log: not found
back-res.sh: 247: log: not found
back-res.sh: 248: Syntax error: "}" unexpected
what can I do to fix this problem?
Reply With Quote
  #190  
Old 28th November 2013, 10:04
mailinh mailinh is offline
Junior Member
 
Join Date: Nov 2013
Location: Vietnam
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
 
Question

Quote:
Originally Posted by griven View Post
Hi,

I try to run this Script on a Debian based server but get the following Errors:
what can I do to fix this problem?
That's my problem width me! And I don't know how to fix it, too!
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 06:27.


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