Re: folder size mis-match


Subject: Re: folder size mis-match
From: Jim Cole (greyleaf@yggdrasill.net)
Date: Thu Feb 17 2000 - 21:11:27 MST


Hi. Do you by chance have any symbolic links in the original directory?
I believe cp -r will follow links and copy what is pointed to while, by
default, du will only count the size of the link, not the file it points
to. What happens if you give du the -L option?

Jim

Robert Fout's bits of Thu, 17 Feb 2000 translated to:

>Hey all,
>
>I serve my own website on an internal home network, to preview my pages
>before I publish them on the net for all to see. Since my MkLinux server's
>only task is to do this, I have a separate partition set aside to backup the
>/home/httpd/html directory. I wanted to make sure that everything was backed
>up perfectly, and I used du to determine how much data was in each directory
>(both the backup directory, and the original directory). After checking
>several times, the backup directory seems to be greater in size than the
>original directory (see below). Can anyone explain why this is?
>
>I use this command to back stuff up: cp -r /home/httpd/html /webpage_backup



This archive was generated by hypermail 2a24 : Wed Mar 01 2000 - 00:07:11 MST