Mosquito Kisser on Nostr: yeah i think this'll do: find /path/to/local_dir/ -type f | shuf | while read file; ...
yeah i think this'll do:
find /path/to/local_dir/ -type f | shuf | while read file; do
rsync -az --partial --ignore-existing --size-only --bwlimit=500 "user@remote:$file" "/path/to/local_dir/"
sleep $((RANDOM % 300)) # Random delay between 0-5 minutes
done
Published at
2025-02-07 02:35:10Event JSON
{
"id": "54afd087f1c57085f9096a1ef7df7882dea8b15998cc4eccf12f1ece7d23e076",
"pubkey": "67677522390fb252f64c428eddf26dfadc046cacefbf9353932603ba1e9cbade",
"created_at": 1738895710,
"kind": 1,
"tags": [
[
"p",
"67677522390fb252f64c428eddf26dfadc046cacefbf9353932603ba1e9cbade",
"wss://relay.mostr.pub"
],
[
"e",
"56303cb053880fec968db5103068ff2d33a74d5775a0bb7e4ecae15995f66158",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://ryona.agency/objects/32858110-b599-4083-9c56-d8170e17fc06",
"activitypub"
]
],
"content": "yeah i think this'll do:\n\nfind /path/to/local_dir/ -type f | shuf | while read file; do\n rsync -az --partial --ignore-existing --size-only --bwlimit=500 \"user@remote:$file\" \"/path/to/local_dir/\"\n sleep $((RANDOM % 300)) # Random delay between 0-5 minutes\ndone\n",
"sig": "4240e7524ea9626554bc824580c7dbb0bb668766f17ba4afa1a980c2efa35c2b839e12fe71c12bf5bcb01867516466c3392b0e652b0eaf7cee577cb2c10a3def"
}