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 [2024/05/10 17:48] – [Windoze] davidcomputers:tricksandtips [2025/01/27 16:40] (current) – [rsync Windoze Files] david
Line 372: Line 372:
 </code> </code>
  
 +===== rsync Windoze Files =====
  
 +You need to expand the time stamp difference for Windoze to not re-copy everything;
 +
 +<code>
 +# 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
 +
 +rsync --size-only -vaP FROM/ TO/
 +
 +# try this
 +rsync --size-only -vPrltD # OR remove -t
 +
 +# doing this on windows backup drive:
 +rsync --size-only -vPrlD 
 +</code>
 ===== sshd Piping ===== ===== sshd Piping =====
  
Line 697: Line 713:
 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
 </code> </code>
 +==== Find and Copy Files Between Two Dates ====
 +
 +Use **newermt** switch to **find** and copy files that are human readable times / dates from one place to another.
 +
 +<code>
 +find /Volumes/6608 -newermt "2024-11-01 00:00:00" ! -newermt "2024-12-01 00:00:00" -exec cp -a "{}" .  \;
 +</code>
 +
 +
 +
 ==== Sort Text File By Second Column ==== ==== Sort Text File By Second Column ====
  
computers/tricksandtips.1715363331.txt.gz · Last modified: 2024/05/10 17:48 by david