bash script to tar gzip backup apache webroot (or any folder) with timestamp
[root@cms ]# vi scripts/backup_webroot.sh
#!/bin/bash
echo taring webroot
stamp=$(date --utc --date "$1" +%F)
tar -czf /backups/sitename_webroot_$stamp.tgz /path_to_webroot/*
echo done
0 Comments:
Post a Comment
<< Home