On 03/21/2019 09:59 AM, Moses McKnight wrote:
I don't have it doing rotations over a number of days but just a simple backup right now. I do need to look at amanda or something and get something a little better set up in case I delete something and decide I need it 3 days later!

A simple script can do daily incremental backups using rsync. The cron script looks like this :

#!/bin/bash

DAY=$(date +%A)
DATE=$(date +%F)

if [ -e /mnt/backup/jeuser/incr/$DAY ] ; then
  rm -fr /mnt/backup/jeuser/incr/$DAY
fi

rsync -avx --delete --inplace --backup --backup-dir=/mnt/backup/jeuser/incr/$DAY / /mnt/backup/jeuser/full/ &> /home/elson/backup/jeuser_backup$DATE.log

That rsync line is one long line, starts with rsync and ends with .log
You need to run it with root privileges of course.

Jon


_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to