LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 12-09-2008, 06:02 AM   #1
maskiepop
Member
 
Registered: Jul 2008
Posts: 34

Rep: Reputation: 15
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.
 
Old 12-09-2008, 08:36 AM   #2
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
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!!
 
Old 12-09-2008, 09:07 AM   #3
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,419

Rep: Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532
Quote:
Originally Posted by maskiepop View Post
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.
 
Old 12-11-2008, 07:33 AM   #4
maskiepop
Member
 
Registered: Jul 2008
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by baig View Post
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SBackup Destination Permissions vba_djs Linux - Newbie 0 05-03-2007 09:07 AM
LXer: Backup and Restore Ubuntu System using Sbackup LXer Syndicated Linux News 0 03-21-2007 04:01 PM
Restoring files j61396 Linux - Newbie 1 10-27-2004 12:52 PM
restoring files form an rm true_atlantis Slackware 5 10-07-2004 09:33 AM
restoring files by mc naren Linux - Software 2 03-10-2004 11:21 AM


All times are GMT -5. The time now is 12:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration