rsync – Exclude files that are over a certain size?

There is a max-size option: –max-size=SIZE don’t transfer any file larger than SIZE So: # rsync -rv –max-size=1.5m root@tss01:/tmp/dm Will send only files less than 1.5m. Regarding sizes from man: The suffixes are as follows: “K” (or “KiB”) is a kibibyte (1024), “M” (or “MiB”) is a mebibyte (1024*1024), and “G” (or “GiB”) is a … Read more

Is there an equivalent to ssh-copy-id for Windows?

ssh-copy-id is a pretty simple script that should be pretty easy to replicate under windows. If you ignore all the parameter handling, error handling, and so on, these are the two commands from ssh-copy-id that are actually doing the work most of the time. GET_ID=”cat ${ID_FILE}” { eval “$GET_ID” ; } | ssh ${1%:} “umask … Read more