Created
August 29, 2013 07:04
-
-
Save the-teacher/6374995 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/csh | |
set dump_dir=/home/nginx/data/www/dir_dumps | |
set ls=/bin/ls | |
set tar=/usr/bin/tar | |
set dump_file="open_cook_"`date +%Y-%m-%d`".tar" | |
set dump_path=/home/nginx/data/www/capistrano/open-cook.ru/shared/uploads | |
mkdir -p $dump_dir | |
cd $dump_dir | |
rm -rf $dump_dir/* | |
$tar -cf $dump_file $dump_path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment