Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd March 2013, 02:49
happz happz is offline
Senior Member
 
Join Date: Feb 2008
Location: Nashville, TN
Posts: 261
Thanks: 35
Thanked 6 Times in 5 Posts
Default Error running backup on site

I run manual backups. I do this to preserving the client rights to all the file. after going to /var/www/clients/client1/web1 I then run this command:

tar -pczf backup.tar.gz web

Now this has always worked fine but now I get this-

tar -pczf backup.tar.gz web
tar (child): backup.tar.gz: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now


Any ideas forger's?
Reply With Quote
Sponsored Links
  #2  
Old 22nd March 2013, 10:22
almere almere is offline
ISPConfig Developer
 
Join Date: Nov 2012
Location: Netherlands, Rotterdam
Posts: 231
Thanks: 20
Thanked 39 Times in 34 Posts
Send a message via Skype™ to almere
Default

Quote:
Originally Posted by happz View Post
I run manual backups. I do this to preserving the client rights to all the file. after going to /var/www/clients/client1/web1 I then run this command:

tar -pczf backup.tar.gz web

Now this has always worked fine but now I get this-

tar -pczf backup.tar.gz web
tar (child): backup.tar.gz: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now


Any ideas forger's?
Yo!

Try this:

Code:
gunzip backup.tar.gz
tar xf backup.tar
Reply With Quote
  #3  
Old 22nd March 2013, 11:30
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 230
Thanks: 8
Thanked 64 Times in 55 Posts
Default

@almere
gunzip or tar x has nothing to do with creating archives.

@happz
You canīt write to the web-directory as long as the immutable-attribute is set for security-reasons. If you must create your backups in /var/www/clients/client1/web1, run

chattr -i /var/www/clients/client1/web1

create your backups

reset the attribute with chattr +i /var/www/clients/client1/web1

You can also disable this feature under serverconfig/web/Make web folders immutable.
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote
  #4  
Old 22nd March 2013, 23:46
happz happz is offline
Senior Member
 
Join Date: Feb 2008
Location: Nashville, TN
Posts: 261
Thanks: 35
Thanked 6 Times in 5 Posts
Default Okay

I will try this. What I'm backing up is just web1 and just the /web folder but I must have the ability to restore the site with the proper right as they were before. Will this command do this?

thx,
happz
Reply With Quote
  #5  
Old 23rd March 2013, 08:01
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 230
Thanks: 8
Thanked 64 Times in 55 Posts
Default

chattri has nothing to do HOW you create your backups.Is there any reason why you wonīt use the backup-solution from ispconfig? it easily backups the web-folder and the database and the user can restore it over the interface.
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote
  #6  
Old 23rd March 2013, 15:12
happz happz is offline
Senior Member
 
Join Date: Feb 2008
Location: Nashville, TN
Posts: 261
Thanks: 35
Thanked 6 Times in 5 Posts
Default Thank you for this info

Quote:
Originally Posted by florian030 View Post
chattri has nothing to do HOW you create your backups.Is there any reason why you wonīt use the backup-solution from ispconfig? it easily backups the web-folder and the database and the user can restore it over the interface.
To be honest, I'm not sure. Since I moved to the new version of ispconfig, I stopped using the built-in backup because it didn't backup the database (so i thought) and I really wasn't sure how to restore while maintaining the correct rights.

Would you share the process of how to restore using the backup feature in ispconfig's newest version?

As a note, I already have the back-ups set for 1 daily for the site in question.

Thx,
happz
Reply With Quote
  #7  
Old 23rd March 2013, 18:08
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 230
Thanks: 8
Thanked 64 Times in 55 Posts
Default

To backup the databse you must "attach" the DB to the website (define the corresponding website under databases / site).

To restore the internal backup just select the datbase and/or website an click "restore" from the backup-tab.
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote
  #8  
Old 23rd March 2013, 18:40
happz happz is offline
Senior Member
 
Join Date: Feb 2008
Location: Nashville, TN
Posts: 261
Thanks: 35
Thanked 6 Times in 5 Posts
Default

Quote:
Originally Posted by florian030 View Post
To backup the database you must "attach" the DB to the website (define the corresponding website under databases / site).

To restore the internal backup just select the database and/or website an click "restore" from the backup-tab.
Wow, I had no idea that this feature existed. Of course, I'd been running my own for over a year so I just didn't pay attention.

I went to database and attached web1 to db1, so I'm guessing that it will back both the db and the web folder now.

I didn't choose any of the other options such as Database charset, Read-only... assuming it would take to the common default. True on that?

thank you florian030,

Happz
Reply With Quote
  #9  
Old 23rd March 2013, 20:22
florian030 florian030 is offline
Senior Member
 
Join Date: Oct 2012
Posts: 230
Thanks: 8
Thanked 64 Times in 55 Posts
Default

Yes. This should work.
__________________
regards
Florian

blog.schaal-24.de
Reply With Quote
The Following User Says Thank You to florian030 For This Useful Post:
happz (23rd March 2013)
  #10  
Old 23rd June 2013, 14:40
happz happz is offline
Senior Member
 
Join Date: Feb 2008
Location: Nashville, TN
Posts: 261
Thanks: 35
Thanked 6 Times in 5 Posts
 
Default Back to the same problem

I just built a new ispconfig run server and created 4 sites. I'm trying to run a manual backup (to quickly backup before I make a change) like this, [tar -pczf backup.tar.gz /path/to/web/site
] and I'm back to getting this:

root@srvr:/var/www/clients/client1/web1# tar -pczf saved.tar.gz web
tar (child): saved.tar.gz: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now
root@srvr:/var/www/clients/client1/web1#

Thanks in advance!

happz

Last edited by happz; 23rd June 2013 at 14:42. Reason: added more info.
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
Backup site trexen Installation/Configuration 1 3rd December 2010 10:57
3.0.3 - backup site not working? thibotus01 Installation/Configuration 25 23rd October 2010 12:37
Client Site BackUp for more than one day? _X_ Tips/Tricks/Mods 3 22nd July 2010 22:42
Online Backup : What do you use and how do you setup it ? XZed Technical 5 4th January 2010 18:02
ISPConfig wont backup a site PortMan General 8 22nd July 2006 15:49


All times are GMT +2. The time now is 10:15.


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