LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync and sparce files (https://www.linuxquestions.org/questions/linux-software-2/rsync-and-sparce-files-564305/)

kapilcool 06-25-2007 04:29 AM

rsync and sparce files
 
Hi,
Does anyone know how to find the sparse files? I am having issues with rsync with sparse files and need to generate a list of all sparse files on a file system.

Thanks
Kapil

Tinkster 06-25-2007 05:31 AM

You could run two finds over the system, one with
-exec ls -l {} \;
and one with
-exec du -b {} \;
and compare those two lists by file size. Chances are
that if there's a big difference that's where your sparse
files are ...


Cheers,
Tink

kapilcool 09-03-2007 11:45 AM

Does anyone know how to craete a sparse file. I tried this command:
echo hello | dd of=spar_file1 seek=999999

is it the right way?

kapil


All times are GMT -5. The time now is 06:53 PM.