Skip to content

Instantly share code, notes, and snippets.

@phamquocbuu
Created August 10, 2018 08:00
Show Gist options
  • Select an option

  • Save phamquocbuu/4177fd5c035fdb37ec1e14cf719dd2d3 to your computer and use it in GitHub Desktop.

Select an option

Save phamquocbuu/4177fd5c035fdb37ec1e14cf719dd2d3 to your computer and use it in GitHub Desktop.
add current date time to cron job command
0 * * * * cp /etc/nginx/nginx.conf "/backup/nginx/config/nginx.`date +\%Y-\%m-\%d_\%H-\%M`.conf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment