Using ubuntu 18 and tools like glances and iftop would often mangle the output
Changing the default Puttty settings
‘Connection > Data > ‘Terminal-type string’ to ‘putty’ instead of ‘xterm’
and setting your PuTTY settings under Translation and ensure that you have UTF-8 set as the character set then save this as the default profile and enjoy 🙂
When backing up photos form my Android phone i found that the phone didn’t present as a mass storage device, it would only appear as a MTP\PTP device and the file copy speed was terrible.
So some research led me to using the ADB command, you’ll need to enable USB debugging before this will work.
Find your files
adb shell ls /storage/
Back em up
adb pull /storage/self/primary/DCIM/Camera /home/user/photos/
# Set the enviroment variable so read function knows to seperate on ",".
while read HOST USERNAME PASSWORD DB_SRV DB_NAME;
echo "[$DB_SRV - $DB_NAME]"
mysqldump --single-transaction --quick --lock-tables=false \
-h $HOST \
-u $USERNAME \
$DB_NAME | gzip > $TEMP_BACKUP_DIR/$DB_SRV-$DB_NAME-$NOW.sql.gz
echo "Uploading backup to S3 storage - $DB_SRV-$DB_NAME-$NOW.sql.gz"
aws --endpoint-url=$S3_ENDPOINT s3 cp $TEMP_BACKUP_DIR/$DB_SRV-$DB_NAME-$NOW.sql.gz $S3_BUCKET
echo -e "\n\n"
done < $DATABASES_CONFIG_FILE