Compress a folder and send to to another server via SSH

This command will tar an entire folder, pass it to gzip then pass it to SSH which then in turn writes the resultant output to a file on a remote server Useful for backing up small folders to remote servers Dont forget to ssh-copy-id on the source server so password-less authentications works tar -cvf – […]

Read More »

Generate S3 Style Access and Secret keys for RadosGW

A quick little script to generate a random string in the right format for a S3 style Secret and Access Key   SYSTEM_ACCESS_KEY=$(cat /dev/urandom | tr -dc ‘a-zA-Z0-9’ | fold -w 20 | head -n 1) SYSTEM_SECRET_KEY=$(cat /dev/urandom | tr -dc ‘a-zA-Z0-9’ | fold -w 40 | head -n 1) echo “Access Key – $SYSTEM_ACCESS_KEY” […]

Read More »