Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

Copying an entire directory

  Date: Dec 12    Category: Unix / Linux / Ubuntu    Views: 375
  

I am running 8.04 on an Acer Aspire 5100 that is dual booting Vista. I
want to completely dump Vista and just run Ubuntu 8.10 (to be
installed from CD) only. My concern is backing up and restoring my
GnuCash and other files. The laptop has an AMD Turion 64 x2 Processor,
1 GB RAM, 160GB HDD and ATI Graphics.
Can someone offer some guidance, please?

Share: 

 

5 Answers Found

 
Answer #1    Answered On: Dec 12    

I am running 8.04 on an Acer Aspire 5100 that is dual booting
Vista. I
want to completely dump Vista and just run Ubuntu 8.10 (to be
installed from CD) only. My concern is backing up and restoring my
GnuCash and other files. The laptop has an AMD Turion 64 x2 Processor,
1 GB RAM, 160GB HDD and ATI Graphics.
Can someone offer some guidance, please?

You can back up your entire home directory found at /home/username onto a usb
key, DVDs, or an external drive. However, you will want to make sure that your
hidden files are visible. These files and folders all begin with a dot. To make
them visible in Nautilus you can either use the menu under View or press Ctrl+H.
Once you see all of the hidden files and folders copy them by copy and paste or
drag and drop to your back up drive. If it is a DVD it will likely need multiple
ones and is a bit trickier.

Once you have backed it up then you can reformat or repartition and re-install.
Once everything is done you can copy all of the files and folders into your new
/home/username folder. To repartition you should work from the Live CD and make
sure that your drive that you are working on is not mounted. If you don't need
two partitions then you can destroy one, but you should consider putting your
root on one partition and home on the other. That way you will never have to
move your data again if you re-install. You just re-use the same home partition.

All of the files that you will need will be in your home folder. The root folder
has system settings, but not data or user settings.

 
Answer #2    Answered On: Dec 12    

> You can back up your entire home directory found at
> /home/username onto a usb key, DVDs, or an external
> drive. However, you will want to make sure that your
> hidden files are visible.

This brings up a question.

> These files and folders all begin with a dot. To make
> them visible in Nautilus you can either use the menu
> under View or press Ctrl+H. Once you see all of the
> hidden files and folders copy them by copy and paste
> or drag and drop to your back up drive.

If you copy an entire directory (folder) to another
location, do the hidden files not move unless they were
visible at the time of copy? I realize that moving into
the directory/folder and selecting all files will select
only the visible ones and thus Ctrl-C will copy only
those to the buffer. But from outside the directory,
won't the entire folder be duplicated no matter whether
the files inside were visible?

 
Answer #3    Answered On: Dec 12    

If you copy an entire directory (folder) to another
location, do the hidden files not move unless they were
visible at the time of copy? I realize that moving into
the directory/folder and selecting all files will select
only the visible ones and thus Ctrl-C will copy only
those to the buffer. But from outside the directory,
won't the entire folder be duplicated no matter whether
the files inside were visible?

If you grab the folder icon it will take all files in it, including hidden files
and folders. However, if you select folders within the folder they need to be
visible so that they can be selected. Otherwise they will be passed over and you
will only get the ones that you can see. So that makes you correct and this
would have been another way of doing it.

However, when they copy back they would not want the user folder, just the
contents, so to keep it simple and consistent, I opted for that method. I tend
towards keeping things parallel when possible when dealing with new users. I
also tend towards giving graphical solutions rather than commandline ones for
the same reason, simplicity.

 
Answer #4    Answered On: Dec 12    

Well as you have been told back up your entire home directory to a usb
key, CD, DVD or external harddrive or other source.

Now my suggestion is when you install 8.10, partition your drive so that
you have 3 partitions.
1 for swap, 1 for your / (root), 1 for your /home.
With this setup the next time you upgrade using a CD you can reformat
the root partition and not your /home partition.
Then you point the installer to use /home but not format, this way when
your system comes up after reboot your settings and files are retained.
All you have to do is reinstall anything that is not installed by
default within the Ubuntu CD.
Everything that you do as a regular user in Linux is saved to your home
directory so as long as that partition is not (re)formatted you won't
lose that information.


My suggestion is at least 1GB for swap, 40GB for /, and the rest for /home

 
Answer #5    Answered On: Dec 12    

Use a big 8gb or more memory pen to save you files to and trasfer them
to the installed Ubuntu.

 
Didn't find what you were looking for? Find more on Copying an entire directory Or get search suggestion and latest updates.




Tagged: