Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-09-2008, 06:02 AM
|
#1
|
|
Member
Registered: Jul 2008
Posts: 30
Rep:
|
restoring files from sbackup
I have a serious problem with backups in the Linux world. Actually, the backup is the easy part. My difficulty is restoring the files, or some of the files. I am using simple backup (sbackup/srestore) in Ubuntu 8.04.
I noticed that the ownership are changed on restore. Everything is now owned by root. I think some of the permissions have been changed as well.
The docos on sbackup/srestore says I need to manually reset the ownerships and permissions when restoring! I find that shocking, actually. I expected that to be an automatic feature of the srestore. Not manual.
Ok. I am a noob. Can someone please tell me that I have misunderstood the whole srestore process, and that I can restore files from backups, with ownerships and permissions as before. As otherwise, I am already in serious trouble.
|
|
|
|
12-09-2008, 08:36 AM
|
#2
|
|
Member
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Rep:
|
If you are attempting to restore to a location on which you don't have sufficient privileges then obviously you need to be root. If problem is of restoring you ownership on those files, then you can get it done through..
being root.. do..
chown user_name file_name..
eg..
chown john foo.txt
Cheers!!
|
|
|
|
12-09-2008, 09:07 AM
|
#3
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 12,008
|
Quote:
Originally Posted by maskiepop
I have a serious problem with backups in the Linux world. Actually, the backup is the easy part. My difficulty is restoring the files, or some of the files. I am using simple backup (sbackup/srestore) in Ubuntu 8.04.
I noticed that the ownership are changed on restore. Everything is now owned by root. I think some of the permissions have been changed as well.
The docos on sbackup/srestore says I need to manually reset the ownerships and permissions when restoring! I find that shocking, actually. I expected that to be an automatic feature of the srestore. Not manual.
Ok. I am a noob. Can someone please tell me that I have misunderstood the whole srestore process, and that I can restore files from backups, with ownerships and permissions as before. As otherwise, I am already in serious trouble.
|
Well, that's the way that particular backup software works, unfortunately. On a bright note, you'll still have your data...
Tar has options to preserve ownership/permissions on data, or you might want to check into some other backup solutions, like Backula or Arkeia.
|
|
|
|
12-11-2008, 07:33 AM
|
#4
|
|
Member
Registered: Jul 2008
Posts: 30
Original Poster
Rep:
|
Quote:
Originally Posted by baig
If you are attempting to restore to a location on which you don't have sufficient privileges then obviously you need to be root. If problem is of restoring you ownership on those files, then you can get it done through..
being root.. do..
chown user_name file_name..
eg..
chown john foo.txt
Cheers!!
|
How do you keep track of the original owners and permissions that you have to restore to? What do you need to do so that you can get the original permissions and owners?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:07 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|