carlessanagustin
2/19/2016 - 10:54 AM

Backup a folder script - Local to local

Backup a folder script - Local to local

#!/bin/bash

SRCDIR=/imp-data
DESDIR=/mybackupfolder

TIME=`date +%b-%d-%y`
FILENAME=backup-$TIME.tar.gz

tar -cpzf $DESDIR/$FILENAME $SRCDIR