Posts

Showing posts from September 6, 2018

Simple Backup Solution

Image
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...