Linux Backups
This script will simply copy a series of files, tar and then gzip the files:
#!/bin/sh
# temporary backup script
# temporary backup script
Back_Dir="/root/scripts/backups"
Vhosts_Dir="/home/httpd/vhosts"
# get the date for the filename.
shdate=`date +%b%d%y`
# save our current directory location.
tmp_dir=$PWD
# change to the Backup file directory.
cd $Back_Dir
# create a gzip compressed tar file of the webs directory.
tar -czf ${shdate}.bak.tar.gz $Vhosts_Dir
# return to the previous working directory.
cd $tmp_dir
It might help a few users!
pdavies | Linux Backups | 18 June, 1:10am
| Comment on this
Category Cloud
Link Dump Tag Cloud
Today: Wednesday, 07 January 2009
Categories
- AJAX (1) [atom | rss]
- General (1) [atom | rss]
- Joomla (2) [atom | rss]
- Linux Backups (1) [atom | rss]
- Miscellaneous (1) [atom | rss]
- MySQL (2) [atom | rss]
- PHP Programming (1) [atom | rss]
- Zend Framework (1) [atom | rss]
Main Menu
Articles
Tools
FileBrowser
![]() |
Applications |
![]() |
Computer_Forensics |
![]() |
Computer_Law |
![]() |
Cryptography_and_E-Commerce |
![]() |
Internet_Security |
![]() |
Joomla |
![]() |
Miscellaneous |
![]() |
Network_Security |
![]() |
Security_Management |
![]() |
Systems_Administration |
![]() |
Web_Development |
Blog Archives
- June 2007 (10)
Online Visitors:2
Today Visitors:11
Total Visitors:6211


