0
votes
1answer
33 views

running a tar command eats all resources

I am running a Rails application on my ubuntu 12.04 server. I have set up a cron job to take backup of all files uploaded to my application every morning at 2 am. It is a lot of files (around 900 mb). ...
4
votes
2answers
3k views

How to make a bash script generate a new filename every time it's run?

I'd like to make a .tar file of a particular directory every day of the week. The way I'd like to do it is with a bash script making a tar file every day with crontab. I was wondering, is there a ...
1
vote
1answer
1k views

How can I prevent two shell scripts running at the same time?

I have a tar backup script that runs once a month. It runs at night through cron. I also have a power schedule that reboots the server at 4.15 every night. The problem is that the server reboots ...