Skip to content

Instantly share code, notes, and snippets.

@the-teacher
Created August 29, 2013 07:04
Show Gist options
  • Save the-teacher/6374995 to your computer and use it in GitHub Desktop.
Save the-teacher/6374995 to your computer and use it in GitHub Desktop.
#!/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