scripts

Scripts for general automations
git clone git://git.laack.co/scripts.git
Log | Files | Refs

network-test.sh (463B)


      1 while true; do
      2     FILENAME=$(hexdump -n 16 -v -e '/1 "%02X"' -e '/16 "\n"' /dev/urandom)
      3 
      4     echo "Filename: " $FILENAME
      5     DIRNAME=/dev/shm/$FILENAME
      6     echo "Dirname: " $DIRNAME
      7     mkdir $DIRNAME
      8 
      9     dd if=/dev/random of=$DIRNAME/$FILENAME.zip bs=100M count=1
     10     touch $DIRNAME/$FILENAME.txt
     11     rclone copy $DIRNAME google-drive:backup --progress
     12     rclone deletefile --drive-use-trash=false google-drive:backup/$FILENAME.zip 
     13     rm -rf $DIRNAME
     14 done