David Huby’s Blog Technical and business stuff

12Oct/090

archive (tar and gzip) with timestamp in bash

#!/bin/bash
tar zcf "$1-archive-$(date + '%F-%H-%M').tar.gz" "$1"

Filed under: Sysadmin Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.