Backing up /home

Discussion topics, Linux related - not requests for help

Moderators: ChrisThornett, LXF moderators

Backing up /home

Postby DavidMcCrossan » Tue Jun 14, 2011 10:24 am

Hi guys!
I am a little confuddled (it´s me age) at what I should back up.
Home shows only /david and that is OK.
If I ask to view hidden files in /Home there is more there than I have space on my 2Gb USB drive, so I have a dilemma.
Do I copy these files as part of the /Home or only take /david?
I am going over to Mint to get my hdd back from Ubuntu. Non-standard filing systems are not for me.
Best regards
David
DavidMcCrossan
LXF regular
 
Posts: 337
Joined: Fri Aug 19, 2005 9:46 am

Postby nelz » Tue Jun 14, 2011 10:37 am

How can we say whether you need to copy these files when you don't tell us what they are? What does
Code: Select all
 ls -lA /home
show?

Do you have an encrypted home directory?

What non-standard filesystems do you mean, Ubuntu uses ext filesystems and the in-kernel ecryptfs for encryption. These are about as standard as you can get.

Much of the content of your home directory is compressible, so you can back it up onto a smaller drive by using tar with compression.

Code: Select all
sudo tar czf /media/usbdrive/home.tar.gz /home


You should use tar when backing up your home directory anyway, especially when copying to a FAT-formatted drive, or you will lose essential information.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8469
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby wyliecoyoteuk » Tue Jun 14, 2011 11:12 am

Unless you have been saving files to /home instead of /home/david, there should not be any files there, hidden or otherwise, just a folder for each user.
The sig between the asterisks is so cool that only REALLY COOL people can even see it!

*************** ************
User avatar
wyliecoyoteuk
LXF regular
 
Posts: 3452
Joined: Sun Apr 10, 2005 10:41 pm
Location: Birmingham, UK

Backing up /home

Postby DavidMcCrossan » Tue Jun 14, 2011 1:25 pm

Thanx guys.

Nelz,

root@david-Aspire-E360:/home/david# ls -1A /home
david
root@david-Aspire-E360:/home/david# ls -1A /home/david
ls: cannot access /home/david/.gvfs: Permission denied
.adobe
Adult voice V1.pdf
.audacity-data
.bash_history
.bash_logout
.bashrc
Budget Forecast 2011.ods
.cache
.clamtk
.compiz
.config
.crack-attack
DASH 1.jpg
DASH 2.jpg
.dbus
Desktop
Documents
Downloads
Dysarthria and Dysphonia.pdf
.esd_auth
.evolution
examples.desktop
.fontconfig
.freeguide
.gconf
.gconfd
.gegl-0.0
.gimp-2.6
.gksu.lock
.glabels
.gnome2
.gnome2_private
.gnome-commander
.gnupg
.gstreamer-0.10
.gtk-bookmarks
.gvfs
.ICEauthority
.icons
.java
.kde
.local
.macromedia
.mission-control
.mozilla
Music
.nautilus
.openoffice.org
Pictures
.pki
.printer-groups.xml
Private
.profile
Public
.pulse
.pulse-cookie
Reading and Writing following Stroke v1.pdf
.recently-used.xbel
.sane
.shotwell
.ssh
Stroke CVA.pdf
.sudo_as_admin_successful
Templates
.themes
.thumbnails
.thunderbird
Videos
.xine
.xsession-errors
.xsession-errors.old
root@david-Aspire-E360:/home/david#
I will try targz now.

Many thanx to you for your help.

Best

David
DavidMcCrossan
LXF regular
 
Posts: 337
Joined: Fri Aug 19, 2005 9:46 am

Postby Dutch_Master » Tue Jun 14, 2011 2:07 pm

David, the argument on the ls command is not 1 (a number) but l (a lower case letter L). Copy this:
Code: Select all
ls -al /home
Use the code tags (like I did) to distinguish between your reply and the output of the command given.
Dutch_Master
LXF regular
 
Posts: 2440
Joined: Tue Mar 27, 2007 1:49 am

Postby nelz » Tue Jun 14, 2011 3:07 pm

And it's an upper case A :P

If there is nothing in /home apart from david, I don't see what the problem is, or are you saying there is also a /david directory?
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8469
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Backing up /Home

Postby DavidMcCrossan » Tue Jun 14, 2011 4:26 pm

Many thanx for your most welcome help, guys.

I finally got there.

Newly Minted.

Home directory intact.

Natch, it´s all the same. But different...

New rules.

Best David
DavidMcCrossan
LXF regular
 
Posts: 337
Joined: Fri Aug 19, 2005 9:46 am

@ Nelz

Postby Nuke » Thu Jun 30, 2011 2:48 pm

Nelz wrote :

What non-standard filesystems do you mean, Ubuntu uses ext filesystems ...


You probably have a later version of Ubuntu than I am using, but when I installed it you could have a number of alternatives. My partitions all have Reiser file systems. (I formatted them before Reiser became infamous).

But I dont think David meant that; I am guessing he was more concerned with directory structuring and file locations.
User avatar
Nuke
LXF regular
 
Posts: 217
Joined: Wed Feb 09, 2011 12:11 pm
Location: Chepstow, UK


Return to Discussion

Who is online

Users browsing this forum: No registered users and 0 guests