>   I want to tar (to a mounted flash drive) the complete contents (dot files,
> directories, and regular files) of my wife's ~/ on her laptop. When I use
> 'du -sh' on her ~/, I see that it consumes 1.5G of disk space. Yet when I
> tar the same directory the tarball size is only 137M. I'm obviously missing
> most of what's there.
>
>   The syntax I used is 'tar czvf /media/disk/psa-home.tgz *'. I don't see
> the dot files in the tarball, and I cannot immediately identify what's
> missing.
>
>   What might I be doing incorrectly? Is there a better way to backup her
> home directory (and the /etc directory) to ensure every file is copied to
> the removable flash drive?

* doesn't match files starting with dot.  the right way to tar a directory 
is to use . as the arg:

tar cvzf /media/disk/psa-home.tgz .


_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to