User Tools

Site Tools


computers:tricksandtips

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computers:tricksandtips [2025/01/27 16:29] – [rsync Windoze Files] davidcomputers:tricksandtips [2025/05/27 18:27] (current) – [Show Files by Access Time] david
Line 194: Line 194:
 user    0m29.380s user    0m29.380s
 sys     33m49.240s sys     33m49.240s
 +</code>
 +
 +==== Using tar Compress ====
 +
 +=== Specific File Types ===
 +
 +<code>
 +find /path/to/directory -type f -name "*.extension" -print0 | tar -cvf archive_name.tar --null -T -
 +</code>
 +
 +
 +Add compression
 +
 +<code>
 +find /path/to/directory -type f -name "*.txt" -print0 | tar -cv --null -T - | pigz --best > archive_name.tar.gz
 </code> </code>
 ====== BIOS Upgrade ====== ====== BIOS Upgrade ======
Line 377: Line 392:
  
 <code> <code>
-rsync --modify-window=5 NORMAL THING+# always have vP for verbose and progress 
 +rsync --modify-window=5 -vPrltD NORMAL THING
 # NO LUCK for me like this, but adding this does only check file size # NO LUCK for me like this, but adding this does only check file size
  
Line 383: Line 399:
  
 # try this # try this
-rsync --size-only -rltD+rsync --size-only -vPrltD # OR remove -t 
 + 
 +# doing this on windows backup drive: 
 +rsync --size-only -vPrlD 
 </code> </code>
 ===== sshd Piping ===== ===== sshd Piping =====
Line 708: Line 727:
 # pipe to less if you want to page up / page down have a look (and reverse to so newest at top) q to exit less # pipe to less if you want to page up / page down have a look (and reverse to so newest at top) q to exit less
 find /pool/media/video/hd -xdev -type f -exec stat --format="%Y %n" {} \; | sort -k 1,1nr | less find /pool/media/video/hd -xdev -type f -exec stat --format="%Y %n" {} \; | sort -k 1,1nr | less
 +
 +# AI suggested this for nice file formatting 2025
 +# Alternative using printf for better formatting
 +find /path/to/search -type f -printf '%T+ %p\n' | sort -r | head -10
 +
 </code> </code>
 ==== Find and Copy Files Between Two Dates ==== ==== Find and Copy Files Between Two Dates ====
computers/tricksandtips.1737995365.txt.gz · Last modified: 2025/01/27 16:29 by david