<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.osnexus.com/index.php?action=history&amp;feed=atom&amp;title=Pwalk_utility</id>
	<title>Pwalk utility - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.osnexus.com/index.php?action=history&amp;feed=atom&amp;title=Pwalk_utility"/>
	<link rel="alternate" type="text/html" href="https://wiki.osnexus.com/index.php?title=Pwalk_utility&amp;action=history"/>
	<updated>2026-10-05T23:23:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.osnexus.com/index.php?title=Pwalk_utility&amp;diff=11975&amp;oldid=prev</id>
		<title>Qadmin: Created page with &quot; It was originally written by John Dey to work as a parallelized version of the &#039;du -a&#039; unix utility which would be suitable for scanning filesystems with 100s of millions of...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.osnexus.com/index.php?title=Pwalk_utility&amp;diff=11975&amp;oldid=prev"/>
		<updated>2019-03-25T19:19:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; It was originally written by John Dey to work as a parallelized version of the &amp;#039;du -a&amp;#039; unix utility which would be suitable for scanning filesystems with 100s of millions of...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
It was originally written by John Dey to work as a parallelized version of the &amp;#039;du -a&amp;#039; unix utility which would be suitable for scanning filesystems with 100s of millions of files.  It was then reworked at OSNEXUS to support backups, sliding window backups, additional output formats, etc.  If you type &amp;#039;pwalk&amp;#039; by itself at the QuantaStor ssh or console window you&amp;#039;ll see the following usage page / documentation.  The pwalk utility has three modes, &amp;#039;walk&amp;#039; which does a parallelized crawl of a directory, &amp;#039;copy&amp;#039; which does a backup from a SOURCEDIR to a specified --targetdir, and &amp;#039;purge&amp;#039; mode which removes files in the PURGEDIR which are not found in the --comparedir.  In general you would never need to use pwalk directly but the documentation is provided here to support special use cases like custom backup or replication cron jobs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pwalk version 3.1 Oct 22nd 2013 - John F Dey john@fuzzdog.com, OSNEXUS, eng@osnexus.com&lt;br /&gt;
&lt;br /&gt;
Usage :&lt;br /&gt;
pwalk --help --version&lt;br /&gt;
          Common Args :&lt;br /&gt;
             --dryrun : use this to test commands&lt;br /&gt;
                        without making any changes to the system&lt;br /&gt;
       --maxthreads=N : indicates the number of threads (default=32)&lt;br /&gt;
           --nototals : disables printing of totals after the scan&lt;br /&gt;
               --dots : prints a dot and total every 1000 files scanned.&lt;br /&gt;
              --quiet : no chatter, speeds up the scan.&lt;br /&gt;
             --nosnap : Ignore directories with name .snapshot&lt;br /&gt;
              --debug : Verbose debug spam&lt;br /&gt;
        Output Format : CSV&lt;br /&gt;
               Fields : DateStamp,&amp;quot;inode&amp;quot;,&amp;quot;filename&amp;quot;,&amp;quot;fileExtension&amp;quot;,&amp;quot;UID&amp;quot;,&lt;br /&gt;
                        &amp;quot;GID&amp;quot;,&amp;quot;st_size&amp;quot;,&amp;quot;st_blocks&amp;quot;,&amp;quot;st_mode&amp;quot;,&amp;quot;atime&amp;quot;,&lt;br /&gt;
                        &amp;quot;mtime&amp;quot;,&amp;quot;ctime&amp;quot;,&amp;quot;File Count&amp;quot;,&amp;quot;Directory Size&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Walk Usage :&lt;br /&gt;
pwalk SOURCEDIR&lt;br /&gt;
         Command Args :&lt;br /&gt;
            SOURCEDIR : Fully qualified path to the directory to walk&lt;br /&gt;
&lt;br /&gt;
Copy/Backup Usage :&lt;br /&gt;
pwalk --targetdir=TARGETDIR SOURCEDIR&lt;br /&gt;
pwalk --retain=30 --targetdir=TARGETDIR SOURCEDIR&lt;br /&gt;
         Command Args :&lt;br /&gt;
          --targetdir : copy files to specified TARGETDIR&lt;br /&gt;
              --atime : copy if access time change (default=no atime)&lt;br /&gt;
  --backuplog=LOGFILE : log all files that were copied.&lt;br /&gt;
  --status=STATUSFILE : write periodic status updates to specified file&lt;br /&gt;
             --retain : copy if file ctime or mtime within retention period&lt;br /&gt;
                        specified in days. eg: --retain=60&lt;br /&gt;
            --nomtime : ignore mtime (default=use mtime)&lt;br /&gt;
            SOURCEDIR : Fully qualified path to the directory to walk&lt;br /&gt;
&lt;br /&gt;
Delete/Purge Usage :&lt;br /&gt;
pwalk --purge [--force] --comparedir=COMPAREDIR PURGEDIR&lt;br /&gt;
pwalk --purge [--force] --retain=N PURGEDIR&lt;br /&gt;
         Command Args :&lt;br /&gt;
         --comparedir : compare against this dir but dont touch any files&lt;br /&gt;
                        in it. comparedir is usually the SOURCEDIR from&lt;br /&gt;
                        a prior copy/sync stage.&lt;br /&gt;
              --purge : !!WARNING!! this deletes files older than the&lt;br /&gt;
                        retain period -OR- if retain is not specified&lt;br /&gt;
                        --comparedir is required. The comparedir is&lt;br /&gt;
                        compared against the specified dir and any files&lt;br /&gt;
                        not found in the comparedir are purged.&lt;br /&gt;
              --force : !NOTE! default is a *dry-run* for purge, you must&lt;br /&gt;
                        specify --force option to actually purge files&lt;br /&gt;
              --atime : keep if access time within retain period&lt;br /&gt;
             --retain : keep if file ctime or mtime within retention period&lt;br /&gt;
                        specified in days. eg: --retain=60&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OSNEXUS modified version of the C source code for pwalk is available here [[pwalk.c]]. The original version is available &lt;br /&gt;
[https://github.com/fizwit/filesystem-reporting-tools/blob/master/pwalk.c here].&lt;/div&gt;</summary>
		<author><name>Qadmin</name></author>
	</entry>
</feed>