Simple Backup Solution
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
Clash Royale CLAN TAG #URR8PPP up vote 6 down vote favorite I'm looking for a very basic backup script/package for a directory on my Ubuntu server. Currently I'm using a cronjob like this: 0 5 * * 1 sudo tar -Pzcf /var/backups/home.tgz /home/ But I want a solution which adds a timestamp to the filename and does not override old backups. Of course this will slowly flood my drive so old backups (e.g. older than 2 months) need to be deleted automatically. Cheers, Dennis UPDATE: I've decided to give the bounty to the logrotate -solution because of it's simplicity. But big thanks to all other answerers, too! backup cron share | improve this question edited May 2 at 10:30 asked Apr 26 at 8:51 wottpal 83 6 Have you considered rsync (downloadable from the Ubuntu Software Centre)? â Graham Apr 26 at 8:56 @Graham Yes, but I already have remote backups and want to backup a specific directory loc...