LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-15-2004, 08:58 PM   #1
sofasurfer
Member
 
Registered: Oct 2003
Posts: 110

Rep: Reputation: 15
How to restore files


I copied my /home directory to Windows for safe keeping.
To restore it, I exited GUI (Do you have to exit?) and used the copy command to send the /home dir back to where it should be (as root). Now when I browse my /home/user/mozilla directory, I see that my emails ARE back in the /mozilla directory (This is the only verification I have checked so far). However, non of my inbox folders from before have been restored, my emails have not been restored to the folders and the address book has not been restored.

Is my problem that I did not used a proper backup/restore program or is there something else I need to know? I know the /home dir is saved properly in my Windows files. How do I get it back?
 
Old 01-15-2004, 09:10 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Did you check the permissions & ownerships?

A half-way decent way of saving your home
directory would have been to tar.gz it and copy
that file to windows ... the problem is that the
windows file-system doesn't know about Linux'
ownerships and permissions.


Cheers,
Tink
 
Old 01-15-2004, 10:53 PM   #3
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
sofasurfer; Just a suggestion, but you might have to import them back into your mail client.
 
Old 01-16-2004, 02:40 AM   #4
sofasurfer
Member
 
Registered: Oct 2003
Posts: 110

Original Poster
Rep: Reputation: 15
I am able to view the files that were save in Winows. Would you STILL say that the permissions could be preventing me from copying them back to Linux? If so, am I screwed because I saved them to Windows BEFORE changing the permissions, or can I still get them back by changing the permissions NOW?
 
Old 01-16-2004, 03:13 AM   #5
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
Hi

Ive done this quite a few times ( copy home to windows , then send it back and ive had no real problems so far )

There were a few issues when i tried to do it as a local user though,
but if you log in as root and try there should be no problems
.

cheers
 
Old 01-16-2004, 03:34 AM   #6
sofasurfer
Member
 
Registered: Oct 2003
Posts: 110

Original Poster
Rep: Reputation: 15
I'm sure that I've done it as root, but its 3:35am, I'll try it again tomorrow.
Thanks for the encouragement : )
 
Old 01-16-2004, 05:05 AM   #7
beutin
LQ Newbie
 
Registered: Jul 2003
Location: Germany
Posts: 2

Rep: Reputation: 0
Re: How to restore files

> I copied my /home directory to Windows for safe keeping.

What exactly do you mean "to Windows"?!

> To restore it, I exited GUI (Do you have to exit?) and used the copy command to send the /home
> dir back to where it should be (as root).

If you have a mounted vfat file system and you copied files to it you will lose your ownership permissions. If you copy them back as root, they will be owned by root. And no, you do not have to leave the GUI, you can simply open a console (xterm, gterm or whatever) in X11.

tar'ing would be safer as Tinkster pointed out. But you should be safely able to restore the files. I believe Mozilla has an option for importing mail folders. In case you have worked with Mozilla when the files were removed, it will re-index its mail folders and not automatically re-import them. You will have to do that manually. But first "chmod user.user /home/user/ -R" your home directory

Cheers,

Uwe
 
  


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
HELP: Restore etc files permissions gollum26 Linux - Security 5 09-15-2004 06:06 PM
how to restore my files permissions ? Punker51 Linux - Software 1 12-05-2003 06:24 AM
Kernel - need to restore files from CD syx Linux - Newbie 2 11-20-2003 11:41 PM
Restore Redhat 6.2 files to 7.3 tassylim Linux - General 1 08-23-2003 09:37 PM
how to restore deleted files ? ilyes Linux - General 3 08-01-2003 08:13 AM


All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration