I want to make a cron job that creates a tar of my web directory.
I have this job in place
* * * * * tar -zcvfp /disk1/archives/websites/`date +%Y-%m-%d_%I-%M-%S-%p`/`date +%Y-%m-%d_%I:%M:%S:%p`.tar.gz /web
this job SHOULD (but doesn't) create a tar file to my /disk1... directory. so I'm stumped on that one.
another thing that has been on my mind is, is it possible to make all backup tar file get dumped into a
date +%Y-%m-%d and have all files that were created on that same day be placed there?
So an output would look like
I have made this job run every minute for test purposes.
Is there anything wrong with my syntax?