Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15177429
  • 博文数量: 7460
  • 博客积分: 10434
  • 博客等级: 上将
  • 技术积分: 78178
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-02 22:54
文章分类

全部博文(7460)

文章存档

2011年(1)

2009年(669)

2008年(6790)

分类:

2008-05-02 09:52:59

#!/bin/bash
# Backs up all files in current directory
# modified within last 24 hours
# in a tarred and gzipped file.
if [ $# = 0 ]
then
  echo "Usage: `basename $0` filename"
  exit 1
fi  
cvf - `find . -mtime -1 -type f -print` > $1.tar
gzip $1.tar
exit 0
阅读(1695) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~