Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Backing up /home

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
DavidMcCrossan
LXF regular


Joined: Fri Aug 19, 2005 10:46 am
Posts: 326

PostPosted: Tue Jun 14, 2011 11:24 am    Post subject: Backing up /home Reply with quote

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
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8454
Location: Warrington, UK

PostPosted: Tue Jun 14, 2011 11:37 am    Post subject: Reply with quote

How can we say whether you need to copy these files when you don't tell us what they are? What does
Code:
 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:
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)
Back to top
View user's profile Send private message
wyliecoyoteuk
LXF regular


Joined: Sun Apr 10, 2005 11:41 pm
Posts: 3443
Location: Birmingham, UK

PostPosted: Tue Jun 14, 2011 12:12 pm    Post subject: Reply with quote

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!

*************** ************
Back to top
View user's profile Send private message
DavidMcCrossan
LXF regular


Joined: Fri Aug 19, 2005 10:46 am
Posts: 326

PostPosted: Tue Jun 14, 2011 2:25 pm    Post subject: Backing up /home Reply with quote

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
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2430

PostPosted: Tue Jun 14, 2011 3:07 pm    Post subject: Reply with quote

David, the argument on the ls command is not 1 (a number) but l (a lower case letter L). Copy this:
Code:
ls -al /home
Use the code tags (like I did) to distinguish between your reply and the output of the command given.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8454
Location: Warrington, UK

PostPosted: Tue Jun 14, 2011 4:07 pm    Post subject: Reply with quote

And it's an upper case A Razz

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)
Back to top
View user's profile Send private message
DavidMcCrossan
LXF regular


Joined: Fri Aug 19, 2005 10:46 am
Posts: 326

PostPosted: Tue Jun 14, 2011 5:26 pm    Post subject: Backing up /Home Reply with quote

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
Back to top
View user's profile Send private message
Nuke
LXF regular


Joined: Wed Feb 09, 2011 12:11 pm
Posts: 217
Location: Chepstow, UK

PostPosted: Thu Jun 30, 2011 3:48 pm    Post subject: @ Nelz Reply with quote

Nelz wrote :

Quote:
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.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast