LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2007, 04:29 AM   #1
kapilcool
Member
 
Registered: Dec 2005
Posts: 32

Rep: Reputation: 15
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
 
Old 06-25-2007, 05:31 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 09-03-2007, 11:45 AM   #3
kapilcool
Member
 
Registered: Dec 2005
Posts: 32

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync ignore files Eazy-Snatch Linux - Networking 3 09-18-2006 06:45 AM
Rsync duplication files TheBrick Linux - General 2 08-03-2006 07:15 AM
What files to exclude when using rsync TongueTied Linux - General 2 07-20-2006 08:39 PM
RSYNC and dot files Buto Linux - General 1 09-22-2005 02:39 PM
rsync skipping files s_siouris Linux - Software 4 04-06-2005 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration